-
Notifications
You must be signed in to change notification settings - Fork 983
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Investigate performance degradation with compression #4721
Comments
In our experience, a query with a large result set being run on a compressed connection affected the performance of ProxySQL in general, not just for that query. We saw a general drop in throughput for the whole ProxySQL server (shown by an increase in backend connections in use) which makes it a more serious bug than if it only affected performance for that one query. |
Sorry to post here but there is a similar problem that makes the queries slow if you set |
@MichalisDBA : it is unlikely related. |
What is the expected ETA for a fix? Or do you recommend disabling compression if you have this currently enabled? |
@ThomasVerhoeven1998 : this issue was observed with an exceptional large resultset, and probably shouldn't be noticeable with smaller resultset. |
We encountered this issue and turning off compression like Rene suggested mitigated the issue. |
@dankow : I missed your comment, sorry. BTW, @yashwantsahu20 is already working on this. |
There is a severe performance degradation when clients connect to ProxySQL using compression.
Some example with this query:
Direct connection without compression:
Direct connection with compression:
Using ProxySQL without compression:
Using ProxySQL with compression:
It seems that compression is a big performance penalty for both MySQL and ProxySQL , but it seems that ProxySQL is twice as slow than MySQL.
ProxySQL uses
compress()
instead of lower level zlib functions, and this usesZ_DEFAULT_COMPRESSION
that is 6 (on a scale from 1 to 9).So I guess it is "just" a matter of compression level.
The text was updated successfully, but these errors were encountered: