aio-libs / aio-libs/aiomysql

how does aiomysql know to reuse a mysql pool?

Abierto
#154 12 comentarios 0 reacciones 0 asignados Ver en GitHub
question
Lenguaje dominante
Python
Estrellas
1.9k
Forks
272
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

in my programe,i made a global engine by store it into a list,

however when i use the ab to test a simple mysql proxy server with : ab -n 10000 -c 1000 http://localhost
and the proxy server has 2 worker on a 2cpu machine

i got a very strange result ,cause i set the connect pool (min 10 ,maxsize 20), and run the ab first ,i check the mysqldb the connection is 2, when i run it again and again ,i increase to 40 by the end ,and never grow up

i was wondering why is this result? how can i control all my connections?

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.