i want to deploy local livekit that support 30 con...
# ask-ai
m
i want to deploy local livekit that support 30 concurent users/calls, each user/call joins a room with ai agent. what specs do i need for this deployment, and is there stats about the concurent and specs ?
t
Thanks for reaching out, David. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
To help you deploy LiveKit for supporting 30 concurrent users, each in a room with an AI agent, here are some friendly recommendations for the specifications: • Memory and CPU: It’s best to have 4 cores and 8GB RAM per worker. Each worker can manage between 10-25 concurrent jobs depending on the components you use. Specifically for voice AI agents, 4 cores can comfortably handle up to 25 voice agents. • Storage: Since workers are stateless, they don’t require persistent storage. The Docker image is quite minimal, around 1GB, and having about 10GB of ephemeral storage is a good idea for the Docker image and temporary files. • Additional Considerations: Workers communicate through WebSocket and don’t need to be exposed to the public internet. Also, it’s important to allow a grace period of 10+ minutes for voice agents so conversations can finish smoothly. With all this in mind, you’ll likely want at least two workers to comfortably support 30 concurrent users with AI agents. If you have any questions or need more help, please don’t hesitate to reach out—I’m here to assist you! Sources: Deploying to custom environments | LiveKit Docs | Deployment and scaling | LiveKit Docs
m
So two workers means two servers or two agens? This only for the livekit server with or without egress service? Because i want to record the calls
t
Just to help clear things up for you: • Two workers: This means having two server instances or agents running the LiveKit server. They work together to smoothly manage 30 concurrent users with AI agents. Ideally, each worker/server should have 4 cores and 8GB RAM to keep things running nicely. • Egress Service: If you're looking to record calls, you'll want to set up the LiveKit egress service as an extra component. Each egress instance should have at least 4 CPUs and 4GB RAM, since recording (especially room composite recording) can be quite resource-heavy. So, in a nutshell, you'll need at least two servers for the LiveKit server itself, plus some additional resources for the egress service depending on how many recordings you want to handle at the same time. If you have any questions or want me to walk you through anything else, just let me know—I’m here to help! Sources: Self-hosting the Egress Service | LiveKit Docs | Universal Egress | Recording and export | LiveKit Docs | README.md | Egress & Media Processing | livekit/livekit_composite | DeepWiki
m
how many egress service would I need? And if I want to deploy an agent, what will be the specs for this?
t
To help you figure out the number of egress services you'll need, could you share a bit more about your expected recording workload? For instance: • How many calls do you anticipate recording at the same time? • What’s the usual length of each recording? Also, regarding the AI agent deployment, it would be great if you could tell me what kind of AI agent you’re planning to use (like voice-based or text-based) and what tasks you expect it to handle.
m
I will use a voice agent, and 30 calls at the same time, So make a summary of the arquitecture I will need for the Livekit server, egress service and the selfdeploy agents
t
I don't have the answer you're looking for. You could also try asking your question: • in one of the other Slack channels or • to https://deepwiki.com/livekit/livekit_composite which is trained on all LiveKit source code If you find the answer, please post it here to help others!