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

  • From: rohitbaisakhiya@xxxxxxxxx (Rohit Baisakhiya)
  • Date: Tue Jan 11 15:51:52 2005

On Mon, 10 Jan 2005 21:18:00 +0530, Suresh Ramasubramanian
<linux@xxxxxxxxxxxxxxxx> wrote:

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.

For fail support only we are having conditions in the php code itself.
The webserver will ping the master mysql database every 10 or 15
seconds and will connect to the database whose value the ping results
it gets from the script.

This has solved our fail-over problem !! also we are not using any
kind of failover supporting app !!
  

Cheers !!




-- 
Regards,
Rohit Baisakhiya
KiranInfotech

Other related posts: