AB testing with nginx

Valery Kholodkov valery+nginxen at grid.net.ru
Tue Nov 3 14:26:24 MSK 2009

You can store experiment variants in a cookie and then chose one upstream from several independent upstreams using the cookie value, while having all servers configured in every upstream.  

----- dawe7 <nginx-forum at nginx.us> wrote:
> Thanks, but here is one problem:
> If I have 3 servers (or more) in upstream, I split traffic to 33%, 33%, 33%. No 50% and 50%.
> And second problem is If I use servers with different performance. I may overload one of this server.
> Because I can not combine ip_hash and weight methods for connection distribution and set one server weight=2 and others servers weight=1.
> And split traffic to 50%,25%+25%.

Valery Kholodkov

More information about the nginx mailing list