Answer the question
In order to leave comments, you need to log in
Docker, FFMPEG in separate container?
Good afternoon! I am designing a video decoding system, the essence is simple - we accept files from users (web container), put them in a queue (distributed database / storage), the container manager monitors the queue and starts lengthy encoding processes using FFMPEG.
Questions:
1. Is it worth running FFMPEG work in a separate container or running it in the context of the queue manager (but if it needs to be updated, you will have to kill all its current FFMPEG processes, which is bad, there can be a lot of them)?
2. If you use an FFMPEG container, how can you update it without stopping current tasks? [you can't just crash running encoding tasks and restart again, because it is tied to an external streaming server]. Ideally, do not touch the currently running FFMPEG containers, update-restart them after the end of their current work.
Sincerely.
Answer the question
In order to leave comments, you need to log in
When a job is received, raise the container, which, having completed its job, will die (flag --rm). Thus, you can finish the job on the old version and process the next one in the updated version of the container.
Queue can be done on rabbitmq or redis
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question