nginx-vod-module
nginx-vod-module copied to clipboard
Problem on cpu usage
Hi
Why this module use just specefic CPUs.
It does not divide the load between full capacity.
for example in this picture use CPU (1, 3, 4)
or run two or three other cpu core. I expect it to be shared equally by every cpu core
In general, this module doesn't use threads - it runs in the main nginx thread (only exception to that is optionally a thread pool used for non-blocking file open). So, assuming you are running nginx with multiple processes, if you see uneven load between cores, it's most likely due to uneven distribution of requests between the nginx processes.
You can try to use reuseport
on the nginx listen
directive, this is expected to distribute the requests between the processes better, but anyway, it's outside the scope of this module...