Interface PrefixAwareRoutingConfig.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<PrefixAwareRoutingConfig.Builder,,PrefixAwareRoutingConfig> SdkBuilder<PrefixAwareRoutingConfig.Builder,,PrefixAwareRoutingConfig> SdkPojo
- Enclosing class:
PrefixAwareRoutingConfig
-
Method Summary
Modifier and TypeMethodDescriptionconcurrencyThreshold(Integer concurrencyThreshold) The maximum number of in-flight requests on the target instance before the endpoint routes to another instance.prefixLength(Integer prefixLength) The maximum length of the prefix used for routing decisions.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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.
- Parameters:
prefixLength- The maximum length of the prefix used for routing decisions. Required whenRoutingStrategyisPREFIX_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.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
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.- Parameters:
concurrencyThreshold- The maximum number of in-flight requests on the target instance before the endpoint routes to another instance. Required whenRoutingStrategyisPREFIX_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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-