Deployment local k8s , do i need to make pod for e...
# ask-ai
s
Deployment local k8s , do i need to make pod for each room to record the room, or one egress pod can record multiple rooms concurrently ?
t
Thanks for reaching out, Mostafa. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I understand that managing multiple recordings can feel a bit tricky, so let me help clarify this for you. Each egress pod is designed to handle one room at a time for room composite egress operations. This means that if you want to record several rooms at once, you’ll need a separate pod (or instance) for each room. To make things easier when handling multiple recordings simultaneously, you can enable autoscaling or set the
replicaCount
to match the number of rooms you wish to record at the same time when deploying via Helm. This way, multiple egress workers will automatically balance the load and distribute recording tasks across the available instances, making the process smoother for you. Just a quick note: this limitation is specific to room composite egress. Other types of egress jobs, like TrackEgress, use very little resources and can comfortably run hundreds of simultaneous jobs on a single instance. Sources: Self-hosting the Egress Service | LiveKit Docs
s
Clarify the last part this limitation is specifically to room compoist egress
t
I totally understand how this can be a bit confusing! The limitation of one egress pod per room specifically applies to room composite egress. This means when you're recording the entire room’s audio and video as one combined output, it needs a dedicated pod for each room because it’s quite resource-intensive. On the other hand, other types of egress jobs like TrackEgress are a bit easier on resources. TrackEgress lets you record individual tracks—like just one participant’s audio or video—and it can manage hundreds of these jobs at the same time on a single instance, without needing a separate pod for each track. I hope this helps clarify things! If you have any more questions, I’m here to help.
s
So if Iam recording the human video only or audio only and no recording for the ai agent that can be very light
t
Absolutely! If you're looking to record just the human participant's video or audio and not the AI agent, TrackEgress is a great choice. It’s much lighter on resources compared to room composite egress, making it a smart and efficient option. With TrackEgress, you can record individual tracks—like a single participant’s audio or video—and it can handle hundreds of these jobs on one instance without needing a separate pod for each track. This method should work really well for your needs and help keep things running smoothly.
s
What about if i make a trackegress for each track and then i compose
t
I'm glad you're exploring different ways to manage your recordings! If you create a TrackEgress for each track (like human video, human audio, AI agent audio) and then compose them later, this can be a really smart and resource-efficient approach compared to using room composite egress. Recording individual tracks separately helps you avoid the heavy lifting of composing them in real-time during the recording, which can save a lot of resources. Once you’ve finished recording, you can easily use external tools or services to combine those individual tracks into one seamless composite output if you need to. This way, you get more flexibility and reduce the load on your egress pods while recording. I hope this helps clarify things, and please feel free to reach out if you have any more questions!