Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4726

Compare sampled values

$
0
0

@jhume wrote:

From what I've been able to find, it appears that the right hand side of a match has to be a constant. Is there any way to compare one sampled value against another? Specifically I'd like to send a configurable % of certain requests to a different backend, so I'd like to write something like this:

acl use_alt_backend var(txn.configured_percent) gt %[rand(100)]

where txn.configured_percent was looked up from a map file with map_str_int using a value extracted from the path.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4726

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>