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

MM> Hi, Igor.

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

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

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


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





--

С уважением,
Михаил Монашёв
mailto:postmaster@softsearch.ru
ICQ# 166233339
http://michael.mindmix.ru/
Без бэкапа по жизни.


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

upstream url

Michael Monashev 3491 July 19, 2010 04:50PM

Re: upstream url

Piotr Sikora 1193 July 19, 2010 05:32PM

Re: upstream url

Maxim Dounin 1213 July 20, 2010 04:54AM

Re: upstream url

replay 1430 July 20, 2010 05:02AM

Re: upstream url

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



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

Online Users

Guests: 146
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