AB testing with nginx

Maxim Dounin mdounin at mdounin.ru
Tue Nov 3 12:42:02 MSK 2009


Hello!

On Tue, Nov 03, 2009 at 04:27:13AM -0500, dawe7 wrote:

> Hello,
> I need testing our web-site using AB Test.
> One half request serve by first upstream, and other request serve by second upstream.
> 
> But If request goes from same people/computer/IP is necessary route request to same upstream like last request from this people/computer/IP.
> 
> I think that I may split user by IP adress. Even IP(last 3 digits from IP) route to first  upstream and odd IP route to second upstream.
> But how to do that?

http://wiki.nginx.org/NginxHttpUpstreamModule#ip_hash

Maxim Dounin





More information about the nginx mailing list