For self-hosted LiveKit with AI voice agents: how ...
# ask-ai
m
For self-hosted LiveKit with AI voice agents: how do I calculate my server's session capacity, and what specs are needed for 30 concurrent sessions?
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.
I'd be happy to help you understand how to calculate server session capacity for self-hosted LiveKit with AI voice agents. Let's walk through some documented load test results and recommendations together: In one test with 30 concurrent agents (each paired with a simulated user participant), the setup included: • 4 CPU cores • 8GB RAM The resource usage observed was: • About 3.8 CPU cores utilized • Approximately 2.8GB memory used From this, it looks like a 4-core, 8GB machine can comfortably handle 30 concurrent AI voice agent sessions for typical workloads, including audio processing and voice activity detection (VAD). To ensure reliability, especially if your workload varies or involves more intensive agent logic, you might want to consider: • Using 4 cores and 8GB RAM as a starting point • Keeping an eye on CPU and memory usage during production • Scaling out horizontally by adding more workers if you need to handle more sessions Just so you know, workers are stateless and connect to the LiveKit server via WebSocket, so they don’t require persistent storage. Around 10GB of ephemeral storage should be enough for Docker images and temporary files. Also, it’s a good idea to have a 10+ minute grace period to keep conversations going smoothly during updates or scaling. Please feel free to reach out if you'd like more details or any help along the way—I’m here for you! Sources: Deploying to custom environments | LiveKit Docs | Deployment and scaling | LiveKit Docs
m
this specs has to be in the self deploy agent or in the self deploy llivekit server?
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!
m
and if I need to save the call how can I do it?