I want to deploy my agent script on an aws instanc...
# ask-ai
f
I want to deploy my agent script on an aws instance. Which instance type would be the best to do it
t
Thanks for reaching out, Alexander. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
When you're ready to deploy your agent script on an AWS instance, I’d recommend going with non-burstable instance families like
m5
,
c5
, or
c6i
. These types are great because they offer consistent CPU performance, which is really important for tasks like ONNX model inference that LiveKit agents use. It’s best to avoid burstable instances such as
t3
or
t4g
, since they might lead to latency or timeout issues if CPU credits run out—even if the CPU usage looks low. For production workloads, choosing dedicated compute instances like
c5.large
or
m5.large
can help you get steady, reliable performance without worrying about throttling. I hope this helps you get set up smoothly! Sources: Troubleshooting Latency and Timeout Errors with Turn Detection on AWS
f
What does burstable instance? What possible issues can happen if i deploy on a t3 medium?
t
I’d love to help you understand burstable instances in AWS a bit better! Instances like the
t3
family are designed to give you a steady baseline CPU performance, with the flexibility to burst above that when your workload demands it. They do this by accumulating CPU credits during quieter times and using them when things get busy. But, if those CPU credits run out, the instance slows down to its baseline, which might be as low as 10–20% of a core. If you’re using a
t3.medium
instance, you might notice some challenges such as: • Latency or timeout errors like
TimeoutError
in
_bounce_eou_task
. • End-of-utterance (EOU) detection taking longer than usual, even though it typically happens in 50–160ms. • Inference operations stretching beyond 3 seconds, causing delays. These issues usually happen because the CPU credits have been used up, leading to throttling. It’s a bit tricky because CloudWatch might show low CPU usage, but that’s actually because the instance is being throttled, not because it has spare capacity. To help prevent these hiccups, I’d recommend using compute-optimized, non-burstable instances like
c5
,
m5
, or
c6i
. If you do decide to stick with burstable instances, keep an eye on the
CPUCreditBalance
metric in CloudWatch. Also, enabling the
t3.unlimited
option can help, though just a heads-up—it might increase your costs a bit. Sources: Troubleshooting Latency and Timeout Errors with Turn Detection on AWS | LiveKit turn detector plugin | LiveKit Docs