postgresql failover

postgresql failover

am 13.07.2010 11:33:25 von Vasiliy G Tolstov

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
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

Re: postgresql failover

am 13.07.2010 11:56:13 von Ian Lea

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 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
> 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
>

--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

Re: postgresql failover

am 13.07.2010 12:04:06 von devrim

--=-Ufukh9KfUz0sKhFVJMI/
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

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.=20

> How can i do this in postgresql?=20

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

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

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.=20

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

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.
--=20
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

--=-Ufukh9KfUz0sKhFVJMI/
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEABECAAYFAkw8OhUACgkQtl86P3SPfQ5aHQCfdVQdWQgoByoHTQUT4Y/H tKyv
8SEAoMfjkKZupBf9EUIq/Encsy24C9Fd
=+07K
-----END PGP SIGNATURE-----

--=-Ufukh9KfUz0sKhFVJMI/--