mirror of
https://github.com/nginx/nginx.git
synced 2026-10-21 19:41:35 +00:00
balance more fair when there are several servers with equal weights,
side effect: now smallest weights go first
This commit is contained in:
parent
589fc748ed
commit
fcd9dda633
1 changed files with 1 additions and 1 deletions
|
|
@ -498,7 +498,7 @@ ngx_http_upstream_get_peer(ngx_http_upstream_rr_peers_t *peers)
|
|||
}
|
||||
|
||||
if (peer[n].current_weight * 1000 / peer[i].current_weight
|
||||
>= peer[n].weight * 1000 / peer[i].weight)
|
||||
> peer[n].weight * 1000 / peer[i].weight)
|
||||
{
|
||||
return n;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue