great suggestion Daniel. The hash functions weren't what i was looking for but 
nevertheless this is a great suggestion.

From: [email protected]
To: [email protected]
Subject: Re: acl based on the modula of a variable
Date: Sun, 24 Aug 2014 22:34:59 +0000







I use the following:



balance hdr(x-host)
hash-type map-based djb2



Then setup my backends to match the djb2 hash.




Thanks!
Dan Dubovik
Senior Linux Systems Engineer
480-505-8800 x4257










From: jeff saremi <[email protected]>

Date: Sunday, August 24, 2014 at 3:11 PM

To: "[email protected]" <[email protected]>

Subject: acl based on the modula of a variable







I'd like to know if its possible to write a rule that triggers if the "mod" of 
a number (say in the http header) is equal to something.

I am basically partitioning the requests deterministic ally amongst groups of 
servers.



                                          

Reply via email to