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

  • From: linux@xxxxxxxxxxxxxxxx (Suresh Ramasubramanian)
  • Date: Mon Jan 10 18:56:12 2005

Rohit Baisakhiya wrote:

Yes we have 6 webservers, 2 mysql db servers, 1 mail server running
qmail & 1 file server. we are using unison for site syncronisation and
real time db replication with mysql 4.1.8. Also the script which i
took for changing the values 0 & 1 is read by a php code in which we
have a condition for connection mysql db server "mysql_connect" , if
it reads value 0 it will connect the master db server and if it gets
value 1 it will connect slave server.

That is a very inefficient way to try and loadbalance mysql.  Instead, 
take a look at http://sqlrelay.sourceforge.net/

        srs

Other related posts: