Quite often, when reading about the recommended worker_processes for nginx it is stated that this should be set to the numbers of cores the server hosting nginx has.
We were wondering if we should count the number of HT cores for this as well?
Or do we just count the number of true physical cores?
Thanks!
In case of HT, you better use worker_cpu_affinity
As of today, you can configure both
worker_process
andworker_cpu_affinity
toauto
and it will handle automatically.