From owner-freebsd-questions@FreeBSD.ORG Tue Apr 29 12:52:20 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2B00A3C7 for ; Tue, 29 Apr 2014 12:52:20 +0000 (UTC) Received: from mail-yk0-x235.google.com (mail-yk0-x235.google.com [IPv6:2607:f8b0:4002:c07::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E2CD71FBC for ; Tue, 29 Apr 2014 12:52:19 +0000 (UTC) Received: by mail-yk0-f181.google.com with SMTP id q200so117111ykb.40 for ; Tue, 29 Apr 2014 05:52:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=QDZhjKV5chgsGUSZvRk5LQiNgD/xw98LBP0kftlLNeQ=; b=jJZxFUAxmWeTYsicaxDYRcVbXpV82/Ymu+qj3MEEz0mcTRBZ5pv162ZN3CLTgY1mtp eOHO4Fv7FJHlNGxIJ6KeXDVeNxV5pwLc05mxyuiDwpaxZ1ClTCFusy4nRYWFIVP6OrVJ GjcR1z+6o9aRZGCRbA4HMfThJrjYfqoJtAV0cvR9x7eL5R8S+5Ap9FerEbsGsazQ7YDF sR7XKd3J0uhAX8XFgDnRAxyOyvitAY1Td6fH4WCAZXu31MzlYH8wmpa34mZosgc/owRN yHjy5xkM5OGH4SMaNeo69SJWR8kA0rTo8ACDb+txkTa9PqVtIgBPYIV9QGM6c5R7NYwj qNOw== MIME-Version: 1.0 X-Received: by 10.236.199.78 with SMTP id w54mr2412255yhn.139.1398775939081; Tue, 29 Apr 2014 05:52:19 -0700 (PDT) Received: by 10.170.54.8 with HTTP; Tue, 29 Apr 2014 05:52:19 -0700 (PDT) In-Reply-To: <20140428230035.f04c4827f95e110feb45626d@yahoo.es> References: <20140428230035.f04c4827f95e110feb45626d@yahoo.es> Date: Tue, 29 Apr 2014 13:52:19 +0100 Message-ID: Subject: Re: Synchronized web sites on different FreeBSD servers? From: krad To: Eduardo Morras Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 Cc: FreeBSD Questions 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: Tue, 29 Apr 2014 12:52:20 -0000 are the boxes in the same location? If so i would put all the site content on a highly available shared storage backend device, and then just have the two jails mount up the content via nfs. If you dont have anything like this, maybe you could use something like ceph or glusterfs underneath the nfs layer. rsync is also a good option as has been mentioned and is fairly easy to setup On 28 April 2014 22:00, Eduardo Morras wrote: > 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 > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" >