From: Victor Wagner <vitus@wagner.pp.ru>
To: pgsql-hackers@postgresql.org
Subject: Re: Proposal: Implement failover on libpq connect level.
Date: Wed, 19 Aug 2015 10:53:04 +0300
Message-ID: <20150819075304.GF31302@wagner.pp.ru> (raw)
In-Reply-To: <CAA4eK1K1jxHLL6iEep3TQcb+HAR6kv9pU1oZ2AA-mpJs0FoOuQ@mail.gmail.com>
References: <20150818041850.GA5092@wagner.pp.ru>
<CAA4eK1LY9Yz_3wUYtj-3+VaOZA6nsKKuroGCJmCmfQVCFvcQBA@mail.gmail.com>
<20150819070522.GB31302@wagner.pp.ru>
<CAA4eK1K1jxHLL6iEep3TQcb+HAR6kv9pU1oZ2AA-mpJs0FoOuQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
On 2015.08.19 at 12:55:15 +0530, Amit Kapila wrote:
> > I think that failover procedure should begin before first connection is
> > ever established.
> >
>
> As far as I understand, failover gets initiated once the master server goes
> down or is not accessible due to some reason, so for such cases if you
> have the connection to both the servers then it might not work.
Master server might go down when client is not started yet.
And when client starts up, it has to find out which server to connect
now.
Consider point-of-sale terminals, bank offices or anything else, which
do not work round the clock. Clerk comes to his workplace in the
morning, switches on terminal and inserts her smartcard to authorize
with server. She doesn't need to know what server name is and where it
is located. Either application finds the server automatically, or
support engineer has to be called to fix things.
Moreover, in some situations restart of application (or even client
terminal) is acceptable price for failover, as long as there is no need
to manually fix the configuration.
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
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-jdbc@postgresql.org
Cc: vitus@wagner.pp.ru, pgsql-hackers@postgresql.org
Subject: Re: Proposal: Implement failover on libpq connect level.
In-Reply-To: <20150819075304.GF31302@wagner.pp.ru>
References: <20150818041850.GA5092@wagner.pp.ru> <CAA4eK1LY9Yz_3wUYtj-3+VaOZA6nsKKuroGCJmCmfQVCFvcQBA@mail.gmail.com> <20150819070522.GB31302@wagner.pp.ru> <CAA4eK1K1jxHLL6iEep3TQcb+HAR6kv9pU1oZ2AA-mpJs0FoOuQ@mail.gmail.com> <20150819075304.GF31302@wagner.pp.ru>
* 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