Clojure services generally use default configuration for ring.adapter.jetty. Adapter provides many configuration options as listed here. We will talk about two important configurations parameters while tuning Jetty: max-threads and accept-queue-size. Following are the default values:
- max-threads 50
- accept-queue-size 2^31 -1 For high throughput server, it is required to tune these parameters and not just rely on the default values.
- In Jetty, each new request is added to a BlockingArrayQueue. Queue size is bound by accept-queue-size.