fancy-painting-20947
10/23/2025, 12:20 PMtall-airline-16756
10/23/2025, 12:20 PMtall-airline-16756
10/23/2025, 12:20 PMm5, 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 AWSfancy-painting-20947
10/23/2025, 12:35 PMtall-airline-16756
10/23/2025, 12:36 PMt3 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