Quantcast
Channel: Serverphorums.com - HAProxy
Viewing all articles
Browse latest Browse all 5112

strange integer comparison 1.6.4 (2 replies)

$
0
0
I'm computing an integer like so:
http-request set-var(txn.req_modulo) base,crc32(),mod(1000)

when I use the variable in an anonymous ACL to determine a backend:

use_backend sjc1_spillway_pool if { var(txn.req_modulo) lt 80 }

only requests that calculate to 80 get sent instead of less than 80.


I'll try in a non-anonymous ACL and report back.

Viewing all articles
Browse latest Browse all 5112

Trending Articles