pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Devrim GÜNDÜZ <devrim@gunduz.org>
To: v.tolstov@selfip.ru
Cc: PostgreSQL Admin <pgsql-admin@postgresql.org>
Subject: Re: postgresql failover
Date: Tue, 13 Jul 2010 13:04:06 +0300
Message-ID: <1279015446.2349.51.camel@hp-laptop2.gunduz.org> (raw)
In-Reply-To: <1279013605.5517.48.camel@work.selfip.ru>
References: <1279013605.5517.48.camel@work.selfip.ru>

On Tue, 2010-07-13 at 13:33 +0400, Vasiliy G Tolstov wrote:
> I need failover postgresql installation. Two servers work's together.
> If one server fail - another server doing queries. 
<snip>
> How can i do this in postgresql? 

If you don't {have/want to use} shared storage, you can use WAL
replication:

http://www.postgresql.org/docs/current/static/warm-standby.html

There are two tools that I can suggest for this. Walmgr:

http://pgfoundry.org/projects/skytools/

or pitrtools:

https://projects.commandprompt.com/public/pitrtools/

If you want to use shared storage, I'd suggest using Red Hat Cluster
Suite or such. 

http://www.gunduz.org/download.php?dlid=142

is the link to the presentation that I made 4 years ago about this. We
have customer here who is using RHCS+PostgreSQL 8.4 on 4 servers, which
use shared storage and they failover each other whenever one of them
goes down.

You can also use Slony-I or Londiste, too.

Please note that 9.0 will ship with major features for this.

-HTH.
-- 
Devrim GÜNDÜZ
PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer
PostgreSQL RPM Repository: http://yum.pgrpms.org
Community: devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr
http://www.gunduz.org  Twitter: http://twitter.com/devrimgunduz

Attachments:

  signature.asc (application/pgp-signature, 197B) download

view thread (3+ messages)

Message-ID: <1279015446.2349.51.camel@hp-laptop2.gunduz.org>
Permalink:  ../1279015446.2349.51.camel@hp-laptop2.gunduz.org/
Also on:    postgresql.org/message-id/1279015446.2349.51.camel@hp-laptop2.gunduz.org

 · 

reply

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-admin@postgresql.org
  Cc: devrim@gunduz.org, v.tolstov@selfip.ru
  Subject: Re: postgresql failover
  In-Reply-To: <1279015446.2349.51.camel@hp-laptop2.gunduz.org>
  References: <1279013605.5517.48.camel@work.selfip.ru> <1279015446.2349.51.camel@hp-laptop2.gunduz.org>

* 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