From owner-freebsd-questions Sun Mar 11 14:54:18 2001 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-65-26-235-186.mmcable.com [65.26.235.186]) by hub.freebsd.org (Postfix) with SMTP id E8BDD37B719 for ; Sun, 11 Mar 2001 14:54:14 -0800 (PST) (envelope-from mwm@mired.org) Received: (qmail 33686 invoked by uid 100); 11 Mar 2001 22:54:13 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15020.533.797648.298021@guru.mired.org> Date: Sun, 11 Mar 2001 16:54:13 -0600 To: Jorge Biquez Cc: questions@freebsd.org Subject: Re: Load Balancing .... In-Reply-To: <95724151@toto.iv> X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Jorge Biquez types: > I'm running FreeBSD 3.2 with apache without problems. I decided to have 2 > machines running my sites and use load balancing on my radios. It is > working very good. Actually I FTP all the new information on both servers > when I need to make changes. > > I'm not a FreeBSD expert but learning and I was wondering if you could give > me your advice on how to have both machines updated identical the > best way. The best way to do this is make the process of copying to *both* systems an automatic part of distribution system. A crude mechanism would be to set up an "install" shell script on the test server that arranged to copy things to both servers. That's a bit error-prone though. What I do for my clients is to integrate things into the source control system. There are two branches in that system - test and production. The systems running servers have a script that updates the server to the appropriate branch once a minute. This requires a source control system that can do that efficiently - particularly in the case where there have been no changes made. If your site search engine can delete from and add individual pages to the index, then you can have the same scripts parse the udpate report and tweak the index, thus keeping the search engines index in sync with the two servers. http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message