Home
last modified time | relevance | path

Searched refs:total_weight (Results 1 – 10 of 10) sorted by relevance

/f-stack/app/nginx-1.16.1/src/stream/
H A Dngx_stream_upstream_random_module.c120 ngx_uint_t i, total_weight; in ngx_stream_upstream_update_random() local
137 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()
H A Dngx_stream_upstream_round_robin.h68 ngx_uint_t total_weight; member
H A Dngx_stream_upstream_round_robin.c83 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()
H A Dngx_stream_upstream_hash_module.c213 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()
/f-stack/app/nginx-1.16.1/src/http/modules/
H A Dngx_http_upstream_random_module.c122 ngx_uint_t i, total_weight; in ngx_http_upstream_update_random() local
139 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()
H A Dngx_http_upstream_ip_hash_module.c184 w = hash % iphp->rrp.peers->total_weight; in ngx_http_upstream_get_ip_hash_peer()
H A Dngx_http_upstream_hash_module.c214 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()
/f-stack/app/nginx-1.16.1/src/http/
H A Dngx_http_upstream_round_robin.h70 ngx_uint_t total_weight; member
H A Dngx_http_upstream_round_robin.c77 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()
/f-stack/app/redis-5.0.5/src/
H A Dredis-cli.c5264 float total_weight = 0; in clusterManagerCommandRebalance() local
5281 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()