From owner-freebsd-questions@FreeBSD.ORG Mon Apr 28 21:00:58 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D4EED77D for ; Mon, 28 Apr 2014 21:00:58 +0000 (UTC) Received: from nm10-vm9.bullet.mail.ir2.yahoo.com (nm10-vm9.bullet.mail.ir2.yahoo.com [212.82.96.161]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3135411A9 for ; Mon, 28 Apr 2014 21:00:57 +0000 (UTC) Received: from [212.82.98.62] by nm10.bullet.mail.ir2.yahoo.com with NNFMP; 28 Apr 2014 20:57:44 -0000 Received: from [46.228.39.75] by tm15.bullet.mail.ir2.yahoo.com with NNFMP; 28 Apr 2014 20:57:44 -0000 Received: from [127.0.0.1] by smtp112.mail.ir2.yahoo.com with NNFMP; 28 Apr 2014 20:57:44 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s1024; t=1398718664; bh=YrO5wrfqy1hXc0Ymc7S0Dlr6hkxCfOLHeHRA0dirCFY=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Date:From:To:Subject:Message-Id:In-Reply-To:References:X-Mailer:Disposition-Notification-To:Mime-Version:Content-Type:Content-Transfer-Encoding; b=mBzQH/+rWsos3vjel/O6d70MRd60n2QgsQzUKRrCcaHUwLuHRpF91y3s6rwCEJttkjFabM2D+LRDXiq5pOCiW88jtXShdm1j85x7gQaiUvltnqsn1mL3acPkpX3hBM4a/bOJn/h2a0+Y/AL9lA88ZSHflWiVrYhirwE+UdzGPpM= X-Yahoo-Newman-Id: 690604.69958.bm@smtp112.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: izQbUEQVM1l02LJ2L6gKK2NIL3d8TZC08x7TSxc.qxgRInS dF1HBuLWmJkR8WkIBkLk3X9xc4oodXRllFPgps1_l90IshmeOMlvlYf.zrsU I4INNWgim5PBWUkV3ngevkc9A3YW8U7EQoxiDJN66YKLPHMkvhE2xr_aGIvP QppLDMUxvjwcW7cqXP8w9mbq9Bc9mcIt3b7Jpt_y0rM54mzfYiKBUPKEtVEw A1bPiR32e1vgmzRu30ir7x8yxCbG2GgWy5jxJwNnl3XBG1wJbJm_nkXmQYkg YIbhN4f_SU8RQTkZ5_oepB0Fjk_mZrvA9J2JgIzTqei2aqtVI29ZGLZxLhfR XG8XUz2NqWExFA6cNOGlGBFi49oDEdTKPCEdEPHrEDY9_vYVWsWnpXh_ozxf 9vhVnzAb3UGBCrzeex2K.6FGNnA8sp5hdv8bRifJkC2alOXg9g9aJupK10CE XfEtuCHiS6SK_Gqo2mz.JCjTidY7fvP_utZ_LRoffcaAtd0CqZY5yza8Rqg- - X-Yahoo-SMTP: mX392iiswBAeJNdO_s.EW62LZDJR X-Rocket-Received: from localhost (emorrasg@212.21.233.80 with plain [188.125.69.59]) by smtp112.mail.ir2.yahoo.com with SMTP; 28 Apr 2014 20:57:44 +0000 UTC Date: Mon, 28 Apr 2014 23:00:35 +0200 From: Eduardo Morras To: freebsd-questions@freebsd.org Subject: Re: Synchronized web sites on different FreeBSD servers? Message-Id: <20140428230035.f04c4827f95e110feb45626d@yahoo.es> In-Reply-To: References: X-Mailer: Sylpheed 3.4.1 (GTK+ 2.24.22; amd64-portbld-freebsd9.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Apr 2014 21:00:59 -0000 On Mon, 28 Apr 2014 07:48:12 -0700 "edflecko ." wrote: > Forgive me if this is more of an "Apache" question and not a FreeBSD > question. > > I'd like to use two Soekris appliances to host a single web site for a > small business using Apache in a jail. Each Soekris would be > configured identically and the web site they host would be as well. > > I'd like to know what features FreeBSD has (or Apache, if you'd like > to comment) to maintain synchronization between the two "servers" so > if one of the Soekris fails...the other will continue to host the web > site without service interruption. I'll say that it depends if you have dynamic content or static content. In both cases you must set up failover at network level, carp, heartbeat and proper dns configuration are my elections on this topic. If your content is static, I mean, no database nor program that creates web content "on the fly", a single rsync is enough to synchronize, but if your content is dynamic, you need to sync databases and program internal status (sesion information, cookies, etc..). If you store program status in the db, less work and simpler setup. > > Finally, once the failed Soekris is brought back online, how would you > "re-sync" the two? If statitc content, just rsync, if not, synchronize db using appropiate tools (dump/restore, f.ex.) L > > Ed --- --- Eduardo Morras