Searched refs:effective_weight (Results 1 – 8 of 8) sorted by relevance
99 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 …]
216 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()
571 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()
26 ngx_int_t effective_weight; member
93 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 …]
220 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()
570 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()