diff options
author | Igor Sysoev <igor@sysoev.ru> | 2007-08-27 16:02:43 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2007-08-27 16:02:43 +0000 |
commit | 121bf2f9559181bbf6584ef222ff64bf2cd9fe09 (patch) | |
tree | 16b1999a9c826664985ad871eee0e34c9d018e12 /src | |
parent | ae0347afc882882b6f46566cea90b8d87b33dca7 (diff) | |
download | nginx-121bf2f9559181bbf6584ef222ff64bf2cd9fe09.tar.gz nginx-121bf2f9559181bbf6584ef222ff64bf2cd9fe09.zip |
cancel dynamic weights,
it seems that may permanently set lower weight or even mark server as down
Diffstat (limited to 'src')
-rw-r--r-- | src/http/ngx_http_upstream_round_robin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_upstream_round_robin.c b/src/http/ngx_http_upstream_round_robin.c index 2db99b2ac..be93ccbf8 100644 --- a/src/http/ngx_http_upstream_round_robin.c +++ b/src/http/ngx_http_upstream_round_robin.c @@ -515,7 +515,7 @@ ngx_http_upstream_get_peer(ngx_http_upstream_rr_peers_t *peers) for (i = 0; i < peers->number; i++) { if (peer[i].fails == 0) { - peer[i].current_weight += peer[i].weight; + peer[i].current_weight = peer[i].weight; } else { /* 1 allows to go to quick recovery when all peers failed */ |