New

The executive guide to generative AI

Read more

Changing the Connection Pool

edit
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.

Changing the Connection Pool

edit

Changing the connection pool is very simple: instantiate the client with your chosen connection pool implementation:

$params['connectionPoolClass'] = '\Elasticsearch\ConnectionPool\SniffingConnectionPool';
$client = new Elasticsearch\Client($params);


Was this helpful?
Feedback