nginx-vod-module icon indicating copy to clipboard operation
nginx-vod-module copied to clipboard

Problem on cpu usage

Open rezaalimorady opened this issue 2 years ago • 1 comments

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) image

or run two or three other cpu core. I expect it to be shared equally by every cpu core

rezaalimorady avatar Dec 15 '21 11:12 rezaalimorady

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...

erankor avatar Dec 15 '21 13:12 erankor