Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oqlnb-0000Ip-CN for pgsql-general@arkaria.postgresql.org; Fri, 04 Nov 2022 01:47:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oqlnZ-0001qt-Sn for pgsql-general@arkaria.postgresql.org; Fri, 04 Nov 2022 01:47:09 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oqlnZ-0001nM-GF for pgsql-general@lists.postgresql.org; Fri, 04 Nov 2022 01:47:09 +0000 Received: from mail-oa1-x34.google.com ([2001:4860:4864:20::34]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oqlnT-00049U-Vy for pgsql-general@lists.postgresql.org; Fri, 04 Nov 2022 01:47:08 +0000 Received: by mail-oa1-x34.google.com with SMTP id 586e51a60fabf-13c2cfd1126so4175740fac.10 for ; Thu, 03 Nov 2022 18:47:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:from:references:to:content-language:subject:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=Ob5if5Il7e/ov+pl8Ox8WqLnIghVfaftYa+yUx5Pgeo=; b=dmxRVqvq2hmUyuY2MHFjoVZ9GfY5owCEENZkIQmf2lpdgBL5NjHfZjUH/do5cBser3 eZB4/cT+yZNWoVhNHf8D9u5PwUYA5dxarQ1Cq0K5DAno4z/LHvvpeVhB6MnNGf/xl5ck e6cDoyioMnNNXoI4jzLtM2cTLt5A6e8HSeIkEen3UGAWZIf63c9+ppeP8h8eX6uhzRU/ RzlTALlG9l5+cMfUmXpt0h81jkDtJ0dJMg1zLCnn0bYjZAwog3FHdOFbKV5Smw+zJ7Ex 6P87Pt57XvLhprMHhrkrXigGeL0qvyC46ycMW/kPAS35tF5qckNG3IUWnFAhO2xGn7MZ VSiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:from:references:to:content-language:subject:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=Ob5if5Il7e/ov+pl8Ox8WqLnIghVfaftYa+yUx5Pgeo=; b=EF6uq12NWF8/pH3L91+AsJKUPbQI3E4y+4FSy2+fYV+dkDqdIjBSwNffMDfSw7m/fx 9qRngrx5kRxIlrx57lBrelqMU7E/OTpAJ9wbXVvyjJzRWDSSdP5/ZOM3lluJmwmfCzbG 29JbyNJS36cfTv7Y5d8176Wuidts4VXHKamqn5cpGt7KmBZI1fCPK97h2zfiYoUmWt3R OX4zsOnHQp1gG65osyLsDVeqPoDihzNhHop0TRvT1aLZa1qZJoxWpmYUQndtLxDq/ydj bxNM0JWolgLSjOkScYyHUmd51JXUUb+Uq/sdghx1QjW8FdtDSb83vQ4J+ti4UyqReSPJ AVHQ== X-Gm-Message-State: ACrzQf0eO9BY8b7ROjJ/GA1JXpKqpKqLBdTJ7mJCc3tYkJdO5IPK2M8d BciVBT88q2oLbQai+OkeI91XcrMPO4w= X-Google-Smtp-Source: AMsMyM7CSVpvzXwwBzUr7Iyjq8YKhZuCd79N3t1nHiig2Ny/1Xbi7y2ngRTYDOLprIwmFhAnvXvNww== X-Received: by 2002:a05:6870:41cb:b0:131:9656:cc30 with SMTP id z11-20020a05687041cb00b001319656cc30mr30522689oac.51.1667526423276; Thu, 03 Nov 2022 18:47:03 -0700 (PDT) Received: from [192.168.88.10] (ip68-11-68-85.no.no.cox.net. [68.11.68.85]) by smtp.googlemail.com with ESMTPSA id v28-20020a056870311c00b0013ae39d0575sm1147423oaa.15.2022.11.03.18.46.49 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 03 Nov 2022 18:46:50 -0700 (PDT) Content-Type: multipart/alternative; boundary="------------U9SigIX0zhpnOn94rI00I0U0" Message-ID: Date: Thu, 3 Nov 2022 20:46:48 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: shutdown Postgres (standby) host causing timeout on other servers in replication Content-Language: en-US To: pgsql-general@lists.postgresql.org References: From: Ron In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------U9SigIX0zhpnOn94rI00I0U0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 11/3/22 15:55, Joanna Xu wrote: > > Hi All, > > We have PostgreSQL master-slave replication configuration with 4 servers. > > After shutting down one standby server, we found below errors on all other > 3 servers and the applications couldn’t access the database due to the > timeout. > > DAO-00002 datasource connection failure:Time out waiting for a > DefaultDataSource > > ERROR SQLException code: 0 SQLState: null > > What could be the cause of the errors? Would anyting be helpful to prevent > it from happening? > Synchronous or asynchronous replication? Go to the database server and look in /*it's*/ logs. -- Angular momentum makes the world go 'round. --------------U9SigIX0zhpnOn94rI00I0U0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit On 11/3/22 15:55, Joanna Xu wrote:

Hi All,

 

We have PostgreSQL master-slave replication configuration with 4 servers. 

After shutting down one standby server, we found below errors on all other 3 servers and the applications couldn’t access the database due to the timeout.

DAO-00002 datasource connection failure:Time out waiting for a DefaultDataSource

ERROR SQLException code: 0 SQLState: null

 

What could be the cause of the errors?  Would anyting be helpful to prevent it from happening?


Synchronous or asynchronous replication?

Go to the database server and look in it's logs.

--
Angular momentum makes the world go 'round.
--------------U9SigIX0zhpnOn94rI00I0U0--