Connection limits on LiveKit Cloud is say set to 1...
# ask-ai
c
Connection limits on LiveKit Cloud is say set to 1000 participants, what should be the
lk load-test
command for audio only for 1 participant and 1 agent?
t
Thanks for reaching out, Tamaghna. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
To run a load test for an audio-only scenario with 1 participant and 1 agent, you can use the following command:
Copy code
lk load-test \
--url <your-server-url> \
--api-key <your-key> \
--api-secret <your-secret> \
--room load-test \
--audio-publishers 1 \
--subscribers 1
Replace the placeholders with your actual server URL, API key, and API secret. This command simulates an audio-only session with one publisher and one subscriber in a room named "load-test." Sources: Benchmarking | LiveKit Docs
c
How do I load test for
100
concurrent connections?
t
To load test for 100 concurrent connections, you can adapt the following command:
Copy code
lk load-test \
--url <your-server-url> \
--api-key <your-key> \
--api-secret <your-secret> \
--room load-test \
--video-publishers 50 \
--subscribers 50
This configuration simulates 100 total connections (50 publishers and 50 subscribers). Adjust the numbers as needed to match your specific testing scenario. Replace the placeholders with your actual server URL, API key, and API secret. Sources: Benchmarking | LiveKit Docs
c
is the agent the subscriber and participant the publisher?
t
The provided sources do not explicitly define whether the agent is the subscriber and the participant is the publisher in LiveKit load tests. However, in general, a publisher is the entity sending media (e.g., audio or video), and a subscriber is the entity receiving it. If you need further clarification on this specific role assignment, please let me know, and I can escalate this query for a more detailed response. Sources: Benchmarking | LiveKit Docs | Core API primitives | LiveKit Docs
c
Copy code
lk load-test \
--url <your-server-url> \
--api-key <your-key> \
--api-secret <your-secret> \
--room load-test \
--audio-publishers 50 \
--subscribers 50
Is this for a single room or 1 room per 1 agent + 1 participant ?
t
The provided command simulates a single room for testing purposes. LiveKit load tests are designed to demonstrate the maximum number of participants supported in a single room. If you need to test multiple rooms, you would need to run separate commands for each room configuration. Sources: Benchmarking | LiveKit Docs
c
I want to test for 1 room which has 1 participant and 1 agent and test for 100 such concurrent rooms
t
The provided sources do not include specific instructions for testing 100 concurrent rooms, each with 1 participant and 1 agent. To achieve this, you may need to run multiple instances of the load test command, each targeting a different room. If you require further assistance with setting up this specific test scenario, please let me know, and I can escalate your query for a more detailed response.