This is the new CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the AWS CloudFormation User Guide.
AWS::SageMaker::EndpointConfig PrefixAwareRoutingConfig
The configuration for prefix-aware routing on a SageMaker real-time inference endpoint.
Specify PrefixLength and ConcurrencyThreshold to control
routing behavior.
Syntax
To declare this entity in your CloudFormation template, use the following syntax:
JSON
{ "ConcurrencyThreshold" :Integer, "PrefixLength" :Integer}
YAML
ConcurrencyThreshold:IntegerPrefixLength:Integer
Properties
ConcurrencyThreshold-
The maximum number of in-flight requests on the target instance before the endpoint routes to another instance. Required when
RoutingStrategyisPREFIX_AWARE. When in-flight requests on the prefix-selected instance reach this threshold, the endpoint routes the request to an instance with more available capacity.Required: No
Type: Integer
Minimum:
1Maximum:
1024Update requires: Replacement
PrefixLength-
The maximum length of the prefix used for routing decisions. Required when
RoutingStrategyisPREFIX_AWARE.-
For the SageMaker Runtime
InvokeEndpointandInvokeEndpointWithResponseStreamAPIs, this value specifies the number of bytes from the beginning of the request body. -
For OpenAI-compatible API, this value specifies the number of characters from the text content of the messages array.
The endpoint routes requests that share the same prefix to the same instance. Set this value to cover shared content (such as system prompts) plus enough unique content to distribute workloads across instances.
Required: No
Type: Integer
Minimum:
1024Maximum:
65536Update requires: Replacement
-