From: | Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> |
---|---|
To: | Victor Wagner <vitus(at)wagner(dot)pp(dot)ru> |
Cc: | pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Proposal: Implement failover on libpq connect level. |
Date: | 2015-08-19 07:25:15 |
Message-ID: | CAA4eK1K1jxHLL6iEep3TQcb+HAR6kv9pU1oZ2AA-mpJs0FoOuQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-jdbc |
On Wed, Aug 19, 2015 at 12:35 PM, Victor Wagner <vitus(at)wagner(dot)pp(dot)ru> wrote:
> On 2015.08.19 at 08:28:32 +0530, Amit Kapila wrote:
>
> > On Tue, Aug 18, 2015 at 9:48 AM, Victor Wagner <vitus(at)wagner(dot)pp(dot)ru>
> wrote:
> > >
> > >
> > > Behavoir
> > > --------
> > >
> > > If PQconnectdb encounters connect string with multiple hosts specified,
> > > it attempts to establish connection with all these hosts
> simultaneously,
> > > and begins to work with server which responds first, unless
> > > loadbalancing parameter is true.
> > >
> > >
> > I think here you are mixing the behaviour for load balancing solution and
> > failover solution. It seems to me that for client-side failover solution
> > (which is also known as Transparent Application Failover), the connection
> > attempt to second server should be done after the first connection is
> > broken as that provide more flexibility.
>
> 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.
With Regards,
Amit Kapila.
EnterpriseDB: http://www.enterprisedb.com
From | Date | Subject | |
---|---|---|---|
Next Message | Amit Langote | 2015-08-19 07:30:39 | Re: Declarative partitioning |
Previous Message | Victor Wagner *EXTERN* | 2015-08-19 07:18:22 | Re: Proposal: Implement failover on libpq connect level. |
From | Date | Subject | |
---|---|---|---|
Next Message | Albe Laurenz | 2015-08-19 07:28:30 | Re: Concurrent read and write access of LargeObject via getBlob() can raise exception |
Previous Message | Victor Wagner *EXTERN* | 2015-08-19 07:18:22 | Re: Proposal: Implement failover on libpq connect level. |