> ## Content Index
> Fetch the complete content index at: https://www.stirup.si/llms.txt
> Use this file to discover other available public pages before exploring further.

# Challenges with Default Auto Scaling Metrics for TTS
- URL: https://www.stirup.si/challenges-with-default-auto-scaling-metrics-for-tts-7fc3e077/
- Published: 2026-10-28T14:21:58.000Z
- Updated: 2026-10-28T14:21:58.000Z
- Description: Default auto scaling metrics on Amazon SageMaker AI often fail to account for the unique demands of text-to-speech (TTS) workloads, as they focus on synchronous patterns or large language model serving rather than TTS-specific characteristics like audio synthesis latency.
- Author: Satish Das
- Tags: Cloud, News, Stirup Research

## Challenges with Default Auto Scaling Metrics for TTS

Default auto scaling metrics on Amazon SageMaker AI often fail to account for the unique demands of text-to-speech (TTS) workloads. As noted in guidance from Amazon, most public recommendations focus on synchronous request/response patterns or large language model (LLM) serving, where tokens generated per second serve as a natural scaling metric. However, TTS workflows involve different performance characteristics, such as audio synthesis latency and streaming behavior, which are not captured by these standard metrics.

Using a metric that Amazon SageMaker AI publishes can eliminate a class of failure where custom metric configurations appear correct but no data is actually being sent. This issue is compounded by the complexity of TTS-specific request paths, such as the Kokoro-82M model, which supports two streaming transports: response streaming (InvokeEndpointWithResponseStream) and bidirectional streaming (InvokeEndpointWithBidirectionalStream). These transports require careful handling to ensure proper auto scaling behavior.

## Custom Container Deployment and Auto Scaling Policy

Custom container deployment and auto scaling policy configuration for text-to-speech (TTS) on Amazon SageMaker AI requires precise tuning to ensure performance and cost efficiency. This solution deploys Kokoro-82M in a custom container on an Amazon SageMaker AI real-time endpoint, replacing guessed auto scaling targets with values derived from two live endpoint measurements: Q\_max, the concurrency ceiling one instance serves within the service-level objective (SLO), and T\_total, the time required for a real scale-out event. The deployment process involves three AWS CDK stacks: SpeechFoundationStack, which sets up IAM roles and an S3 bucket for model weights; SpeechModelCacheStack, which syncs Hugging Face weights into the bucket; and SpeechEndpointStack, which builds the container image, pushes it to Amazon ECR, and creates the SageMaker model, endpoint configuration, and endpoint. A gate on the third stack prevents unmeasured scaling configurations from reaching production.

## Measurement-Based Auto Scaling Configuration

Measurement-based auto scaling configuration for text-to-speech (TTS) on Amazon SageMaker AI requires precise tuning to avoid over or under-provisioning. According to from the *ttotal* benchmark, the `qmax` artifact must be used to ensure accurate recovery judgments, as the tool refuses to run against ladders measured on different wire transports. This ensures consistency in performance metrics. In Step 4, the `plan` command is used to derive the deployed policy, and it is the only command that does not interact with AWS, making it a critical step for policy validation. Additionally, `C_scale_min` is set to (1 - 2h) of `Q_max`, ensuring that scale-in triggers only occur when load has significantly decreased, preventing unnecessary instance removals and maintaining stability.

## Sources and reporting notes

- [AWS Machine Learning](https://aws.amazon.com/blogs/machine-learning/stop-guessing-auto-scaling-targets-for-tts-on-amazon-sagemaker-ai/?ref=stirup.si)

Based on published source material. No independent hands-on testing is claimed.