Persistence + Round robin

Aleksandar Lazic al-nginx at
Thu Sep 25 13:36:42 MSD 2008

On Don 25.09.2008 03:43, Brian Moschel wrote:
>While your proposed solution provides a clever way to stick requests to
>the same node, it doesn't provide a way to fulfill the first part of my
>requirement: dispatching the first 100 requests with Referer=
> to nodeA and the next 100 to nodeB.  UPSTREAM_FAIR
>looks great but it doesn't fill this need.

maybe the perl module can help you in this:

but i don't know if there is a 'global' variable which can holds the
current counter.

Maybe Igor can answer this.



More information about the nginx mailing list