ProxySQL is a very useful tool for gaining high availability,
load balancing, query routing, query caching, query rewriting,
multiplexing, and data masking. It is a proven tool and is used
largely in production. There can be an instance of ProxySQL using
a lot of memory on the server. This post is related to one of the
causes that can use memory on the ProxySQL server and how we
handle it.
Explanation
How do we know where the memory is getting used?
Proxysql has a stats database which we can see with an admin
login. This database contains metrics gathered by ProxySQL
concerning its internal functioning.
This post mostly talks about stats in MySQL query digest in
ProxySQL.
Memory used by query digest can grow unlimited, and you can query
the memory usage with the below query with an admin login. The
memory usage is shown in bytes.
MySQL [(none)]> select * from …
[Read more]