Struct aws_sdk_sagemaker::types::RollingUpdatePolicy
source · #[non_exhaustive]pub struct RollingUpdatePolicy {
pub maximum_batch_size: Option<CapacitySize>,
pub wait_interval_in_seconds: Option<i32>,
pub maximum_execution_timeout_in_seconds: Option<i32>,
pub rollback_maximum_batch_size: Option<CapacitySize>,
}
Expand description
Specifies a rolling deployment strategy for updating a SageMaker endpoint.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.maximum_batch_size: Option<CapacitySize>
Batch size for each rolling step to provision capacity and turn on traffic on the new endpoint fleet, and terminate capacity on the old endpoint fleet. Value must be between 5% to 50% of the variant's total instance count.
wait_interval_in_seconds: Option<i32>
The length of the baking period, during which SageMaker monitors alarms for each batch on the new fleet.
maximum_execution_timeout_in_seconds: Option<i32>
The time limit for the total deployment. Exceeding this limit causes a timeout.
rollback_maximum_batch_size: Option<CapacitySize>
Batch size for rollback to the old endpoint fleet. Each rolling step to provision capacity and turn on traffic on the old endpoint fleet, and terminate capacity on the new endpoint fleet. If this field is absent, the default value will be set to 100% of total capacity which means to bring up the whole capacity of the old fleet at once during rollback.
Implementations§
source§impl RollingUpdatePolicy
impl RollingUpdatePolicy
sourcepub fn maximum_batch_size(&self) -> Option<&CapacitySize>
pub fn maximum_batch_size(&self) -> Option<&CapacitySize>
Batch size for each rolling step to provision capacity and turn on traffic on the new endpoint fleet, and terminate capacity on the old endpoint fleet. Value must be between 5% to 50% of the variant's total instance count.
sourcepub fn wait_interval_in_seconds(&self) -> Option<i32>
pub fn wait_interval_in_seconds(&self) -> Option<i32>
The length of the baking period, during which SageMaker monitors alarms for each batch on the new fleet.
sourcepub fn maximum_execution_timeout_in_seconds(&self) -> Option<i32>
pub fn maximum_execution_timeout_in_seconds(&self) -> Option<i32>
The time limit for the total deployment. Exceeding this limit causes a timeout.
sourcepub fn rollback_maximum_batch_size(&self) -> Option<&CapacitySize>
pub fn rollback_maximum_batch_size(&self) -> Option<&CapacitySize>
Batch size for rollback to the old endpoint fleet. Each rolling step to provision capacity and turn on traffic on the old endpoint fleet, and terminate capacity on the new endpoint fleet. If this field is absent, the default value will be set to 100% of total capacity which means to bring up the whole capacity of the old fleet at once during rollback.
source§impl RollingUpdatePolicy
impl RollingUpdatePolicy
sourcepub fn builder() -> RollingUpdatePolicyBuilder
pub fn builder() -> RollingUpdatePolicyBuilder
Creates a new builder-style object to manufacture RollingUpdatePolicy
.
Trait Implementations§
source§impl Clone for RollingUpdatePolicy
impl Clone for RollingUpdatePolicy
source§fn clone(&self) -> RollingUpdatePolicy
fn clone(&self) -> RollingUpdatePolicy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RollingUpdatePolicy
impl Debug for RollingUpdatePolicy
source§impl PartialEq for RollingUpdatePolicy
impl PartialEq for RollingUpdatePolicy
source§fn eq(&self, other: &RollingUpdatePolicy) -> bool
fn eq(&self, other: &RollingUpdatePolicy) -> bool
self
and other
values to be equal, and is used
by ==
.