Re: PHP - Load Balancing
Posted by: Rick James
Date: May 31, 2016 09:32PM

It's a trap!

Do not blindly send all SELECTs to the Slave by some load balancer or whatever. You will screwup in certain cases.

It would be better for your app to know when it is safe to just read, then connect to the Slave. Otherwise connect to the Master. Preferably, a single program (eg, PHP web page) would connect one way or the other, not both.

Options: ReplyQuote


Subject
Written By
Posted
May 30, 2016 12:02AM
Re: PHP - Load Balancing
May 31, 2016 09:32PM
July 01, 2016 11:53PM


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.