stale-psychiatrist-58431
08/06/2025, 6:26 AMtall-airline-16756
08/06/2025, 6:27 AMtall-airline-16756
08/06/2025, 6:27 AMwss://
instead of ws://
).
• Authentication: Confirm that the authentication token is valid and not expired.
• SSL Configuration: Ensure the SSL certificate for your domain is valid and not self-signed. If using a load balancer, verify it is configured to handle WebSocket traffic and SSL termination.
• TURN Configuration: If network issues persist, consider enabling TURN with TLS to bypass restrictive network policies.
Let me know if you need further assistance with any of these steps or additional details about your setup.stale-psychiatrist-58431
08/06/2025, 6:29 AMtall-airline-16756
08/06/2025, 6:29 AMlk load-test
command to simulate users. For example:
lk load-test \
--room test-room \
--video-publishers 150 \
--subscribers 150 \
--video-resolution high \
--num-per-second 5
• Keep an Eye on Metrics: Take a look at the summary report for things like bitrate, latency, and packet loss—these can help spot where things might be slowing down.
• Check Your System Resources: Make sure you have enough CPU, memory, and network bandwidth. Also, don’t forget to set ulimit -n 65535
to increase file descriptor limits.
• Audio Troubleshooting: If you see errors like "failed to capture frame," try increasing queue_size_ms
to 2000ms in your audio source settings. For "silence detected," double-check your microphone or consider temporarily turning off noise suppression.
• Video Performance Tips: Watch your CPU and memory usage closely, especially with high-res video. You might need to tweak the number of publishers and subscribers to keep things running smoothly.
If you hit any snags or want help with specific errors or settings during your load test, just let me know—I’m here to help!stale-psychiatrist-58431
08/06/2025, 6:57 AMtall-airline-16756
08/06/2025, 6:58 AMstale-psychiatrist-58431
08/06/2025, 7:08 AMtall-airline-16756
08/06/2025, 7:08 AM--duration
parameter you set when you run it. You can choose seconds (like 30s
), minutes (like 5m
), or even hours (like 1h
).
Here’s a quick example:
lk load-test \
--room test-room \
--video-publishers 150 \
--subscribers 150 \
--duration 10m
This will run the load test for 10 minutes. And just so you know, if you don’t set a duration, the test keeps going until you stop it yourself.stale-psychiatrist-58431
08/06/2025, 7:40 AMtall-airline-16756
08/06/2025, 7:41 AM*.turn.livekit.cloud
on TCP/443 if that’s relevant for you.
• Session Management: If you’re seeing “transaction closed,” it might mean the session expired. Make sure your client handles session expiration gracefully and reconnects when needed.
• Logs and Debugging: Peek at both server and client logs for any errors related to token refresh or permission updates. These clues can help figure out if the issue is on the client side, server side, or somewhere in the network.
• Client-Side Handling: Ensure your client properly unpublishes and republishes tracks after refreshing tokens or changing permissions.
If you want, feel free to share more about your setup—I’m here to help you get this sorted out!
Sources: Authentication | LiveKit Docs | Authentication | LiveKit Docs | Firewall Tips | Community & Support | livekit/livekit_composite | DeepWiki | livekit/src/room/mod.rsstale-psychiatrist-58431
08/06/2025, 7:46 AMtall-airline-16756
08/06/2025, 7:46 AMstale-psychiatrist-58431
08/06/2025, 9:15 AMtall-airline-16756
08/06/2025, 9:15 AM