I’ve heard about haproxy few days in the past, so please, forgive my lack of expertise. I’ve bought API with two endpoints /fibb and /hey. Calculation of fibb takes 15 seconds, calculation for hey is 0.01 s. Each get request runs one other course of with new PID (I am on Ubuntu). I’m making an attempt to dam a number of requests on fibb whereas it’s calculating – whereas fibb calculation I want to make use of hey endpoint many instances.
To sum up – I must reject all requests on fibb whether it is busy. I discovered that answer: Restrict most requests / second for a particular path on HAProxy, however I get error throughout these instructions. I attempted to implement these https://www.haproxy.com/weblog/four-examples-of-haproxy-rate-limiting/ options, but it surely’s not working for me. Lastly,I dockerized that api, and I’m operating container with –pids-limit 3, but it surely’s not the factor I want to attain. My model: HA-Proxy model 2.0.5-1ubuntu0.4 2020/04/03.