ProxySQL 3.0.13, 3.1.13, and 4.0.13 are out
We’ve released ProxySQL 3.0.13, 3.1.13, and 4.0.13. If you already run ProxySQL, this is a good time to upgrade. All three releases include security fixes and make it possible to serve Prometheus metrics over HTTPS.
3.0.13 is the Stable release. 3.1.13 Innovative and 4.0.13 Plugin Chassis are available as prereleases. All three fix a security issue in MySQL packet handling and two in PostgreSQL authentication. Thank you to Uvi-12 and aoi0120 for reporting them. MySQL advisory · PostgreSQL authentication advisory · PostgreSQL SCRAM advisory
Put Prometheus on a private listener
Say your Prometheus server scrapes several ProxySQL instances over a management network. You can now bind the REST and metrics listener to an address on that network and serve it over HTTPS. If you want only your collectors to reach it, require a client certificate signed by a CA you trust. The same listener settings apply to the REST API. This is available in all three releases.
You can also choose which database services ProxySQL starts. If all your applications use PostgreSQL, you can skip the MySQL client listener and workers, Admin listener, and monitor. MySQL-only deployments can skip the corresponding PostgreSQL services. Either SQL Admin protocol can still configure both.
Let the monitor bring a reader back
A reporting replica goes offline during the day, and ProxySQL takes it out of rotation. It comes back overnight, when nobody is running reports. ProxySQL can now put it back in rotation after a successful monitor ping once the normal recovery conditions are met. The replica can be ready when the morning report starts, even if it hasn’t received a query since the outage.
This works with MySQL and PostgreSQL. It’s opt-in in 3.1.13 and enabled by default in 4.0.13. Both versions also support direct TLS on the PostgreSQL client connection when TLS is enabled on ProxySQL. If you’re using a driver built with libpq 17 or newer, sslnegotiation=direct lets it start TLS immediately and saves one round trip when opening a connection to ProxySQL.
Run the morning report on a local copy of MySQL
A reporting query can scan a lot of data to answer a simple question like “How many orders did we ship yesterday?” If that query runs on the same MySQL server taking today’s orders, reporting and application traffic share the same resources.
In 4.0.13, the DuckDB plugin can take a snapshot of selected MySQL tables and keep a local DuckDB file updated from the MySQL binary log. You can send the report to DuckDB while your application keeps writing to MySQL. Check the replica’s progress before running a report that depends on recent changes. If you already have reports written in MySQL SQL, the plugin can translate a supported subset of analytical reads, including some joins and aggregates.
DuckDB requires a matching 4.0.13 source build, as does the MySQL Router compatibility plugin. If you already use DuckDB with persistent files, review the storage compatibility notes before upgrading to DuckDB 2.0.
There’s also a change for tools that query ProxySQL itself. A monitoring tool on 4.0.13 can prepare a query against STATS once and pass in a different username each time it runs. Both MySQL and PostgreSQL drivers can use their usual prepared-statement APIs on the Admin and STATS endpoints.
Get the release
- ProxySQL 3.0.13 Stable
- ProxySQL 3.1.13 Innovative prerelease
- ProxySQL 4.0.13 Plugin Chassis prerelease
Stable 3.0.13 is available as signed APT and RPM packages and as Debian and CentOS Docker images for AMD64 and ARM64. This is the last planned feature release with AlmaLinux 8 packages. Package repositories · Docker Hub tags