Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Apr 2014 13:52:19 +0100
From:      krad <kraduk@gmail.com>
To:        Eduardo Morras <emorrasg@yahoo.es>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: Synchronized web sites on different FreeBSD servers?
Message-ID:  <CALfReyc3u7bgAX85sL9g-QkZ%2BWTxoYKj5BbFuahv71_gs8qAzw@mail.gmail.com>
In-Reply-To: <20140428230035.f04c4827f95e110feb45626d@yahoo.es>
References:  <CAFS4T6Z1QJ5-jY1joKN46PGDTFa-rWd2ua3-OuUFt6HZBb4DSw@mail.gmail.com> <20140428230035.f04c4827f95e110feb45626d@yahoo.es>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <emorrasg@yahoo.es> wrote:

> On Mon, 28 Apr 2014 07:48:12 -0700
> "edflecko ." <edflecko@gmail.com> 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 <emorrasg@yahoo.es>
> _______________________________________________
> 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"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CALfReyc3u7bgAX85sL9g-QkZ%2BWTxoYKj5BbFuahv71_gs8qAzw>