[Solved]Scaling Jibri


I have a docker setup and have successfully integrated jibri in my setup. I can record videos although only one at a time. So, I tried scaling up my jibri containers and ended up having 5 of them running simultaneously, which kills my free tier ec2 server. So, that got me wondering about my use case of having 100s of jibris running together to record calls simultaneously. Is it viable. If so, i found that jibri consumes a lot of resources. It spawns a chrome and ffmpeg together. I don’t know how my 1 GB system handled one of them, but even if i can get an instance with 8 GB ram, what’s the approximate maximum number of jibris i can spawn without killing my system? If jibri seems impractical for my use case, is there any other way i can save my recordings, i was thinking i can stream them to youtube and save there.

This uses the same jibri you have for recording.

I would say for running chrome you need at least 2GB, and running the rest you also need RAM, so I would say 4 as a minimum.

You can always create auto-scaling rules and spin up jibri instances on-demand and scale them down when they are not used, not sure how this is done with containers though … but this is what we do with VM jibri instances in aws.

4 GB per jibri instance seems a lot. I can auto scale with containers as well, but this process seems much costly than i figured it would be. Isn’t there a way where we can use the same chrome and ffmpeg to record multiple sessions? Also, does autoscaling mean that for every call i will have a jibri instance, and with a minimum 4GB required per instance, for 100 calls i will end up having 100 instances :no_mouth:



Ok, thanks for the help @damencho