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