0

I would like to check and compare the maxconn and conn_cur in haproxy.

If the conn_cur value greater than maxconn, the url needs to be redirected.

URL redirection is working, but the maxconn & conn_cur comparion not working.

acl high_id stats maxconn(conn_cur) gt stats maxconn( maxconn) /  
acl is_root path -i /  
acl is_domain hdr(host) -i xxxx.xxx.xxxx.xxxx 
redirect code 301 location http://xxx.xxx.xxx.xxx if is_domain is_root high_id

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.