Hi,
How many connections did you run in parallel? The routing will only change servers when there's more than one concurrent connection.
In addition, once a connection to readconnroute is opened, it
will always use the same server for all queries. If you want query
level load balancing, you'll need to use readwritesplit.
Markus
--
You received this message because you are subscribed to the Google Groups "MaxScale" group.
To unsubscribe from this group and stop receiving emails from it, send an email to maxscale+u...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/maxscale/977e0701-ee06-401d-b65b-f1d0385c8c7cn%40googlegroups.com.
-- Markus Mäkelä, Senior Software Engineer MariaDB Corporation
|
To view this discussion on the web, visit https://groups.google.com/d/msgid/maxscale/4ace333a-53cb-42c2-b06a-a5c5b368e425n%40googlegroups.com.
Hi,
Try something like this:
while true; do for i in $(seq 0 10); do mysql -h 192.168.100.187 -P 4008 -u maxscale -p`cat /etc/.qiankun` -e "select @@hostname;" & done; wait; sleep 2;done
This will create 10 parallel connections and they should get sent to different servers. If you want to emulate slower queries, you can use "select @@hostname, sleep(1)" for the query.
Markus
To view this discussion on the web, visit https://groups.google.com/d/msgid/maxscale/4ace333a-53cb-42c2-b06a-a5c5b368e425n%40googlegroups.com.