Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Review of old rules that may no longer be needed

51 views
Skip to first unread message

Charles Thompson

unread,
Jul 1, 2024, 5:21:57 PM7/1/24
to proxysql
Hello,

I currently have 6 rules that were added a long time ago to disable multiplexing for specific types of queries. I was curious if they are still required with the advancements ProxySQL has made in the recent years.

Please see attached for the rules.

Thanks in advance,

Charles


proxysql_rules

René Cannaò

unread,
Jul 1, 2024, 5:41:56 PM7/1/24
to Charles Thompson, proxysql
Hi Charles,

ProxySQL is able to track SET SESSION ISOLATION LEVEL, but it is not able to track SET TRANSACTION ISOLATION LEVEL .
Thus ProxySQL automatically disabled multiplex for SET TRANSACTION ISOLATION LEVEL : in short, the logic of the first 2 rules is already built in inside proxysql.
Rules 3 and 5 : ProxySQL is able to track group_concat_max_len and transaction_isolation , therefore these rules are not needed. Please note that proxysql is tracking these variables: multiplexing is kept enabled, and proxysql will ensure that these variables are correctly set.
Rule 6: wait_timeout is a variable that ProxySQL recognise, but intentionally ignore: at the moment, it makes no sense to enforce wait_timeout on backend connections on a reverse proxy.
Rule 4: it was never needed. GET_LOCK always disables multiplexing , and it never enabled it again.

Of course, before removing these rules from production, try them.
My comment above assumes that the query rules match the majority of the query.

Thanks,
René


--
You received this message because you are subscribed to the Google Groups "proxysql" group.
To unsubscribe from this group and stop receiving emails from it, send an email to proxysql+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/proxysql/6c6cdfdb-98fa-410e-a6d0-8d5b813f7c11n%40googlegroups.com.
Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
0 new messages