Mercurial > hg > nginx
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 Mon Aug 27 15:53:00 2007 +0000 +++ b/src/http/ngx_http_upstream_round_robin.c Mon Aug 27 16:02:43 2007 +0000 @@ -515,7 +515,7 @@ 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 */