Open ygoldfeld opened 7 months ago
I did not file the original ticket in pre-open-source days but added this comment back then:
That's actually quite a topic I have been thinking about, which is referenced in
--
The
---snip---
Currently Host_resolver starts a manually configured # of threads (a quite conservative high number, 500 default). That's fine - no reason to think it's insufficient (although there may be overhead in so many threads, not something we're deeply worried about, but it's out there).
It would be better to automatically start threads as needed. Minimally:
---end-snip---
Revisit this with original reporter (Arun Poruri), in case there are more thoughts nowadays.
In flow::async::*_task_loop, add a way to get number of pending jobs in the thread pool job queue.