subj.
I have an application built in Tornado that mostly using 3 different APIs internally.
The problem is I can a see lot of HTTP 599: Timeout in request queue errors registered.
After googling around I understood that the reason could be in `request_timeout`, `connection_timeout` and `max_clients` values.
I could image I can set `request_timeout`, `connection_timeout` in the range of 10 to 60 sec in order to give my customers a feedback in reasonable amount of time. But how can I figure out the `max_clients` value?
I believe there should be a way to track the http client queue length, send metrics (e.g. every 5 sec), draw a graph in Graphana and probably set some alerts so I could play around with `max_clients` value.
What is the best way to do it? Or what is the maximum reasonable `max_clients` value I could use?
Best regards,
Vladimir