red-oil-58145
12/12/2025, 9:00 PMtall-airline-16756
12/12/2025, 9:00 PMtall-airline-16756
12/12/2025, 9:00 PMred-oil-58145
12/12/2025, 9:02 PMtall-airline-16756
12/12/2025, 9:02 PMagent_name. You run one agent type and deploy it as multiple worker instances.
• LiveKit load-balances jobs (each call = a job) across workers with the same agent_name.
• A single worker can handle multiple concurrent calls if it has enough CPU/memory and your agent pipeline is efficient.
Practical options to support 10 concurrent calls:
• Run one well-provisioned worker sized to handle ~10 concurrent jobs.
• Run several smaller worker instances (e.g., 2–3) and let LiveKit distribute the 10 jobs across them.
• Implement autoscaling based on job queue depth or resource usage, and use per-provider rate limiting/retries for any BYO model limits.
If you tell me your agent's expected CPU/memory per call and whether your models are CPU- or network-bound, I can recommend an initial worker size and a scaling strategy.
Sources: Agents Framework | livekit/livekit_composite | DeepWiki | examples/voice_agents | livekit/livekit_composite | DeepWiki | Deploying to custom environments | LiveKit docs | examples/bank-ivr | livekit/livekit_composite | DeepWiki | Agent server | LiveKit docsred-oil-58145
12/12/2025, 9:03 PMtall-airline-16756
12/12/2025, 9:04 PMred-oil-58145
12/12/2025, 9:05 PMtall-airline-16756
12/12/2025, 9:06 PMagent_name).
b. Each process becomes a worker and LiveKit will distribute jobs across them.
• Use containers + your cloud (recommended)
a. Package the agent as a Docker image.
b. Deploy multiple replicas (e.g., Docker Compose, ECS, Render).
• Use Kubernetes for production autoscaling
a. Create a Deployment for your agent image.
b. Set replica count or HorizontalPodAutoscaler based on CPU, memory, or custom metrics.
• Use LiveKit Cloud for managed scaling (simplest)
a. Deploy via the LiveKit CLI/dashboard and set min/max instances.
b. LiveKit will scale workers up/down automatically with load.
Quick tips:
• Keep the same agent_name for all workers so they’re grouped.
• Start with 2–3 workers for redundancy, then increase as load grows.
• Autoscale on CPU, memory, or job queue depth; add retries/backoff for provider limits.
• Tell me where you want to run them (local, AWS/GCP, Kubernetes, or LiveKit Cloud) and I’ll give exact commands or a sample manifest. Sources: Agents Framework | livekit/livekit_composite | DeepWiki | Deploying to custom environments | LiveKit docs | Deploy and scale agents on LiveKit Cloudred-oil-58145
12/12/2025, 9:08 PMtall-airline-16756
12/12/2025, 9:08 PMagent_name used by your agent code (same across all instances)
Steps to deploy and scale
1. Build your Docker image
• Package your agent into a Docker image (ensure it reads the API key and agent_name from env).
1. Log in / configure CLI
• Use the LiveKit CLI and set your project and API key (CLI will prompt or accept env vars).
1. Deploy with desired replicas (example)
• Deploy your agent image and set replica count (workers).
• Example CLI pattern:
◦ lk agent deploy --image your-agent-image --agent-name your_agent_name --replicas 3
◦ This creates 3 worker instances; LiveKit will load‑balance jobs across them.
1. Configure autoscaling (min/max)
• Set min/max so LiveKit Cloud can scale:
◦ lk agent deploy --image your-agent-image --agent-name your_agent_name --min 2 --max 10
• LiveKit Cloud will scale workers between min and max based on load.
1. Environment & secrets
• Pass provider API keys and config as environment variables or secrets when deploying (e.g., --env ANTHROPIC_API_KEY=xxx).
1. Monitor and adjust
• Monitor CPU, memory, and active job counts in the LiveKit Cloud dashboard.
• If workers are CPU/network bound, increase replica count or per-worker resources.
Quick recommendations
• Start with min=2 for redundancy.
• Tune per-worker CPU/memory so each worker can handle multiple concurrent calls.
• Use per-provider rate limiting inside your agent to avoid hitting external model limits.
Would you like a concrete CLI command or a Kubernetes/manifest example or a sample Dockerfile for your agent language?