IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
staticConnectionPool
editstaticConnectionPool
editIdentical 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.