From owner-freebsd-stable@FreeBSD.ORG Mon Apr 5 21:32:44 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8829D106566B for ; Mon, 5 Apr 2010 21:32:44 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.25]) by mx1.freebsd.org (Postfix) with ESMTP id 3D00A8FC19 for ; Mon, 5 Apr 2010 21:32:43 +0000 (UTC) Received: by qw-out-2122.google.com with SMTP id 3so1558226qwe.7 for ; Mon, 05 Apr 2010 14:32:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:cc:content-type; bh=Y87pgVkq5sA5co/5f5foXQqbh965JoxJV3kPOG+tDNs=; b=IsGSYCTGQZ+WqUqQbmMJAWb0vlD4Z6GtygSh4+uUxDOHy9rAgqcGNLvTe171RzZ2pL 3NO9D8JvOdtXJafSz+DMIAxjmkPKzUoj2kvTd1Zp24fgpITDXSSQE3I4aW/elFZOVslE ZyT3nvZpDBKfyhtkCkMvxuIusy7OlWcHQgslQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=bnfoOvIGOUISZ44IFU4DDsbPV3cXhsN+jiXecMLxtCI17aA7VYA6OrCg1nMr88LR7L R1ZkHPMKAFOSEW9nZIL6mTCJJ+fgzS7RFiJklN4TtLDfyk4hDz+FGmCoSOU9vcZgWotF oQpRnStHgEcwarrDCwkMai+q4iklaJmKhHK+g= MIME-Version: 1.0 Received: by 10.229.83.132 with HTTP; Mon, 5 Apr 2010 14:32:43 -0700 (PDT) In-Reply-To: <4BBA51B9.6010803@gausus.net> References: <1209800810.33861270466947931.JavaMail.root@dagobah.intersec.pl> <4BBA05A2.40706@intertainservices.com> <4BBA1823.1090305@gausus.net> <4BBA4334.1020506@interazioni.it> <4BBA4478.7030302@gausus.net> <20100405164306.hmy4n8pvs4goc8ks@www.goldsword.com> <4BBA51B9.6010803@gausus.net> Date: Mon, 5 Apr 2010 16:32:43 -0500 Received: by 10.229.224.149 with SMTP id io21mr634228qcb.64.1270503163235; Mon, 05 Apr 2010 14:32:43 -0700 (PDT) Message-ID: From: Adam Vande More To: Maciej Jan Broniarz Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-stable@freebsd.org Subject: Re: fault tolerant web servers on freebsd X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Apr 2010 21:32:44 -0000 On Mon, Apr 5, 2010 at 4:10 PM, Maciej Jan Broniarz wrote: > > Let's say i need to run a few php/sql based web sites and I would like to > maintain uptime of about 99,99% per month. No matter how good the hardware - > it will always fail at some time. My goal is to build a system, that can > maintain that uptime. > > From what You say I need some level of HA system, to maintain the required > uptime. > > So, as I've said earlier (correct me, if I'm wrong) - the setup could look > something like that: > > - 2 web servers with carp > - 2 storage servers with on-line sync mechanism running > - 2 mysql servers with on-line database replication > > (i'm skiping power and network issues at the moment). > > Few people have told me about a setup with linux, drbd and heartbeat which > offers them some level of HA. Has anyone tried anything similar on FreeBSD? > Each HA implementation is different, you still really haven't provided enough details eg are servers running off same switch, or are you going to have latency issues(DRBD and ggate both dislike latency). DB replication doesn't necessarily need to be done via block level replication. Generally speaking, you'll make your storage backend HA first, then build other services off that like iscsi or nfs. There is no single answer to this because there are so many needs and ways to address them. and yes, sysutils/heartbeat works with *BSD and they are in use. There are also other options like http://lethargy.org/~jesus/writes/postgresql-warm-standby-on-zfs-crack -- Adam Vande More