Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id DD2B217D8A3; Tue, 17 Jan 2012 21:55:23 -0400 (AST) Received: from db3ehsobe006.messaging.microsoft.com ([213.199.154.144] helo=DB3EHSOBE006.bigfish.com) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RnKkA-0007ZA-T3; Wed, 18 Jan 2012 01:55:22 +0000 Received: from mail66-db3-R.bigfish.com (10.3.81.251) by DB3EHSOBE006.bigfish.com (10.3.84.26) with Microsoft SMTP Server id 14.1.225.23; Wed, 18 Jan 2012 01:54:59 +0000 Received: from mail66-db3 (localhost [127.0.0.1]) by mail66-db3-R.bigfish.com (Postfix) with ESMTP id 0E25356056E; Wed, 18 Jan 2012 01:55:01 +0000 (UTC) X-SpamScore: -17 X-BigFish: VPS-17(zzbb2dI9371I179dN1432N98dKzz1202hzz8275bhz2fhc1ahc1bh2a8h668h839h) X-Forefront-Antispam-Report: CIP:64.62.153.98; KIP:(null); UIP:(null); IPV:NLI; H:mail.nimblestorage.com; RD:none; EFVD:NLI X-FB-SS: 0, Received-SPF: pass (mail66-db3: domain of nimblestorage.com designates 64.62.153.98 as permitted sender) client-ip=64.62.153.98; envelope-from=manoj@nimblestorage.com; helo=mail.nimblestorage.com ; estorage.com ; Received: from mail66-db3 (localhost.localdomain [127.0.0.1]) by mail66-db3 (MessageSwitch) id 1326851642736183_2819; Wed, 18 Jan 2012 01:54:02 +0000 (UTC) Received: from DB3EHSMHS017.bigfish.com (unknown [10.3.81.251]) by mail66-db3.bigfish.com (Postfix) with ESMTP id AEC911C0043; Wed, 18 Jan 2012 01:54:02 +0000 (UTC) Received: from mail.nimblestorage.com (64.62.153.98) by DB3EHSMHS017.bigfish.com (10.3.87.117) with Microsoft SMTP Server (TLS) id 14.1.225.23; Wed, 18 Jan 2012 01:54:01 +0000 Received: from [10.11.1.75] (64.71.12.98) by coloex01.nimblestorage.com (192.168.50.95) with Microsoft SMTP Server (TLS) id 14.1.355.2; Tue, 17 Jan 2012 17:54:05 -0800 Message-ID: <4F16263C.2050309@nimblestorage.com> Date: Tue, 17 Jan 2012 17:54:04 -0800 From: Manoj Govindassamy User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 To: Fujii Masao CC: , Subject: Re: PG synchronous replication and unresponsive slave References: <4F0E0438.5070300@nimblestorage.com> <4F0F229F.30308@nimblestorage.com> <4F1471AB.9060008@nimblestorage.com> <4F15EA2F.2040703@nimblestorage.com> In-Reply-To: Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [64.71.12.98] X-OriginatorOrg: nimblestorage.com X-Pg-Spam-Score: -2.6 (--) X-Archive-Number: 201201/82 X-Sequence-Number: 38994 I am aware of pgpool-II and its features. Just that my requirements are little different. I have a System (PG runs on it) which already has Failover mechanism to another System and I want PG to be part of this cluster and not clustered on its own. Mean, PG has to be running in Master system and in synchronous replication mode with another slave system, but the failover is driven from the higher level and not just on PG's failure. So, whenever PG's slave node is unresponsive, we better let the replication cutoff and run the master system independently. So, we need better mechanism to detect when Master PG's synchronous replication not working as expected or when the slave PG is going unresponsive. If not, master PG is held back by the slave PG and so the whole clustered system is stuck. Hope, I am making some sense here. Let me know if there are easy ways to detect Master PG's replication not working (via libpq would be more preferable). thanks, Manoj On 01/17/2012 05:04 PM, Fujii Masao wrote: > On Wed, Jan 18, 2012 at 6:37 AM, Manoj Govindassamy > wrote: >> (2) We are not comfortable moving to PGPool just for automatic failback mode >> on hot-standby failure. > Hmm.. my reply might be misleading. What I meant was to use pgpool-II > as a clusterware for PostgreSQL built-in replication, not as a replication > itself. You can health-check, do failover if necessary and manage the > PostgreSQL replication by using pgpool-II. AFAIK pgpool-II has such an > operation mode. But you are still not comfortable in using pgpool-II in > that way? > > Regards, >