Upstream: removed the quick recovery mechanism.
Its usefulness it questionable, and it interacts badly with max_conns.
This commit is contained in:
parent
b70abc5241
commit
5d1226a4ce
4 changed files with 0 additions and 24 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue