comparison src/http/ngx_http_upstream_round_robin.h @ 6099:6ff0ebd6fbf4

Upstream: track the number of active connections to upstreams. This also simplifies the implementation of the least_conn module.
author Ruslan Ermilov <ru@nginx.com>
date Fri, 10 Apr 2015 13:16:23 +0300
parents 94ce52db3367
children c44459611d91
comparison
equal deleted inserted replaced
6098:ac34eff7e147 6099:6ff0ebd6fbf4
21 ngx_str_t server; 21 ngx_str_t server;
22 22
23 ngx_int_t current_weight; 23 ngx_int_t current_weight;
24 ngx_int_t effective_weight; 24 ngx_int_t effective_weight;
25 ngx_int_t weight; 25 ngx_int_t weight;
26
27 ngx_uint_t conns;
26 28
27 ngx_uint_t fails; 29 ngx_uint_t fails;
28 time_t accessed; 30 time_t accessed;
29 time_t checked; 31 time_t checked;
30 32