We need to be able to configure the length of Jetty's task queue so that we can drop work that our app can't handle[1].
We've had to work this code into our application for the moment. It "works", but it would be much nicer to get this option into ring-jetty-adapter. It would mean exposing in the ring-jetty-adapter API at least the thread idleTimeout (or defaulting) and queue from the QueuedThreadPool[2].
I can offer a pull-request if this is something you'd consider.
[1] https://wiki.eclipse.org/Jetty/Howto/High_Load#Thread_Pool
[2] http://download.eclipse.org/jetty/9.3.12.v20160915/apidocs/org/eclipse/jetty/util/thread/QueuedThreadPool.html
We need to be able to configure the length of Jetty's task queue so that we can drop work that our app can't handle[1].
We've had to work this code into our application for the moment. It "works", but it would be much nicer to get this option into ring-jetty-adapter. It would mean exposing in the ring-jetty-adapter API at least the thread
idleTimeout(or defaulting) andqueuefrom the QueuedThreadPool[2].I can offer a pull-request if this is something you'd consider.
[1] https://wiki.eclipse.org/Jetty/Howto/High_Load#Thread_Pool
[2] http://download.eclipse.org/jetty/9.3.12.v20160915/apidocs/org/eclipse/jetty/util/thread/QueuedThreadPool.html