Re: ES Connection object - Lifetime

2014-11-25 Thread Honza Král
Hi, the connection is lazy so it will only be opened once you make a request - just instantiating a client like this will not create any connections. Once a connection is created the python client will try to hold on to it as long as possible (it uses urllib3 to do the connection pooling itself)

ES Connection object - Lifetime

2014-11-24 Thread Ap
How long does the connection object stay open in ES ? Eg. For Python es = elasticsearch.Elasticsearch([ {'host': 'localhost', 'port': 9200} ]) I have a web service that keeps running on production. Do I need to check if the connection is open after x time ?