Re: Connection-fail-over

From: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
To: Mikko Tiihonen <mikko(dot)tiihonen(at)nitorcreations(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Connection-fail-over
Date: 2012-05-17 17:23:39
Message-ID: 4FB5341B.8080206@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

On 17.05.2012 20:00, Mikko Tiihonen wrote:
> Hi,
>
> I have been thinking of adding connection fail-over support to the jdbc
> driver. What this means is that there would be a way to specify more
> than host:port pair to connect to. This will become handy with
> high-availability installations.
>
> Currently the limitation of hostname means that there has to be a
> virtual ip address that is moved with the active backend, which is a
> complex solution that can break.
>
> If we have list of hostname:port pairs we just have to make sure that
> only the master database allows connections from the jdbc clients.

I'd suggest doing this as a generic wrapper or proxy that would work
with any JDBC driver, not just PostgreSQL's. Maybe there is such a thing
out there already? I believe many application servers at least can do
that, and then there's http://ha-jdbc.sourceforge.net/, which I think
can do that too.

--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Dave Cramer 2012-05-17 17:25:41 Re: Java 1.4
Previous Message Mikko Tiihonen 2012-05-17 17:00:43 Connection-fail-over