Changing the Connection Pooledit

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);