Upstream: removed the quick recovery mechanism.

Its usefulness it questionable, and it interacts badly with max_conns.
This commit is contained in:
Ruslan Ermilov 2016-09-22 19:32:45 +03:00
parent 4d4542c838
commit fd9e74f656
4 changed files with 0 additions and 24 deletions

View File

@ -272,12 +272,6 @@ failed:
ngx_http_upstream_rr_peers_wlock(peers);
}
/* all peers failed, mark them as live for quick recovery */
for (peer = peers->peer; peer; peer = peer->next) {
peer->fails = 0;
}
ngx_http_upstream_rr_peers_unlock(peers);
pc->name = peers->name;

View File

@ -485,12 +485,6 @@ failed:
ngx_http_upstream_rr_peers_wlock(peers);
}
/* all peers failed, mark them as live for quick recovery */
for (peer = peers->peer; peer; peer = peer->next) {
peer->fails = 0;
}
ngx_http_upstream_rr_peers_unlock(peers);
pc->name = peers->name;

View File

@ -268,12 +268,6 @@ failed:
ngx_stream_upstream_rr_peers_wlock(peers);
}
/* all peers failed, mark them as live for quick recovery */
for (peer = peers->peer; peer; peer = peer->next) {
peer->fails = 0;
}
ngx_stream_upstream_rr_peers_unlock(peers);
pc->name = peers->name;

View File

@ -491,12 +491,6 @@ failed:
ngx_stream_upstream_rr_peers_wlock(peers);
}
/* all peers failed, mark them as live for quick recovery */
for (peer = peers->peer; peer; peer = peer->next) {
peer->fails = 0;
}
ngx_stream_upstream_rr_peers_unlock(peers);
pc->name = peers->name;