[MXS-1653] sysbench failed to initialize w/ MaxScale read/write splitter Created: 2018-02-07 Updated: 2023-08-09 Resolved: 2018-02-13 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | readwritesplit |
| Affects Version/s: | 2.2.1 |
| Fix Version/s: | 2.2.2 |
| Type: | Bug | Priority: | Blocker |
| Reporter: | GOTO Satoru (Inactive) | Assignee: | markus makela |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
CentOS 7.4.1708 / RHEL 7.4 |
||
| Attachments: |
|
| Description |
|
When sysbench "run" executed on MaxScale host via readwritesplit port, sysbench failed with following error :
/var/og/maxscale/maxscale.log:
Query Log All Filter output:
MaxScale 2.1.13 worked with sysbench 1.0.9 w/o 2.2 specific automatic failover settings. |
| Comments |
| Comment by Johan Wikman [ 2018-02-07 ] | ||||
|
goto.satoru | ||||
| Comment by GOTO Satoru (Inactive) [ 2018-02-07 ] | ||||
|
Hi Johan, here is the sysbench 1.0.9 commands I exxecuted : sysbench --db-driver=mysql --mysql-host=127.0.0.1 --mysql-port=4006 --mysql-user=maxuser --mysql-password=maxpwd --mysql-db=test --range_size=100 --table_size=1000000 --tables=2 --events=0 --time=60 --rand-type=uniform --threads=1 /usr/share/sysbench/oltp_read_write.lua run Thanks, Satoru | ||||
| Comment by Johan Wikman [ 2018-02-07 ] | ||||
|
Hi Satoru, Thanks, I could confirm the very same behaviour. Johan | ||||
| Comment by Johan Wikman [ 2018-02-07 ] | ||||
|
Hi Satoru, This is what I get when I try to do that against my server, without having MaxScale in between:
However, there is also some real bug that causes sysbench to hang, because if I run the sysbench command directly against my MariaDB server, it does not hang but produces the expected output. Johan | ||||
| Comment by GOTO Satoru (Inactive) [ 2018-02-07 ] | ||||
|
Thanks for the update. Yes, I could run sysbench locally on MariaDB server hosts, Thanks, Satoru | ||||
| Comment by Johan Wikman [ 2018-02-07 ] | ||||
|
If you add --db-ps-mode=disable then prepared statements will not be used and sysbench will work. That should allow you to continue until we have sorted out why prepared statements do not work. Johan | ||||
| Comment by GOTO Satoru (Inactive) [ 2018-02-07 ] | ||||
|
Thanks for your advice. I am now using MaxScale 2.1.13, have no issue with sysbench. Satoru | ||||
| Comment by Johan Wikman [ 2018-02-07 ] | ||||
|
But in 2.1 all prepared statements will be sent to master, which means that if sysbench uses such, the result will only reflect the overhead caused by maxscale and you will see no benefits related to the load balancing of maxscale. Johan | ||||
| Comment by GOTO Satoru (Inactive) [ 2018-02-07 ] | ||||
|
Hi Johan, Thanks for your comment. Satoru | ||||
| Comment by Xiaotong Niu [ 2023-08-09 ] | ||||
|
Hi Johan, When I was performing benchmark on mariaDB server 10.11, when the susbench threads reached 2048, I encountered a problem similar to this post. Follow your suggestion, I add --db-ps-mode=disable and sysbench work. Regarding your comment a long time ago, I wonder why prepared statements do not work. Thank you very muck! Xiaotong | ||||
| Comment by markus makela [ 2023-08-09 ] | ||||
|
What version of MaxScale are you using? | ||||
| Comment by Xiaotong Niu [ 2023-08-09 ] | ||||
|
Hi markus, Sorry, I don't use MaxScale, I just deploy mariadb/server 10.11. I used following sysbench statement to test it.
The error is as follows:
Xiaotong | ||||
| Comment by markus makela [ 2023-08-09 ] | ||||
|
Oh, in that case it means that sysbench was unable to open all the database connections within 30 seconds and it gave up. Usually this means that something's slowing down the connection creation on the server. I'd recommend joining the MariaDB community Slack server or the MariaDB.org Zulip server, people over there (me included) will be able to answer your questions better than in a years old bug report for a different product | ||||
| Comment by Xiaotong Niu [ 2023-08-09 ] | ||||
|
Hi markus, Ok, thank you very much~ Xiaotong |