Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 97E2FB5D8BD for ; Thu, 16 Jun 2011 23:02:51 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 95385-05 for ; Fri, 17 Jun 2011 02:02:45 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from hogranch.com (hogranch.com [75.101.82.47]) by mail.postgresql.org (Postfix) with ESMTP id 82439B5D803 for ; Thu, 16 Jun 2011 23:02:44 -0300 (ADT) Received: from [127.0.0.1] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id p5H22WE03162 for ; Thu, 16 Jun 2011 19:02:32 -0700 Message-ID: <4DFAB5B8.5010603@hogranch.com> Date: Thu, 16 Jun 2011 19:02:32 -0700 From: John R Pierce User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.17) Gecko/20110414 Lightning/1.0b2 Thunderbird/3.1.10 MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Re: Failover Datasource? References: <4DFA5A86.9030301@acm.org> <4DFA671F.2050005@acm.org> <4DFA9704.4000209@hogranch.com> <4DFAB403.5010309@acm.org> In-Reply-To: <4DFAB403.5010309@acm.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-HawgScanner-Information: Please contact the ISP for more information X-HawgScanner: Found to be clean X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201106/44 X-Sequence-Number: 21968 On 06/16/11 6:55 PM, Bruce Adams wrote: > In principal, I agree; in practice, that's not the way it's been done > in the Java application server world. > > I have two readily available Java database connection pool > implementations available: the one bundled with Apache Tomcat and > Hibernate's c3p0. Neither of these directly support failover. They > each expect the lower level JDBC driver to deal with failover. (This > is true of BEA WebLogic and IBM WebSphere as well, at least as of a > few years ago when I last used them intensely.) > > What I'm looking for is very standard stuff in the Java application > server world. The JDBC driver handles failover and/or load balancing > to multiple backend database servers. it just seems to me that the individual client drivers shouldn't be what is tracking the state of the server cluster. I can't imagine the driver layer could do more than 'try connecting to server 1, if that fails, try server 2'... if server 1 is dead and not responding, this is going to be painfully slow and result in minute long TCP connection timeouts on each connect. Do oracle jdbc drivers support this multiple-server notation, same as shown here earlier for mysql? -- john r pierce N 37, W 122 santa cruz ca mid-left coast