summaryrefslogtreecommitdiffhomepage
path: root/src/http/ngx_http_upstream_round_robin.h
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@nginx.com>2015-04-10 13:16:23 +0300
committerRuslan Ermilov <ru@nginx.com>2015-04-10 13:16:23 +0300
commit18fa775b1060a663e15473161c795992926e60e1 (patch)
tree573c21f6804ea6b8098dfc37c4d3fe8da38ff5b5 /src/http/ngx_http_upstream_round_robin.h
parentb25f0ddcf1202a475dee0d0bb6b93c1272c99d17 (diff)
downloadnginx-18fa775b1060a663e15473161c795992926e60e1.tar.gz
nginx-18fa775b1060a663e15473161c795992926e60e1.tar.bz2
Upstream: track the number of active connections to upstreams.
This also simplifies the implementation of the least_conn module.
Diffstat (limited to 'src/http/ngx_http_upstream_round_robin.h')
-rw-r--r--src/http/ngx_http_upstream_round_robin.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/http/ngx_http_upstream_round_robin.h b/src/http/ngx_http_upstream_round_robin.h
index 3bbba0b37..8927d98c6 100644
--- a/src/http/ngx_http_upstream_round_robin.h
+++ b/src/http/ngx_http_upstream_round_robin.h
@@ -24,6 +24,8 @@ typedef struct {
ngx_int_t effective_weight;
ngx_int_t weight;
+ ngx_uint_t conns;
+
ngx_uint_t fails;
time_t accessed;
time_t checked;