Hi everyone,
I am running ProxySQL as sidecar on K8S (Services -> ProxySQL sidecar -> Database server, earch pod have own ProxySQL sidecar). If I scale my pod to over hundred, the connection to database server will increasing and my database server will be overloaded connection (the query per second is not increasing).
I want to recude the connection to database server. Is it possible to run ProxySQL over ProxySQL? services -> ProxySQL sidecar -> ProxySQL -> Database server.
I would appreciate for any help.
Thank you!
lol, what?
When you reduce hundreds of proxysql instances with another proxysql service, it's stupid. Then you can in general throw your oversized proxysql service into /dev/null und just use the smaller service and nerver think about what you've did. :)
Because of multiplexing and the performance of proxysql (it can serve a lot of more traffic as our complete read replica cluster), it's sufficient to deploy proxysql only in one separate service.
The solution envisioned by @vy-nguyentan is actually a solution we at times recommend for specific reasons:
In a solution like this:
services -> ProxySQL sidecar -> ProxySQL main -> Database server.
SET NAMES, pings, SELECT 1 , USE schemaname, etc)Hi @renecannao , Thank you so much for your answser. The last explain helps me a lot.
Closing.
Thanks
Most helpful comment
lol, what?
When you reduce hundreds of proxysql instances with another proxysql service, it's stupid. Then you can in general throw your oversized proxysql service into /dev/null und just use the smaller service and nerver think about what you've did. :)
Because of multiplexing and the performance of proxysql (it can serve a lot of more traffic as our complete read replica cluster), it's sufficient to deploy proxysql only in one separate service.