Home
last modified time | relevance | path

Searched refs:effective_weight (Results 1 – 8 of 8) sorted by relevance

/f-stack/app/nginx-1.16.1/src/stream/
H A Dngx_stream_upstream_round_robin.c99 peer[n].effective_weight = server[i].weight; in ngx_stream_upstream_init_round_robin()
232 peer[i].effective_weight = 1; in ngx_stream_upstream_init_round_robin()
352 peer[0].effective_weight = 1; in ngx_stream_upstream_create_round_robin_peer()
386 peer[i].effective_weight = 1; in ngx_stream_upstream_create_round_robin_peer()
560 peer->current_weight += peer->effective_weight; in ngx_stream_upstream_get_peer()
561 total += peer->effective_weight; in ngx_stream_upstream_get_peer()
563 if (peer->effective_weight < peer->weight) { in ngx_stream_upstream_get_peer()
564 peer->effective_weight++; in ngx_stream_upstream_get_peer()
639 peer, peer->effective_weight); in ngx_stream_upstream_free_round_robin_peer()
641 if (peer->effective_weight < 0) { in ngx_stream_upstream_free_round_robin_peer()
[all …]
H A Dngx_stream_upstream_least_conn_module.c216 peer->current_weight += peer->effective_weight; in ngx_stream_upstream_get_least_conn_peer()
217 total += peer->effective_weight; in ngx_stream_upstream_get_least_conn_peer()
219 if (peer->effective_weight < peer->weight) { in ngx_stream_upstream_get_least_conn_peer()
220 peer->effective_weight++; in ngx_stream_upstream_get_least_conn_peer()
H A Dngx_stream_upstream_hash_module.c571 peer->current_weight += peer->effective_weight; in ngx_stream_upstream_get_chash_peer()
572 total += peer->effective_weight; in ngx_stream_upstream_get_chash_peer()
574 if (peer->effective_weight < peer->weight) { in ngx_stream_upstream_get_chash_peer()
575 peer->effective_weight++; in ngx_stream_upstream_get_chash_peer()
H A Dngx_stream_upstream_round_robin.h26 ngx_int_t effective_weight; member
/f-stack/app/nginx-1.16.1/src/http/
H A Dngx_http_upstream_round_robin.c93 peer[n].effective_weight = server[i].weight; in ngx_http_upstream_init_round_robin()
226 peer[i].effective_weight = 1; in ngx_http_upstream_init_round_robin()
342 peer[0].effective_weight = 1; in ngx_http_upstream_create_round_robin_peer()
376 peer[i].effective_weight = 1; in ngx_http_upstream_create_round_robin_peer()
551 peer->current_weight += peer->effective_weight; in ngx_http_upstream_get_peer()
552 total += peer->effective_weight; in ngx_http_upstream_get_peer()
554 if (peer->effective_weight < peer->weight) { in ngx_http_upstream_get_peer()
555 peer->effective_weight++; in ngx_http_upstream_get_peer()
633 peer, peer->effective_weight); in ngx_http_upstream_free_round_robin_peer()
635 if (peer->effective_weight < 0) { in ngx_http_upstream_free_round_robin_peer()
[all …]
H A Dngx_http_upstream_round_robin.h26 ngx_int_t effective_weight; member
/f-stack/app/nginx-1.16.1/src/http/modules/
H A Dngx_http_upstream_least_conn_module.c220 peer->current_weight += peer->effective_weight; in ngx_http_upstream_get_least_conn_peer()
221 total += peer->effective_weight; in ngx_http_upstream_get_least_conn_peer()
223 if (peer->effective_weight < peer->weight) { in ngx_http_upstream_get_least_conn_peer()
224 peer->effective_weight++; in ngx_http_upstream_get_least_conn_peer()
H A Dngx_http_upstream_hash_module.c570 peer->current_weight += peer->effective_weight; in ngx_http_upstream_get_chash_peer()
571 total += peer->effective_weight; in ngx_http_upstream_get_chash_peer()
573 if (peer->effective_weight < peer->weight) { in ngx_http_upstream_get_chash_peer()
574 peer->effective_weight++; in ngx_http_upstream_get_chash_peer()