Doesn't balance requests with zone directive

Issue #23 new
motomux created an issue

Hi,

I'm trying to use ngx_dynamic_upstream module, and it requires to use zone directive in upstream context.

When I add zone directive, only one of the servers is picked to redirect request.

    upstream backends {
      sticky;
      zone zone_for_backends 128k;
      server 10.84.1.8:8080;
      server 10.84.3.13:8080;
    }

The versions are Nginx: 1.9.12 nginx-sticky-module-ng: 1.2.6 ngx_dynamic_upstream: 0.1.3

Comments (1)

  1. redicec

    I also have the same issue about unbalanced requests. When I add zone directive of ngx_dynamic_upstream module and sticky directive of nginx-sticky-module-ng, the request will be not balanced in backend servers.

    upstream backend {
        zone zone_content 1m;
        sticky path=/;
        server backend1:8080 max_fails=3 fail_timeout=10s;
        server backend2:8080 max_fails=3 fail_timeout=10s;
    }
    

    My environment: Nginx: 1.12.2 ngx_dynamic_upstream: 0.1.6 nginx-sticky-module-ng: master line (lastest update 2016-08-08)

  2. Log in to comment