why does the live it agent once uploaded to cloud ...
# ask-ai
d
why does the live it agent once uploaded to cloud take long to answer sometimes
t
Thanks for reaching out, Billy. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I understand it can be a bit frustrating when the LiveKit agent takes longer to respond after being uploaded to the cloud. This usually happens because of what's called a cold start—when the system scales down inactive agents to zero replicas to save resources. So, when a new request comes in, the agent has to start up from scratch, which can cause some delay. To help reduce these delays, here are a few things you might consider: • Upgrading to a paid plan that supports always-on agents, so they’re ready to respond instantly whenever you need them. • Optimizing your Docker build process by pre-downloading dependencies and using multi-stage builds to speed things up. • Using recommended hosting platforms like ECS with EC2 or EKS if you’re self-hosting, as they offer better resource allocation and more flexible startup options. • Keeping an eye on and debugging initialization times using LiveKit CLI commands like
lk agent logs
. Please feel free to reach out if you’d like any help walking through these steps—I’m here to support you! Sources: Deploying to production | LiveKit Docs | Deploy and scale agents on LiveKit Cloud | Operational Guidance | livekit/livekit_composite | DeepWiki | LiveKit Pricing | cmd/lk/agent.go
d
Pricing plans do not mention always-on agents...
t
I’m glad you asked about always-on agents! They’re a great feature included in LiveKit’s paid plans (Ship, Scale, and Enterprise). These plans keep your agents warm and ready to jump in right away, so you won’t experience any cold start delays. On the other hand, the Build (Free) plan doesn’t have this feature, which might cause some delays if agents scale down during inactivity. If you’d like, I’m here to help you explore upgrading options or find ways to make the most of your current setup. Just let me know! Sources: Quotas and limits | LiveKit Docs | Deploy and scale agents on LiveKit Cloud | LiveKit Pricing
d
Where does it actually say that
t
I’m happy to help clarify the details about always-on agents, also known as "cold start prevention." Here’s what you’ll find: • On the LiveKit Pricing page, you’ll see that "Cold start prevention – Keep agents always-on for instant responses" is included in the paid plans (Ship, Scale, and Enterprise), but it’s not part of the Build (Free) plan. • The blog post Deploy and scale agents on LiveKit Cloud mentions that with paid plans, agents stay warm and ready to handle incoming connections right away. • The Quotas and Limits documentation explains that agents on the Build plan might shut down after sessions, which can cause cold starts—something the paid plans help you avoid. If you have any questions or want me to walk you through any part of this, just let me know! I’m here to help. Sources: LiveKit Pricing | Deploy and scale agents on LiveKit Cloud | Quotas and limits | LiveKit Docs