I'm using gunicorn for deploying my web service. And the document suggests an example configure file in the following webpage for deploying: http://docs.gunicorn.org/en/latest/configure.html.
And the code is like:
import multiprocessing
bind = "127.0.0.1:8000"
workers = multiprocessing.cpu_count() * 2 + 1
I don't know why we should use this weird count: "num_of_cpu_core * 2 + 1". Why not just using the num of cpu cores?