From: Richard Huxton <dev@archonet.com>
To: Nareen S <bunix.n@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: Postgresql Replication
Date: Wed, 22 Feb 2006 09:23:00 +0000
Message-ID: <43FC2D74.60306@archonet.com> (raw)
In-Reply-To: <1bc2fddb0602212210m22d6eb14m6df6e63b753b2d1@mail.gmail.com>
References: <1bc2fddb0602212210m22d6eb14m6df6e63b753b2d1@mail.gmail.com>
Nareen S wrote:
> Current Setup
> I am having a Mailserver running on Postfix.For the same I had configured a
> High Availability Solution using Heartbeat and DRBD for
> replication.Thesetup is like Primary/Secondary Node Servers and all
> mails are replicated to
> secondary using DRBD.If primary server fails secondary will be up with mails
> ..
> The total number of users is 600 users,and Hardware used is Two Compaq
> servers with SCSI HDD,1 GB RAM each,
> Network-100Mbps
>
> New Planned Setup
> Now I am planning for Postgresql server in the same setup.I want to know
> will it work in the same setup.ie if I configure
> a new device in drbd can I get HA for postgresql also.If I use DRBD for
> postgresql also ,will it affects the existing setups.Finally if it is not
> possible what is the next option for this.
It *should* work as long as you don't start the PostgreSQL server on the
second machine until you are sure that the first has failed. It will
then think it is recovering from having crashed.
This is assuming that drbd doesn't mess with how fsync() works, and I
seem to remember it doesn't last time I looked.
The alternative (assuming you're using the database for user
details/routing etc) would be replication (slony/dbmirror/etc) or
perhaps even PITR depending on the rate of change of the database.
--
Richard Huxton
Archonet Ltd
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: dev@archonet.com, bunix.n@gmail.com
Subject: Re: Postgresql Replication
In-Reply-To: <43FC2D74.60306@archonet.com>
References: <1bc2fddb0602212210m22d6eb14m6df6e63b753b2d1@mail.gmail.com> <43FC2D74.60306@archonet.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox