Persistence + Round robin

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


On Don 25.09.2008 03:43, Brian Moschel wrote:
>Grzegorz,
>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=
>www.somedomain.com 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:

http://wiki.codemongers.com/NginxEmbeddedPerlModule

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

Maybe Igor can answer this.

BR

Aleks





More information about the nginx mailing list