6

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!

anonymous-one
  • 958
  • 4
  • 26
  • 43

2 Answers2

1

In case of HT, you better use worker_cpu_affinity

Max Kochubey
  • 1,191
  • 6
  • 8
1

As of today, you can configure both worker_process and worker_cpu_affinity to auto and it will handle automatically.