Date: Sun, 25 Jun 2000 16:16:49 -0500 (CDT) From: Mike Meyer <mwm@mired.org> To: questions@FreeBSD.ORG Subject: Updating mirrored web servers (Was: <Linux Virtual Server> Equivalent in FreeBSD?) Message-ID: <14678.30401.351560.567647@guru.mired.org> In-Reply-To: <bulk.57138.20000625060912@hub.freebsd.org> References: <bulk.57138.20000625060912@hub.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Gabriel Ambuehl <gabriel_ambuehl@buz.ch> writes: > And then there's still the problem of the mirroring of the servers: > what solution is best to mirror them as close as possible to realtime? Perforce is a nice solution (though it's not free). You need at least two branches to the web server code, though. Whatever you want for development & testing, and then a "production" branch. Your production web servers are configured so they do a "p4 sync" and it copies the latest production code to the proper places on the web server. This is cheap because Perforce keeps (on the perforce server) a database of what is on each client. In fact, it's so cheap that having a script that does it once a minute won't noticably load even a 486. With lots of web servers, doing it frequently is probably a *good* idea. Doing it often keeps the load on the perforce server closer to level, as it updates small bits frequenty rather than large bits at longer intervals. The end result is that when someone commits code to the production branch, all the web servers are udpated in a matter of minutes. What's really slick is that if your site search engine (you do have a site search engine, don't you?) has an "udpate this page" hook, you can feed the list of updated files output by "p4 sync" - after proper mastication - to the site search engine, and have real-time udpates to that as well. <mike To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14678.30401.351560.567647>