MySQL Forums
Forum List  »  Router & Proxy

R/W splitting
Posted by: Jan Kneschke
Date: July 30, 2007 04:54PM

Some early tests seem to show that read/write splitting works nicely.

Check out the latest SVN code and read the examples from http://svn.mysql.com/svnpublic/mysql-proxy/trunk/examples/tutorial-keepalive.lua

For testing I used a local replication setup with :3306 been the master and :3307, 8 and 9 being the slaves.

$ ./src/mysql-proxy --no-daemon \
--proxy-lua-script=./examples/tutorial-keepalive.lua \
--proxy-backend-addresses=:3306 \
--proxy-read-only-backend-addresses=:3307 \
--proxy-read-only-backend-addresses=:3308 \
--proxy-read-only-backend-addresses=:3309

The connect_server() call tries to setup the connection pool and connect the each backend at least once. If we see a SELECT query outside of a transaction we try to balance it over the slaves.

--
Jan Kneschke, MySQL Enterprise Tools

Options: ReplyQuote


Subject
Views
Written By
Posted
R/W splitting
5498
July 30, 2007 04:54PM
2703
July 31, 2007 02:19PM
3041
July 31, 2007 09:10PM
2751
July 31, 2007 09:26PM
2834
July 31, 2007 10:03PM
2564
July 31, 2007 09:32PM
2537
July 31, 2007 10:11PM
2918
July 31, 2007 10:38PM
3056
July 31, 2007 11:04PM
2832
August 01, 2007 01:11AM
3032
August 01, 2007 09:05AM
2839
August 01, 2007 09:34AM
2597
August 01, 2007 09:45AM
2820
August 01, 2007 10:06AM
2887
August 01, 2007 10:16AM
2834
August 01, 2007 10:16AM
2773
August 02, 2007 01:05AM


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.