Home » Performance » MySQL » Mysql Replication with write forwarding?
Mysql Replication with write forwarding? [message #2261] Fri, 23 November 2007 05:23 Go to next message
al.james  is currently offline al.james
Messages: 16
Registered: October 2006
Junior Member
Hi there...

Just a quick question.

It occurs to me that the largest change required in a typical application when scaling from single mysql server to multiple servers in a replicated environment, is enforcing that database reads go to the slave whilst database writes go to the master. Most web application frameworks maintain a single database connection, and it can be alot of work to go through the code and open another whenever a write occurs.

Is there anyway of telling a mysql slave server to pass all write operations up to its master (or the top master in the case of multi level replication)?

This would be great as there would be no changes required, I just change the config file of the slave to forward all writes to its master. 5 mins, tops...

Is this possible?
Re: Mysql Replication with write forwarding? [message #2265 is a reply to message #2261 ] Sat, 24 November 2007 11:33 Go to previous messageGo to next message
sterin  is currently offline sterin
Messages: 323
Registered: March 2007
Location: Sweden
Senior Member
What you are talking about is the MySQL Proxy.

And here is one of the articles about R/W splitting.



Re: Mysql Replication with write forwarding? [message #2269 is a reply to message #2261 ] Tue, 27 November 2007 06:43 Go to previous messageGo to next message
al.james  is currently offline al.james
Messages: 16
Registered: October 2006
Junior Member
Thanks for that.

I have seen MySql Proxy before, but did not know it could do that (or the accepted term for it).

This leads to the question: How is mysql proxy for performance / reliability. Are any people using it in real life large scale applications?

Our application is very read heavy. Would we see a penalty in read performance using mysql proxy? I have seen the stats on their site and it looks ok, but of course, stats are not the same as real life experience!

Thanks!
Re: Mysql Replication with write forwarding? [message #2270 is a reply to message #2269 ] Tue, 27 November 2007 15:48 Go to previous messageGo to next message
scoundrel  is currently offline scoundrel
Messages: 58
Registered: August 2006
Location: Toronto, ON, Canada
Member

al.james wrote on Tue, 27 November 2007 06:43


This leads to the question: How is mysql proxy for performance / reliability. Are any people using it in real life large scale applications?

Our application is very read heavy. Would we see a penalty in read performance using mysql proxy? I have seen the stats on their site and it looks ok, but of course, stats are not the same as real life experience!

Thanks!


We're going to do some detailed benchmarks on mysql proxy soon to see how it performs and what load it could be used for. So, stay tuned!


Alexey Kovyrin, MySQL Performance Expert
MySQL Performance Blog
MySQL Consulting
Re: Mysql Replication with write forwarding? [message #2272 is a reply to message #2270 ] Tue, 27 November 2007 17:17 Go to previous message
al.james  is currently offline al.james
Messages: 16
Registered: October 2006
Junior Member
Well thats good. Thanks, looking forward to it! Very Happy

[Updated on: Tue, 27 November 2007 17:18]

Previous Topic:Performance check
Next Topic:Performance metrics
Goto Forum:
  



Current Time: Fri Dec 5 11:09:07 EST 2008

Total time taken to generate the page: 0.00590 seconds
.:: Contact :: Home :: MySQL Support by Percona.com ::.

Powered by: FUDforum 2.7.5.
Copyright ©2001-2006 FUD Forum Bulletin Board Software

MySQL Performance | Forum authority Badge