How do I limit resources for ffmpeg, called from a python-script, running in a docker container?
问题 I deployed a service, that periodically does video encoding on my server; And every time it does, all other services slow down significantly. The encoding is hidden under multiple layers of abstraction. Limiting any of those layers would be fine. (e.g. limiting the docker-container would work just as well as limiting the ffmpeg-sub process.) My Stack: VPS (ubuntu:zesty) docker-compose docker-container (ubuntu:zesty) python ffmpeg (via subprocess.check_call() in python) What I want to limit: