MySQL Forums
Forum List  »  Router & Proxy

Re: R/W splitting. All requests only to write server.
Posted by: Emmanuel Dyan
Date: July 09, 2009 01:11AM

Hello,

I am facing the same issue than Pavel but it's mandatory for me to send each and every read request to the slave which is located in Asia and write request to the master.. No read should be done on the master

I have the version 0.7.2. I have tested with the standard rw-splitting.lua file by changing min_idle_connections from 4 to 0 but no effect :(

I launch the proxy with :
mysql-proxy --pid-file=/var/run/mysql-proxy.pid --proxy-lua-script /share/doc/mysql-proxy/rw-splitting.lua --proxy-read-only-backend-addresses=localhost:3306 --proxy-backend-addresses=master:3306

Does anybody knows a solution ?
Thanks

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: R/W splitting. All requests only to write server.
2517
July 09, 2009 01:11AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.