MySQL Forums
Forum List  »  Router & Proxy

MySQL proxy query duplication
Posted by: Chris Vivid
Date: September 29, 2009 11:55AM

Hi there!

MySQL proxy seems to be heavily used for R/W type splitting applications. I wish to duplicate queries to two servers and only return data from one of them.

I realise that MySQL proxy handles load balancing type behaviour with the following syntax:
--proxy-backendaddresses
and if there are multiple backendaddresses then it will start to load balance between them.

How can I get proxy to do what I need? Any tips for writting the Lua script which will split the query two masters and only return the result from one?

The two masters should not be aware of each others presence - otherwise I would have used standard replication.

Thanks for any input!

Options: ReplyQuote


Subject
Views
Written By
Posted
MySQL proxy query duplication
5407
September 29, 2009 11:55AM
2592
November 06, 2009 10:27PM


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.