pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
postgresql failover
3+ messages / 3 participants
[nested] [flat]

* postgresql failover
@ 2010-07-13 09:33  Vasiliy G Tolstov <v.tolstov@selfip.ru>
  0 siblings, 2 replies; 3+ messages in thread

From: Vasiliy G Tolstov @ 2010-07-13 09:33 UTC (permalink / raw)
  To: pgsql-admin

Hello.

I need failover postgresql installation. Two servers work's together. If
one server fail - another server doing queries. 
In MySQL i'm use two server (mysql-ndb and two mysql api server (getting
queries) with mysql-proxy. If one server fail mysql-proxy route all
queries to another.

How can i do this in postgresql?

-- 
Vasiliy G Tolstov <v.tolstov@selfip.ru>
Selfip.Ru




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: postgresql failover
@ 2010-07-13 09:56  Ian Lea <ian.lea@gmail.com>
  parent: Vasiliy G Tolstov <v.tolstov@selfip.ru>
  1 sibling, 0 replies; 3+ messages in thread

From: Ian Lea @ 2010-07-13 09:56 UTC (permalink / raw)
  To: v.tolstov@selfip.ru; +Cc: pgsql-admin

http://www.postgresql.org/docs/8.4/static/high-availability.html would
be a good place to start research.  And the archives of this thread
would be another - there are recent messages about this sort of thing.
 And google "postgres high availability" or equivalent.

I use slony but there are plenty of other options.  See also the
not-yet-released version 9 of postgres with streaming replication.


--
Ian.


On Tue, Jul 13, 2010 at 10:33 AM, Vasiliy G Tolstov <v.tolstov@selfip.ru> wrote:
> Hello.
>
> I need failover postgresql installation. Two servers work's together. If
> one server fail - another server doing queries.
> In MySQL i'm use two server (mysql-ndb and two mysql api server (getting
> queries) with mysql-proxy. If one server fail mysql-proxy route all
> queries to another.
>
> How can i do this in postgresql?
>
> --
> Vasiliy G Tolstov <v.tolstov@selfip.ru>
> Selfip.Ru
>
>
> --
> Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-admin
>



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: postgresql failover
@ 2010-07-13 10:04  Devrim GÜNDÜZ <devrim@gunduz.org>
  parent: Vasiliy G Tolstov <v.tolstov@selfip.ru>
  1 sibling, 0 replies; 3+ messages in thread

From: Devrim GÜNDÜZ @ 2010-07-13 10:04 UTC (permalink / raw)
  To: v.tolstov@selfip.ru; +Cc: pgsql-admin

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

^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2010-07-13 10:04 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2010-07-13 09:33 postgresql failover Vasiliy G Tolstov <v.tolstov@selfip.ru>
2010-07-13 09:56 ` Ian Lea <ian.lea@gmail.com>
2010-07-13 10:04 ` Devrim GÜNDÜZ <devrim@gunduz.org>

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