> Basically, the pair of Linux servers will have Apache, PHP, MySQL, and
> Samba. We're not experiencing any problems right now with our present
> setup  (one Athlon XP 2200+ with 512MB RAM and a 7200 RPPM IDE), but
> we have a lot  of video content (mainly QuickTime), and we expect to
> begin getting hit hard  before the end of the summer.

So, do you have updates to the content through the web site or is there 
an external mechanism to upload new content to the site?  If there is 
an external mechanism, you can modify it to upload the files to both 
servers.  If uploads are handled through the site, you can modify the 
upload code to take an uploaded file and push it over to the other 
server.  

> the  problem is keeping the the databases and the web content up to
> date on both  machines. Also, what about PHP sessions?

Have the application redirect to one machine or the other, so a 
particular user's session will always be on the same server.  I.e., a 
user goes to http://www.yoursite.byu.edu/, and gets redirected to 
either http://www-a.yoursite.byu.edu/ or http://www-b.yoursite.byu.edu/,
which then hands out the session cookie, etc.

You will need to adjust your application to live in a replicated 
environment.  As far as handling replication on the MySQL db, some work 
has been done on clustering techniques.  A quick google search for 
"MySQL clustering" reveals some useful links.

Feel free to contact me off-list at [EMAIL PROTECTED] if you need help 
getting this stuff going.

        -jan-
-- 
Jan L. Peterson
Unemployed "Computer Facilitator"
http://www.peterson.ath.cx/~jlp/resume.html



____________________
BYU Unix Users Group 
http://uug.byu.edu/ 
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to