upstream url

Михаил Монашёв postmaster at softsearch.ru
Tue Aug 3 12:51:25 MSD 2010


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 at softsearch.ru
ICQ# 166233339
http://michael.mindmix.ru/
Без бэкапа по жизни.




More information about the nginx-devel mailing list