Skip navigation links

MySQL Forums :: MySQL Proxy :: MySQL proxy query duplication


Advanced Search

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 343 Chris Vivid 09/29/2009 11:55AM
Re: MySQL proxy query duplication 87 Diego Medina 11/06/2009 10:27PM


Sorry, only registered users may post in this forum.