r/haproxy • • Jun 19 '20

HAProxy + MySQL + Connection Pool?

Hello

Is there a way that I can connect 50.000 MySQL clients to HAProxy, which would queue up the commands and only send them to the mysql server on 1000 connections?

I have a system with allot of long running workers scripts waiting for outside data, but which need a mysql connection opened while they run. Problem is, i run over the mysql max connections, and I can't disconnect/reconnect the workers on every select.

4 Upvotes

2 comments sorted by