mirror of
https://github.com/nginx/nginx.git
synced 2024-11-29 00:56:38 +08:00
Upstream: removed the quick recovery mechanism.
Its usefulness it questionable, and it interacts badly with max_conns.
This commit is contained in:
parent
4d4542c838
commit
fd9e74f656
@ -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 New Issue
Block a user