From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: shutdown Postgres (standby) host causing timeout on other servers in replication
Date: Thu, 3 Nov 2022 20:46:48 -0500
Message-ID: <aa41e570-7740-2be5-8205-0ff5a3d60c0b@gmail.com> (raw)
In-Reply-To: <AM9PR06MB8313D3D3BF650CD8CC468FA984389@AM9PR06MB8313.eurprd06.prod.outlook.com>
References: <AM9PR06MB8313D3D3BF650CD8CC468FA984389@AM9PR06MB8313.eurprd06.prod.outlook.com>
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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: ronljohnsonjr@gmail.com
Subject: Re: shutdown Postgres (standby) host causing timeout on other servers in replication
In-Reply-To: <aa41e570-7740-2be5-8205-0ff5a3d60c0b@gmail.com>
References: <AM9PR06MB8313D3D3BF650CD8CC468FA984389@AM9PR06MB8313.eurprd06.prod.outlook.com> <aa41e570-7740-2be5-8205-0ff5a3d60c0b@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox