Note that there are some explanatory texts on larger screens.

plurals
  1. POmysql-proxy 0.8.3 load balance can not work
    primarykey
    data
    text
    <p>I have three Mysql Nodes listed below:</p> <pre><code>Master Address: 192.168.1.77:3306 Slave1 Address: 192.168.1.76:3306 Slave2 Address: 192.168.1.69:3306 </code></pre> <p>and after i installed mysql-proxy of version 0.8.3 on 192.168.1.67, and create my configuration below:</p> <pre><code>[mysql-proxy] admin-username=proxy admin-password=proxy admin-lua-script=/local/software/mysql-proxy/lib/mysql-proxy/lua/admin.lua proxy-read-only-backend-addresses = 192.168.1.76:3306,192.168.1.69:3306 proxy-backend-addresses=192.168.1.77:3306 proxy-lua-script=/local/software/mysql-proxy/share/doc/mysql-proxy/rw-splitting.lua log-file=/local/software/mysql-proxy/log/mysql-proxy.log plugin-dir=/local/software/mysql-proxy/lib/mysql-proxy/plugins plugins=proxy,admin,debug,replicant log-level=debug keepalive=true </code></pre> <p>edited file: rw-splitting.lua </p> <pre><code>min_idle_connections = 1, max_idle_connections = 2, </code></pre> <p>then start mysql-proxy like the way:</p> <pre><code>./bin/mysql-proxy --defaults-file=mysql-proxy.cnf </code></pre> <p>logon the proxy:</p> <pre><code>mysql -uproxy -ppassword -P4040 -h192.168.1.67 </code></pre> <p>and when i execute select sql again and again to open different mysql-proxy 4040 window, but from log i found that all the select sql queries are sent to the same server for 76, however only if i shutdown the 76, then it will send the queries to slave 69. i don't know why load balance not to work, is there some place what i made a mistake? thank you in advance.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload