bulky-machine-37433
10/27/2025, 9:52 PMtall-airline-16756
10/27/2025, 9:53 PMtall-airline-16756
10/27/2025, 9:53 PMagent_name really helps prevent issues like intermittent connection failures. This way, your system stays robust and smooth!
As for how agent dispatch processes work, they’re thoughtfully managed by the LiveKit server. The server balances jobs across the available agent workers using a worker pool model. Each agent worker runs as its own pod, and when a job comes in, the server assigns it to an available worker. Then, each job runs in its own sub-process within the agent pod, which keeps everything nicely isolated and running concurrently without a hitch.
Sources: Troubleshooting & Common Issues | livekit/livekit_composite | DeepWiki | Deploying to custom environments | LiveKit Docsbulky-machine-37433
10/27/2025, 9:55 PMtall-airline-16756
10/27/2025, 9:55 PM7880 (this is the default for RTC and RoomService communication). You might also want to open port 7881 for WebRTC ICE over TCP fallback. Don’t forget to open the UDP port range specified in your configuration (usually 50000–60000) to support WebRTC media traffic.
• Authentication: Use access tokens that include a VideoGrant with the Agent permission to enable secure agent-to-server communication.
• WebSocket Signaling: It's important to allow WebSocket connections from agent pods to server pods, as this is how they primarily communicate.
• Network Segmentation: Consider using Access Control Lists (ACLs) to keep traffic restricted to authorized services only, enhancing your security.
• Kubernetes-Specific: If you’re working with Kubernetes, double-check your host networking setup and use the Helm chart for deployment—it helps manage TLS termination and routing smoothly.
For the exact port numbers and other settings, please take a look at your config.yaml file and Helm chart values, since defaults can vary depending on your production environment. If you’d like, I’m here to help you with any specific configurations or answer any questions you have!
Sources: Deploy to Kubernetes | LiveKit Docs | LiveKit | config-sample.yaml