2017-11-16 16:24 GMT+01:00 omer kirkagaclioglu <[email protected]>: > Hi Lukas, > > Thanks for the quick answer. I am using haproxy on another service which > consists of GET requests with very small query parameters. It load balances > to a backend with 4 servers with 3K-20K requests per second. This time I > see 3400K goroutines waiting for reading the request, although there are no > POST bodies to stream this time. That is why I am thinking it is something > other than slow uploading clients. > > The concurrency is not really the problem, but I want to save the > application resources for application purposes only and want to handle > everything low-level on load balancing side.
You can limit and tune the amount of concurrent in flight requests via maxconn configuration (on the frontend, and on each backend server individually). Tune it to the number of goroutines you would like to see. But don't set it to 1 just because nginx artificially buffers everything. cheers, lukas

