Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 5707963242D for ; Tue, 13 Jul 2010 07:05:19 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 76047-08 for ; Tue, 13 Jul 2010 10:05:10 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.gunduz.org (ns1.gunduz.org [77.79.103.58]) by mail.postgresql.org (Postfix) with ESMTP id 4576D6321BA for ; Tue, 13 Jul 2010 07:05:11 -0300 (ADT) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.gunduz.org (Postfix) with ESMTP id 1786A400394; Tue, 13 Jul 2010 13:10:12 +0300 (EEST) X-Virus-Scanned: amavisd-new at mail.gunduz.org Received: from mail.gunduz.org ([127.0.0.1]) by localhost (mail.gunduz.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id afVcdwRr7pE6; Tue, 13 Jul 2010 13:10:11 +0300 (EEST) Received: from [10.15.1.221] (unknown [84.51.49.52]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.gunduz.org (Postfix) with ESMTPSA id ECAEF400393; Tue, 13 Jul 2010 13:10:11 +0300 (EEST) Subject: Re: postgresql failover From: Devrim =?ISO-8859-1?Q?G=DCND=DCZ?= To: v.tolstov@selfip.ru Cc: PostgreSQL Admin In-Reply-To: <1279013605.5517.48.camel@work.selfip.ru> References: <1279013605.5517.48.camel@work.selfip.ru> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-Ufukh9KfUz0sKhFVJMI/" Date: Tue, 13 Jul 2010 13:04:06 +0300 Message-ID: <1279015446.2349.51.camel@hp-laptop2.gunduz.org> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 (2.28.3-1.fc12) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201007/56 X-Sequence-Number: 35075 --=-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.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.=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=C3=9CND=C3=9CZ PostgreSQL Dan=C4=B1=C5=9Fman=C4=B1/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/HtKyv 8SEAoMfjkKZupBf9EUIq/Encsy24C9Fd =+07K -----END PGP SIGNATURE----- --=-Ufukh9KfUz0sKhFVJMI/--