LiveKit Server has a built-in job dispatch system designed to smoothly balance the load between agents in a self-hosted setup. It uses a weighted load-based selection algorithm, which means jobs are assigned to workers based on how busy they are. Workers with lighter loads are more likely to get new jobs, while those who are fully occupied or unavailable won’t be assigned any.
If you’re seeing that the load isn’t spreading out evenly, it might be due to things like worker availability, capacity, or connectivity hiccups. The great news is you don’t need to manually configure the balancing, but it’s a good idea to check that all your workers are properly registered and connected to the server. Also, if you’re looking to improve load distribution, scaling your agent pool with tools like Kubernetes can make a big difference.
If you’d like, I’m here to help you troubleshoot this further—just let me know!
Sources:
Deploying to custom environments | LiveKit docs |
config-sample.yaml |
OpenAI and LiveKit partner to turn Advanced Voice into an API |
Deploying to custom environments | LiveKit Docs