I have a VPS. If you simultaneously trigger processing of several video files, then ffmpeg eventually eats up all the resources and scripts (PHP, MySQL) are very slow! It happens and "exceeded the waiting limit" at some point.
I understand that you can take a more powerful server and the problems will go away. The question is whether it is possible to limit CPU consumption from ffmpeg no more than 50% with a single core on a VPS. Roughly speaking, indicate to the application (ffmpeg or another) the maximum allowable limits?
Or if there are 2 cores (2 core) VPS configured so that ffmpeg works only on one core, and nginx + php-fpm + mysql on the second?
I’ll clarify, I don’t mind that the videos were processed 2-3 times longer through ffmpeg, so long as the site worked steadily.
Thank.