How to disconnect from elasticsearch-py client/connection-pool
Asked Answered
A

1

10

Whats the correct way to disconnect an elasticsearch-py (python) client rsp. close an existing connection pool? I cannot find any information in the docs.

Antoineantoinetta answered 12/4, 2015 at 11:10 Comment(1)
See github.com/elastic/elasticsearch-py/issues/223Antoineantoinetta
A
1

Just for completeness as per thread linked in in the comments of the question.

Currently there is no way to close the connections or the client itself, partly because you are the first one to ask for it, we just rely on the garbage collector to close the socket when it cleans up the client.

As of 2018 the above is no longer correct, an explicit close method has been added to the the ConnectionPool.

Axiomatic answered 10/2, 2017 at 13:13 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.