[Ilugc] Compiling php page from a script with out a browser.

  • From: linux@xxxxxxxxxxxxxxxx (Suresh Ramasubramanian)
  • Date: Mon Jan 10 22:05:02 2005

Suraj wrote:

Rohit Baisakhiya wrote: 
,----
| if it  reads value 0 it  will connect the  master db server and  if it
| gets value 1 it will connect slave server.
`----

What you  should rather do  is to run  a local nameserver that  does a
round-robin rotation for your mysql server.

That wont help failover which is what he wants to implement I guess.
It is basically overkill if all he has are two or three mysql servers - 
better use them as a single cluster and cache mysql connections, using 
sqlrelay or other mysql clustering app.

        srs

Other related posts: