MySQL Forums
Forum List  »  Router & Proxy

Re: R/W splitting. All requests only to write server.
Posted by: Danila Lelaev
Date: July 01, 2009 07:07AM

Hello,

I set up mysql-proxy 0.7.1 with rw-splitting.
rw-slitting.lua correspond to diff from https://code.launchpad.net/~diego-fmpwizard/mysql-proxy/bug-43424/+merge/4259

All is working, but I loss ~0,5% of the requests.
For example, I send 10000 requests to mysql-proxy, and recive ~9945:

#!/bin/bash

for ((n=1; n <= 10000; n++)) ; do
echo 'use dbname; select * from table_name;' | mysql -u dbadev -p -h host_frontend --password='secret' &
done ;

Mysql-proxy log shows the following error:
2009-07-01 16:47:41: (critical) ioctl(50, FIONREAD, ...) failed: Connection reset by peer

All backends have max_connections=1000.

How to get it's possible the lost requests?
Thanks to everybody.

Options: ReplyQuote


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


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.