diff options
| author | Ruslan Ermilov <ru@nginx.com> | 2015-04-10 13:16:23 +0300 |
|---|---|---|
| committer | Ruslan Ermilov <ru@nginx.com> | 2015-04-10 13:16:23 +0300 |
| commit | 18fa775b1060a663e15473161c795992926e60e1 (patch) | |
| tree | 573c21f6804ea6b8098dfc37c4d3fe8da38ff5b5 /src/http/ngx_http_upstream_round_robin.h | |
| parent | b25f0ddcf1202a475dee0d0bb6b93c1272c99d17 (diff) | |
| download | nginx-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.h | 2 |
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; |
