# Does $lastPing and $failedPings in Connection is preserved during subsequent requests?

**URL:** <https://discuss.elastic.co/t/does-lastping-and-failedpings-in-connection-is-preserved-during-subsequent-requests/125167>\
**Category:** Elasticsearch\
**Created:** [March 22, 2018, 10:41am UTC](https://discuss.elastic.co/t/does-lastping-and-failedpings-in-connection-is-preserved-during-subsequent-requests/125167 "2018-03-22T10:41:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pjedwabny](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pjedwabny/32/29134_2.png) [@pjedwabny](https://discuss.elastic.co/u/pjedwabny)\
**Post date:** [March 22, 2018, 10:41am UTC](https://discuss.elastic.co/t/does-lastping-and-failedpings-in-connection-is-preserved-during-subsequent-requests/125167/1 "2018-03-22T10:41:08Z")

</div>

According to documentation [https://www.elastic.co/guide/en/elasticsearch/client/php-api/5.0/\_connection\_pool.html](https://www.elastic.co/guide/en/elasticsearch/client/php-api/5.0/_connection_pool.html) in official PHP client ([https://github.com/elastic/elasticsearch-php](https://github.com/elastic/elasticsearch-php)), if a node fails then it will be marked as dead for 60\*2^x (x - $failedPings) seconds. It seems to work during one request but during next request, each node is checked again.

Are these params preserved during the subsequent request? In the client, I do not see any usage of APCu or something that could save it for next request but maybe I'm missing something.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 19, 2018, 10:41am UTC](https://discuss.elastic.co/t/does-lastping-and-failedpings-in-connection-is-preserved-during-subsequent-requests/125167/2 "2018-04-19T10:41:16Z")

</div>

Closed on April 19, 2018, 10:41am UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
