# How to tell nginx to check dead backend in upstream adaptively?

**URL:** <https://www.ruby-forum.com/t/how-to-tell-nginx-to-check-dead-backend-in-upstream-adaptively/234983>\
**Category:** NGINX\
**Created:** [May 23, 2013, 5:18pm UTC](https://www.ruby-forum.com/t/how-to-tell-nginx-to-check-dead-backend-in-upstream-adaptively/234983 "2013-05-23T17:18:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![addis\_a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c4cdca/32.png) [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Post date:** [May 23, 2013, 5:18pm UTC](https://www.ruby-forum.com/t/how-to-tell-nginx-to-check-dead-backend-in-upstream-adaptively/234983/1 "2013-05-23T17:18:16Z")

</div>

Hi,

Currently nginx will check every fail\_timeout (default=10s) which is too  
frequent when the backend server dead completely that require manually  
replacement and it might take long time.

Definitely we can mark it as down in the config, but that is not an  
automatic solution.

Is it possible to config nginx that it check adaptively?  
e.g. start from 10s, then 20s, 40s, 60s etc?

Or are there any better approach?

Thanks.
