Welcome! Log In Create A New Profile

Advanced

[nginx] Modules compatibility: slow start fields.

Maxim Dounin
September 29, 2016 01:28PM
details: http://hg.nginx.org/nginx/rev/4080f94a996f
branches:
changeset: 6708:4080f94a996f
user: Maxim Dounin <mdounin@mdounin.ru>
date: Thu Sep 29 18:06:00 2016 +0300
description:
Modules compatibility: slow start fields.

diffstat:

src/http/ngx_http_upstream.h | 1 +
src/http/ngx_http_upstream_round_robin.h | 2 ++
src/stream/ngx_stream_upstream.h | 1 +
src/stream/ngx_stream_upstream_round_robin.h | 2 ++
4 files changed, 6 insertions(+), 0 deletions(-)

diffs (46 lines):

diff --git a/src/http/ngx_http_upstream.h b/src/http/ngx_http_upstream.h
--- a/src/http/ngx_http_upstream.h
+++ b/src/http/ngx_http_upstream.h
@@ -98,6 +98,7 @@ typedef struct {
ngx_uint_t max_conns;
ngx_uint_t max_fails;
time_t fail_timeout;
+ ngx_msec_t slow_start;

unsigned down:1;
unsigned backup:1;
diff --git a/src/http/ngx_http_upstream_round_robin.h b/src/http/ngx_http_upstream_round_robin.h
--- a/src/http/ngx_http_upstream_round_robin.h
+++ b/src/http/ngx_http_upstream_round_robin.h
@@ -35,6 +35,8 @@ struct ngx_http_upstream_rr_peer_s {

ngx_uint_t max_fails;
time_t fail_timeout;
+ ngx_msec_t slow_start;
+ ngx_msec_t start_time;

ngx_uint_t down; /* unsigned down:1; */

diff --git a/src/stream/ngx_stream_upstream.h b/src/stream/ngx_stream_upstream.h
--- a/src/stream/ngx_stream_upstream.h
+++ b/src/stream/ngx_stream_upstream.h
@@ -54,6 +54,7 @@ typedef struct {
ngx_uint_t max_conns;
ngx_uint_t max_fails;
time_t fail_timeout;
+ ngx_msec_t slow_start;

unsigned down:1;
unsigned backup:1;
diff --git a/src/stream/ngx_stream_upstream_round_robin.h b/src/stream/ngx_stream_upstream_round_robin.h
--- a/src/stream/ngx_stream_upstream_round_robin.h
+++ b/src/stream/ngx_stream_upstream_round_robin.h
@@ -35,6 +35,8 @@ struct ngx_stream_upstream_rr_peer_s {

ngx_uint_t max_fails;
time_t fail_timeout;
+ ngx_msec_t slow_start;
+ ngx_msec_t start_time;

ngx_uint_t down; /* unsigned down:1; */


_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] Modules compatibility: slow start fields.

Maxim Dounin 469 September 29, 2016 01:28PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 120
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready