Welcome! Log In Create A New Profile

Advanced

upstream url

Michael Monashev
July 19, 2010 04:50PM
Hi, Igor.

Can you add this patch for some 3rd party balancers, that use upstream
url. For example: ketama-like algorithms.

--- src/http/ngx_http_upstream.c
+++ src/http/ngx_http_upstream.c
@@ -4080,6 +4080,7 @@ ngx_http_upstream_server(ngx_conf_t *cf,
goto invalid;
}

+ us->name = u.url;
us->addrs = u.addrs;
us->naddrs = u.naddrs;
us->weight = weight;
--- src/http/ngx_http_upstream.h
+++ src/http/ngx_http_upstream.h
@@ -80,6 +80,7 @@ typedef struct {


typedef struct {
+ ngx_str_t name;
ngx_addr_t *addrs;
ngx_uint_t naddrs;
ngx_uint_t weight;

--
Michael


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

upstream url

Michael Monashev 3177 July 19, 2010 04:50PM

Re: upstream url

Piotr Sikora 1042 July 19, 2010 05:32PM

Re: upstream url

Maxim Dounin 1065 July 20, 2010 04:54AM

Re: upstream url

replay 1241 July 20, 2010 05:02AM

Re: upstream url

Михаил Монашёв 1467 August 03, 2010 04:54AM



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

Online Users

Guests: 94
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready