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

Use "%sc" as a condition when using set-map

$
0
0

Hello. I noticed that when I use “%sc” as a value to write to a map file, this is possible. However, if I try to use it as a condition, it does not seem to work. As an example, this is what I mean:

http-after-response set-map(/path/to/m.map) %[srv_name] "%sc" if { status 503 }

The above works correctly. It writes “%sc” (number of server connections) to the map.

However, if I try to do something like below:

http-after-response set-map(/path/to/m.map) %[srv_name] %[be_name] if { "%sc" 0 }

Then I get an error: condition : missing fetch method in ACL expression '%sc'.

How can I use this or create an acl to be able to use it in the manner I mentioned above? Thank you.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4849

Trending Articles



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