I have one server that runs a Django application served by gunicorn and a Celery task queue.
Gunicorn docs suggest (2 x $num_cores) + 1 as the default number of workers.
Celery docs show that the number of Celery workers defaults to 1 x $num_cores.
And both suggest experimenting to find the proper number.
My question is, what would be a good rule of thumb for running both Gunicorn and Celery on the same machine? On an eight core machine should I start with 17 Gunicorn and 8 Celery workers? Or would it make sense to start with say 9 Gunicorn and 4 Celery workers?
The system is CPU-bound, in case that helps.