Elasticsearch-py connection pool
The doc just shows you how to create a connection with
Elasticsearch()
Not sure if I'm reusing the connection (using a connection pool) in my django view.
Do I need to configure something special to use connection pooling or is it just provided automatically as a pool of database connections?
+3
source to share
1 answer
ConnectionPool is only used if multiple connections are defined. You can use the add_connection method of the Transport class to add multiple connections.
+1
source to share