Searched refs:total_weight (Results 1 – 10 of 10) sorted by relevance
120 ngx_uint_t i, total_weight; in ngx_stream_upstream_update_random() local137 total_weight = 0; in ngx_stream_upstream_update_random()141 ranges[i].range = total_weight; in ngx_stream_upstream_update_random()142 total_weight += peer->weight; in ngx_stream_upstream_update_random()412 x = ngx_random() % peers->total_weight; in ngx_stream_upstream_peek_random_peer()
68 ngx_uint_t total_weight; member
83 peers->total_weight = w; in ngx_stream_upstream_init_round_robin()147 backup->total_weight = w; in ngx_stream_upstream_init_round_robin()222 peers->total_weight = n; in ngx_stream_upstream_init_round_robin()
213 w = hp->hash % hp->rrp.peers->total_weight; in ngx_stream_upstream_get_hash_peer()309 npoints = peers->total_weight * 160; in ngx_stream_upstream_init_chash()
122 ngx_uint_t i, total_weight; in ngx_http_upstream_update_random() local139 total_weight = 0; in ngx_http_upstream_update_random()143 ranges[i].range = total_weight; in ngx_http_upstream_update_random()144 total_weight += peer->weight; in ngx_http_upstream_update_random()412 x = ngx_random() % peers->total_weight; in ngx_http_upstream_peek_random_peer()
184 w = hash % iphp->rrp.peers->total_weight; in ngx_http_upstream_get_ip_hash_peer()
214 w = hp->hash % hp->rrp.peers->total_weight; in ngx_http_upstream_get_hash_peer()309 npoints = peers->total_weight * 160; in ngx_http_upstream_init_chash()
70 ngx_uint_t total_weight; member
77 peers->total_weight = w; in ngx_http_upstream_init_round_robin()141 backup->total_weight = w; in ngx_http_upstream_init_round_robin()216 peers->total_weight = n; in ngx_http_upstream_init_round_robin()
5264 float total_weight = 0; in clusterManagerCommandRebalance() local5281 total_weight += n->weight; in clusterManagerCommandRebalance()5305 int expected = (int) (((float)CLUSTER_MANAGER_SLOTS / total_weight) * in clusterManagerCommandRebalance()5347 nodes_involved, total_weight); in clusterManagerCommandRebalance()