future-jelly-30820
10/05/2025, 3:48 PMtall-airline-16756
10/05/2025, 3:48 PMtall-airline-16756
10/05/2025, 3:48 PMLIVEKIT_URL, LIVEKIT_API_KEY, and LIVEKIT_API_SECRET all set up correctly in your self-hosted environment?
• Have you had a chance to look at the logs for both the agent and the LiveKit server? If yes, did you notice any errors or warnings?
• Which versions of the LiveKit server and SDK are you currently using?
• Are there any particular network settings, like firewalls or NAT, that might be impacting connectivity?
• Does this problem happen all the time, or only in certain situations, like when there’s a high load?
With these details, I’ll be better equipped to understand what’s going on and guide you toward the best solution. Looking forward to your response!
Sources: Deploying to custom environments | LiveKit Docs | LiveKit Docs | LiveKit Cloud | LiveKit Docs | Still Have Questions | Operational Guidance & Best Practices | livekit/livekit_composite | DeepWik...future-jelly-30820
10/05/2025, 5:03 PMLIVEKIT_URL, LIVEKIT_API_KEY, and LIVEKIT_API_SECRET all setup correctly in self-hosted environment. Because initially it worked really well.
• I don't see any issues in the logs.
• No firewalls yet
• Sometimes it's working, sometimes it is not working.tall-airline-16756
10/05/2025, 5:04 PMlivekit-cli tool has a load testing feature that simulates room creation and agent dispatch. It provides useful metrics like join delays and success rates, which can help reproduce and better understand the issue.
• Monitor Worker Behavior: Keep an eye on your workers’ WebSocket connections and heartbeats. Sometimes high CPU usage or network hiccups can cause temporary unavailability, leading to missed dispatch requests.
• Check Job Assignment Timeouts: Remember that workers have a 7.5-second timeout to accept jobs, and room connections should be established within 10 seconds. Delays here might cause failures without clear error messages.
• Implement Monitoring: Setting up Prometheus metrics or health check endpoints can be really helpful to track worker load, job counts, and connection status over time. This way, you can spot if high load is affecting dispatch reliability.
To help us narrow things down a bit more:
• Are agents struggling to join specific rooms, or is it happening across all rooms?
• Do you notice if the issue happens during peak load times or particular periods?
• Have you had a chance to test with the load tester to see join success rates and latency?
These steps should give us a clearer picture and guide us toward a solution that improves reliability. Please feel free to reach out if you’d like any help setting these up or have more questions—I’m here to support you!
Sources: pkg/loadtester/agentloadtester.go | livekit-plugins/livekit-plugins-bithuman/livekit/plugins/bithuman/avatar.py | Operational Guidance & Best Practices | livekit/livekit_composite | DeepWik... | Community & Support | livekit/livekit_composite | DeepWiki | client/web/.github/ISSUE_TEMPLATE/bug_report.yamlfuture-jelly-30820
10/05/2025, 5:14 PMtall-airline-16756
10/05/2025, 5:14 PMagent_name to keep things running smoothly even if one job encounters a problem.
Since you mentioned this doesn’t happen with LiveKit Cloud, it’s likely something specific to your self-hosted setup or custom agent implementation. If you’d like, I’m more than happy to guide you through the process of cleaning up resources or debugging your agent code further. Just let me know!
Sources: README.md | agents/CHANGELOG.md | Operational Guidance & Best Practices | livekit/livekit_composite | DeepWik... | Deploying to custom environments | LiveKit Docs | Community & Support | livekit/livekit_composite | DeepWiki