I have to handle 1000 calls per day with 20 concur...
# ask-ai
s
I have to handle 1000 calls per day with 20 concurrent users on phone. What is the best way to use self hosting for this use case
t
Thanks for reaching out, Mohan. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
If you're looking to self-host LiveKit for managing around 1000 calls a day with 20 users at the same time, here are some friendly tips to get you started: • Infrastructure: It’s best to go with compute-optimized instances that have 10Gbps or faster ethernet. And if you’re using Docker, turning on host networking can really help boost performance. • System Configuration: Here are some handy settings to tweak your file descriptors and system limits:
Copy code
ulimit -n 65535
sysctl -w fs.file-max=2097152
sysctl -w net.core.somaxconn=65535
sysctl -w net.core.rmem_max=25165824
sysctl -w net.core.wmem_max=25165824
• Scaling: Redis is your friend here! It helps with a distributed setup so you can handle those concurrent sessions smoothly. • Load Testing: Try out LiveKit’s load tester to mimic real-world traffic and see how everything holds up. • Room Configuration: Don’t forget to tweak participant limits, codecs, and timeouts to fit what you need. If you want, I’m here to help with any specific setup details or deployment steps—just let me know! Sources: Going beyond a single-core | Deploying LiveKit | LiveKit Docs | README.md | config-sample.yaml | And…we’re Live(Kit)!
s
Give me details of livekit’s load tester
t
Hey there! LiveKit's load tester is a fantastic tool that helps you simulate real-world traffic and see how your server performs. Here’s a quick rundown: • Capabilities: It can simulate video and audio publishing, adaptive streaming, and different layouts like speaker view, grid 3x3, 4x4, or even 5x5. • Configuration Options: You can tweak test settings such as the number of publishers and subscribers, video resolution, codecs, and how long the test runs. • Usage Examples:
Copy code
# Basic Video Load Test
lk load-test --room test-room --video-publishers 8

# Large Scale Subscriber Test
lk load-test --duration 1m --video-publishers 5 --subscribers 500
• Advanced Features: It also offers agent load testing and gives you detailed stats to understand the results better. • System Requirements: Just make sure your system settings like file descriptors and network limits are set right. For bigger tests, running on a cloud VM might be the way to go. If you want, I’m here to help you set up or run any specific load tests. Just let me know! Sources: autocomplete/fish_autocomplete | Benchmarking | LiveKit Docs
s
I want to test 20 concurrent telephony agents with conversations for 3 mins. How to configure load test it?
t
Hey there! If you want to test 20 telephony agents having 3-minute conversations at the same time, here’s a simple way to set up your load tester:
Copy code
lk load-test \
  --room test-room \
  --audio-publishers 20 \
  --subscribers 20 \
  --duration 3m
What this will do is: • Simulate 20 participants sending audio (like your telephony agents). • Simulate 20 participants listening in (the other side of the call). • Run everything for 3 minutes. If you want to tweak anything or need a hand with the setup, just let me know—I’m here to help!