changeset 1425:debd1ba60d3f

cancel dynamic weights, it seems that may permanently set lower weight or even mark server as down
author Igor Sysoev <igor@sysoev.ru>
date Mon, 27 Aug 2007 16:02:43 +0000
parents 937fbbf611cd
children adbafd129d06
files src/http/ngx_http_upstream_round_robin.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 */