-
Notifications
You must be signed in to change notification settings - Fork 976
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
Read/Write Split query rules do not work while using sysbench to evaluate perfromance #3427
Comments
JavierJF
added a commit
that referenced
this issue
May 14, 2021
JavierJF
added a commit
that referenced
this issue
May 14, 2021
JavierJF
added a commit
that referenced
this issue
May 14, 2021
…h 'text protocol' and 'prepared statements' #3427
JavierJF
added a commit
that referenced
this issue
May 26, 2021
Information from 'first_comment' is redundant since the comment itself is already contained in 'query' when reaching 'compute_hash'.
JavierJF
added a commit
that referenced
this issue
May 26, 2021
…rom global 'stmt_info' #3427" 'CurrentQuery.QueryParserArgs.first_comment' needs to hold it's own copy of 'first_comment', otherwise, the 'first_comment' from global 'stmt_info' will be freed by 'Query_Info::end' at the end of the life of 'CurrentQuery'.
JavierJF
added a commit
that referenced
this issue
May 26, 2021
…uring 'PROCESSING_STMT_EXECUTE' #3427
renecannao
pushed a commit
that referenced
this issue
Oct 9, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue:Read/Write Split query rules do not work while using sysbench to evaluate perfromance
ProxySQL version: 2.1.0-544-g17a4b4a7, codename Trul
OS version: Linux version 4.19.0-12-amd64 ([email protected]) (gcc version 8.3.0 (Debian 8.3.0-6)) #1 SMP Debian 4.19.152-1 (2020-10-18)
Sysbench version: sysbench 1.0.20 (using bundled LuaJIT 2.1.0-beta2)
The steps to reproduce the issue:
mysql general log on writer_hostgroup
There is no related general log on reader_hostgroup and no related error in
/var/lib/proxysql/proxysql.log
.Strangely, when I use shell command
for e in {01..10};do echo "SELECT c FROM sbtest1 WHERE id=1" |mysql -hxxxx -uxxx -pxxx -P 6033 dbtest;done
, the rules can work, read requests were forwarded to the read group. However while using sysbench, read requests were forwarded to both the read group and the write group.Could you help me to find out why rules do not work? Please let me know if there is any information missing from this issue.
The text was updated successfully, but these errors were encountered: