Can haproxy not send request to some backend server with 504?

in my env, some backend servers met some issue (cpu high) and not responding, can we make some configuration to haproxy.cfg hence requests are not sent to these servers for some time ?

This is probably the concept your’re looking for: