Hi colleagues,

seeking for recommendation on how to redirect **every Nth packet** for the following configuration:

acl region1 src -f /etc/haproxy/region1.txt
redirect prefix https://another.url code 302 if region1

The problem behind this - we're serving the existing client base and cannot manage it (this is out of our control - so playing with ACL is meaningless; ACL describes the entire client base in some region). Now we're introducing new functionality by redirecting customers to the new endpoint. Being unsure in performance characteristics of underlying things (this is also out of our control) the only we can do, without breaking the things, is to gradually increase load by redirecting every 20th request, then every 10th request, then every 5th and finally, stop redirecting and use new backend for all requests.

I understand this is very particular case so it is not a feature request but rather seeking for recommendation how it can be done. There is Linux, so other means except DNAT (we rely on the source IP address of the request) are ok.

Will appreciate any directions where I can look at.

Thank you.

--
Volodymyr Litovka
  "Vision without Execution is Hallucination." -- Thomas Edison

Attachment: OpenPGP_0x25A0E7AE3791A60E.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to