Class: Aws::SageMaker::Types::TrafficRoutingConfig

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-sagemaker/lib/aws-sdk-sagemaker/types.rb

Overview

Note:

When making an API call, you may pass TrafficRoutingConfig data as a hash:

{
  type: "ALL_AT_ONCE", # required, accepts ALL_AT_ONCE, CANARY, LINEAR
  wait_interval_in_seconds: 1, # required
  canary_size: {
    type: "INSTANCE_COUNT", # required, accepts INSTANCE_COUNT, CAPACITY_PERCENT
    value: 1, # required
  },
  linear_step_size: {
    type: "INSTANCE_COUNT", # required, accepts INSTANCE_COUNT, CAPACITY_PERCENT
    value: 1, # required
  },
}

Defines the traffic routing strategy during an endpoint deployment to shift traffic from the old fleet to the new fleet.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#canary_sizeTypes::CapacitySize

Batch size for the first step to turn on traffic on the new endpoint fleet. Value must be less than or equal to 50% of the variant's total instance count.

Returns:



37792
37793
37794
37795
37796
37797
37798
37799
# File 'gems/aws-sdk-sagemaker/lib/aws-sdk-sagemaker/types.rb', line 37792

class TrafficRoutingConfig < Struct.new(
  :type,
  :wait_interval_in_seconds,
  :canary_size,
  :linear_step_size)
  SENSITIVE = []
  include Aws::Structure
end

#linear_step_sizeTypes::CapacitySize

Batch size for each step to turn on traffic on the new endpoint fleet. Value must be 10-50% of the variant's total instance count.

Returns:



37792
37793
37794
37795
37796
37797
37798
37799
# File 'gems/aws-sdk-sagemaker/lib/aws-sdk-sagemaker/types.rb', line 37792

class TrafficRoutingConfig < Struct.new(
  :type,
  :wait_interval_in_seconds,
  :canary_size,
  :linear_step_size)
  SENSITIVE = []
  include Aws::Structure
end

#typeString

Traffic routing strategy type.

  • ALL_AT_ONCE: Endpoint traffic shifts to the new fleet in a single step.

  • CANARY: Endpoint traffic shifts to the new fleet in two steps. The first step is the canary, which is a small portion of the traffic. The second step is the remainder of the traffic.

  • LINEAR: Endpoint traffic shifts to the new fleet in n steps of a configurable size.

Returns:

  • (String)


37792
37793
37794
37795
37796
37797
37798
37799
# File 'gems/aws-sdk-sagemaker/lib/aws-sdk-sagemaker/types.rb', line 37792

class TrafficRoutingConfig < Struct.new(
  :type,
  :wait_interval_in_seconds,
  :canary_size,
  :linear_step_size)
  SENSITIVE = []
  include Aws::Structure
end

#wait_interval_in_secondsInteger

The waiting time (in seconds) between incremental steps to turn on traffic on the new endpoint fleet.

Returns:

  • (Integer)


37792
37793
37794
37795
37796
37797
37798
37799
# File 'gems/aws-sdk-sagemaker/lib/aws-sdk-sagemaker/types.rb', line 37792

class TrafficRoutingConfig < Struct.new(
  :type,
  :wait_interval_in_seconds,
  :canary_size,
  :linear_step_size)
  SENSITIVE = []
  include Aws::Structure
end