Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 95F131DA4C21; Tue, 17 Jan 2012 17:38:11 -0400 (AST) Received: from ch1ehsobe003.messaging.microsoft.com ([216.32.181.183] helo=ch1outboundpool.messaging.microsoft.com) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RnGjI-0000h9-Mt; Tue, 17 Jan 2012 21:38:11 +0000 Received: from mail87-ch1-R.bigfish.com (10.43.68.246) by CH1EHSOBE015.bigfish.com (10.43.70.65) with Microsoft SMTP Server id 14.1.225.23; Tue, 17 Jan 2012 21:37:48 +0000 Received: from mail87-ch1 (localhost [127.0.0.1]) by mail87-ch1-R.bigfish.com (Postfix) with ESMTP id 3EAAB28045D; Tue, 17 Jan 2012 21:37:50 +0000 (UTC) X-SpamScore: -11 X-BigFish: VPS-11(zzbb2dI9371I1432N98dKzz1202hzz8275bhz2fhc1ahc1bh2a8h668h839h) 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: 13, Received-SPF: pass (mail87-ch1: 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 mail87-ch1 (localhost.localdomain [127.0.0.1]) by mail87-ch1 (MessageSwitch) id 132683627095840_5600; Tue, 17 Jan 2012 21:37:50 +0000 (UTC) Received: from CH1EHSMHS022.bigfish.com (snatpool1.int.messaging.microsoft.com [10.43.68.250]) by mail87-ch1.bigfish.com (Postfix) with ESMTP id 0FEC92005E; Tue, 17 Jan 2012 21:37:50 +0000 (UTC) Received: from mail.nimblestorage.com (64.62.153.98) by CH1EHSMHS022.bigfish.com (10.43.70.22) with Microsoft SMTP Server (TLS) id 14.1.225.23; Tue, 17 Jan 2012 21:37:47 +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 13:37:52 -0800 Message-ID: <4F15EA2F.2040703@nimblestorage.com> Date: Tue, 17 Jan 2012 13:37:51 -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> 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/76 X-Sequence-Number: 38988 Thanks for your views. (1) Will try out emptying synchronous_standby_names on replica failures and verify if the transactions proceeds thru. (2) We are not comfortable moving to PGPool just for automatic failback mode on hot-standby failure. Any suggestions on how to build this failback mechanism for master in PG9.1.2 ? We are using C interface for PG. Any kind of health checking that we can do on the master to detect the hot-standby problem and let master reload its config with empty synchronous_standby_names ? Any help is much appreciated. thanks, Manoj On 01/16/2012 07:44 PM, Fujii Masao wrote: > On Tue, Jan 17, 2012 at 3:51 AM, Manoj Govindassamy > wrote: >>>> 1. Transaction which was stuck right when slave going away never went >>>> thru even after I reloaded master's config with local commit on. I do see >>>> all new transactions on master are going thru fine, except the one which was >>>> stuck initially. How to get this stuck transaction complete or return with >>>> error. > Changing synchronous_commit doesn't affect such a transaction. Instead, > empty synchronous_standby_names and reload the configuration file to > resume that transaction. > >>>> 2. Whenever there is a problem with slave, I have to manually reload >>>> master's config with local commit turned on to get master go forward. Is >>>> there any automated way to reload this config with local commit on on >>>> slave's unresponsiveness ? tcp connection timeouts, replication timeouts all >>>> detect the failures, but i want to run some corrective action on these >>>> failure detection. > PostgreSQL doesn't have such a capability, but pgpool-II might have. > Can you ask that in pgpool-II mailing-list? > > Regards, >