Dynamic spare thread creation and destruction
In regards of ticket
#497, I was wondering if we should not start considering a way to create new threads when the HTTP server becomes overloaded.
Simply something such as:
- as soon as you reach the limit defined by the deployer server.thread_pool, create half the size of that pool in new threads.
- as soon as the number of used threads is below half of the size of the pool, stop half the size of that pool number of threads
That would allow the server to react a bit more dynamically.
Reported by lawouach