staticConnectionPool

edit

Identical to the StaticNoPingConnectionPool, except it pings nodes before they are used to determine if they are alive. This may be useful for long-running scripts, but tends to be additional overhead that is unnecessary for average PHP scripts.

To use the StaticConnectionPool:

$client = ClientBuilder::create()
            ->setConnectionPool('\Elasticsearch\ConnectionPool\StaticConnectionPool', [])
            ->build();

Note that the implementation is specified via a namespace path to the class.