Custom Thread Pool
Django Cheroot exposes Cheroot’s thread-pool controls directly, so you can size the server for your workload without touching Python.
Bind publicly on a custom port
Section titled “Bind publicly on a custom port”To make the server reachable from outside the local machine (for example inside a container), bind to all interfaces:
python manage.py cheroot --hostip 0.0.0.0 --port 8080Tune the worker pool
Section titled “Tune the worker pool”For a busier app, grow the pool and the connection backlog:
python manage.py cheroot \ --hostip 0.0.0.0 \ --port 8080 \ --minthreads 50 \ --maxthreads 100 \ --connections 50What each flag does:
--minthreads 50keeps 50 worker threads warm so traffic spikes don’t pay thread-startup cost.--maxthreads 100lets the pool grow to 100 threads under sustained concurrency.--connections 50widens the accept backlog so bursts of new connections queue instead of being refused.
A lean, low-memory profile
Section titled “A lean, low-memory profile”For a mostly-idle internal service, keep the pool small:
python manage.py cheroot -t 4 -w 16 -c 10Next steps
Section titled “Next steps”- Production behind a proxy — front Cheroot with nginx for TLS and static files.
- Configuration — the full option reference.