About Concurrent Connections

The number of concurrent connections typically depends on a number of CPUs and Gunicorn workers.

The formula many use is:

1
number_of_workers = (2 × number_of_CPU_cores) + 1

For a typical small to medium Django site using Gunicorn:

  • 2-4 workers is common for smaller sites.
  • Each worker can handle around 2-12 concurrent connections.
  • So approximately 4-48 concurrent connections total.

For medium to larger sites:

  • 4-12 workers is typical.
  • Which allows for roughly 8-144 concurrent connections.

If you use Whitenoise and serve static files via Gunicorn too, you should take into account that each static file will block the connections for other users.

Dev Ops Architecture Development Gunicorn Whitenoise