I think these factors affect the maximum number of TCP connections that could be established simultaneously.
worker_connections
, worker_cpu_affinity
, worker_processes
...Could you tell me if the CPU core count is also an important factor?
The more cores you have, the more network interrupts you can handle at the same time.
nginx network tcp
As for TCP/IP processing itself, if the OS or TCP/IP stack considers multiprocessors, the number of cores can be an important factor, and if you do not consider multiprocessors, no matter how many cores you have.
Even if only one core is used to process TCP/IP itself, many cores can result in more connections because servers can receive requests, generate responses, and respond in parallel.On the other hand, if the application side is weak, no matter how much the lower layer is, it will not perform at all.
In other words, there is no point in just looking at a single element, and you need to consider the whole thing.
© 2024 OneMinuteCode. All rights reserved.