From: | Mikko Tiihonen <mikko(dot)tiihonen(at)nitorcreations(dot)com> |
---|---|
To: | Dave Cramer <pg(at)fastcrypt(dot)com> |
Cc: | kaprikorn07 <bharath(dot)spyk(at)gmail(dot)com>, "pgsql-jdbc(at)postgresql(dot)org" <pgsql-jdbc(at)postgresql(dot)org> |
Subject: | Re: Failover Datasource? |
Date: | 2012-12-12 15:06:06 |
Message-ID: | 50C89D5E.1020908@nitorcreations.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
On 12/12/2012 12:49 PM, Dave Cramer wrote:
> Mikko,
>
> I can't recall did you ever provide a documentation patch for this ?
I'm not sure, but I still found the patch that I was supposed to send... attached.
-Mikko
> On Wed, Dec 12, 2012 at 5:41 AM, Mikko Tiihonen <Mikko(dot)Tiihonen(at)nitorcreations(dot)com <mailto:Mikko(dot)Tiihonen(at)nitorcreations(dot)com>> wrote:
>
> With latest jdbc drivers you can simply configure multiple host:port pairs in the url separated by comma:
>
> jdbc:postgresql://host1:port1,host2:port2/test
>
> It has only the most basic failover support. When a new connection is opened the hosts are tried in round-robin until a connection is successfully established.
>
> -Mikko
> ________________________________________
> From: pgsql-jdbc-owner(at)postgresql(dot)org <mailto:pgsql-jdbc-owner(at)postgresql(dot)org> [pgsql-jdbc-owner(at)postgresql(dot)org <mailto:pgsql-jdbc-owner(at)postgresql(dot)org>] on
> behalf of kaprikorn07 [bharath(dot)spyk(at)gmail(dot)com <mailto:bharath(dot)spyk(at)gmail(dot)com>]
> Sent: 12 December 2012 11:09
> To: pgsql-jdbc(at)postgresql(dot)org <mailto:pgsql-jdbc(at)postgresql(dot)org>
> Subject: Re: [JDBC] Failover Datasource?
>
> Hi All,
>
> As Bruce Adams has mentioned, please let me know if there is any other way
> to do it other than pgBouncer and pgPool.
>
> Please help!
>
>
>
> --
> View this message in context: http://postgresql.1045698.n5.nabble.com/Re-Failover-Datasource-tp4496411p5736270.html
> Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com.
>
>
> --
> Sent via pgsql-jdbc mailing list (pgsql-jdbc(at)postgresql(dot)org <mailto:pgsql-jdbc(at)postgresql(dot)org>)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-jdbc
>
>
> --
> Sent via pgsql-jdbc mailing list (pgsql-jdbc(at)postgresql(dot)org <mailto:pgsql-jdbc(at)postgresql(dot)org>)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-jdbc
>
>
Attachment | Content-Type | Size |
---|---|---|
connection-failover-documentation.patch | text/x-patch | 1.4 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Chen Huajun | 2012-12-13 10:42:10 | Re: performance problem of Failover Datasource? |
Previous Message | Dave Cramer | 2012-12-12 10:49:39 | Re: Failover Datasource? |