pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
To: Mikko Tiihonen <mikko.tiihonen@nitorcreations.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Connection-fail-over
Date: Thu, 17 May 2012 20:23:39 +0300
Message-ID: <4FB5341B.8080206@enterprisedb.com> (raw)
In-Reply-To: <4FB52EBB.4060309@nitorcreations.com>
References: <4FB52EBB.4060309@nitorcreations.com>

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



view thread (5+ messages)  latest in thread

Message-ID: <4FB5341B.8080206@enterprisedb.com>
Permalink:  ../4FB5341B.8080206@enterprisedb.com/
Also on:    postgresql.org/message-id/4FB5341B.8080206@enterprisedb.com

 · 

reply

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: heikki.linnakangas@enterprisedb.com, mikko.tiihonen@nitorcreations.com
  Subject: Re: Connection-fail-over
  In-Reply-To: <4FB5341B.8080206@enterprisedb.com>
  References: <4FB52EBB.4060309@nitorcreations.com> <4FB5341B.8080206@enterprisedb.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