Elasticsearch and connection pool


(曹江华) #1

now,i'm use elasticsearch with java api, but i'm use common-pool as the
connections pool, can't no way to check the connection was lost.

--
http://www.caojianghua.com


(Shay Banon) #2

Why do you use a connection pooling with it? You should create either a
single transport client or node client, it is already thread safe and
automatically reconnects / discovers the cluster.

On Thu, Aug 26, 2010 at 5:56 AM, 曹江华 tujiao.com@gmail.com wrote:

now,i'm use elasticsearch with java api, but i'm use common-pool as the
connections pool, can't no way to check the connection was lost.

--
http://www.caojianghua.com


(system) #3