aio-libs / aio-libs/aiomysql

how does aiomysql know to reuse a mysql pool?

未關閉
#154 12 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
question
主要語言
Python
星號
1.9k
分支
272
PR 合併指標
30 天內沒有已合併 PR

描述

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?

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。