# HG changeset patch # User Igor Sysoev # Date 1188230563 0 # Node ID debd1ba60d3f48d4c0fdd630ec33f03672f48399 # Parent 937fbbf611cd7bfc435ab52624b13561b804e4cd cancel dynamic weights, it seems that may permanently set lower weight or even mark server as down diff --git a/src/http/ngx_http_upstream_round_robin.c b/src/http/ngx_http_upstream_round_robin.c --- 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_upst 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 */