Class: Aws::SageMaker::Types::ClusterAutoPatchConfigDetails

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

Overview

The auto-patching configuration details for the instance group, including the patching strategy and schedule.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#current_patch_schedule ⇒ Types::ClusterPatchScheduleDetails

The currently active patch schedule that the system will execute.



6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
# File 'gems/aws-sdk-sagemaker/lib/aws-sdk-sagemaker/types.rb', line 6945

class ClusterAutoPatchConfigDetails < Struct.new(
  :patching_strategy,
  :current_patch_schedule,
  :desired_patch_schedule,
  :deployment_config,
  :idle_wait_window_in_seconds,
  :drain_policy)
  SENSITIVE = []
  include Aws::Structure
end

#deployment_config ⇒ Types::DeploymentConfiguration

The deployment configuration for rolling patch updates.



6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
# File 'gems/aws-sdk-sagemaker/lib/aws-sdk-sagemaker/types.rb', line 6945

class ClusterAutoPatchConfigDetails < Struct.new(
  :patching_strategy,
  :current_patch_schedule,
  :desired_patch_schedule,
  :deployment_config,
  :idle_wait_window_in_seconds,
  :drain_policy)
  SENSITIVE = []
  include Aws::Structure
end

#desired_patch_schedule ⇒ Types::ClusterPatchScheduleDetails

The requested patch schedule. Differs from CurrentPatchSchedule when a reschedule request is pending.



6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
# File 'gems/aws-sdk-sagemaker/lib/aws-sdk-sagemaker/types.rb', line 6945

class ClusterAutoPatchConfigDetails < Struct.new(
  :patching_strategy,
  :current_patch_schedule,
  :desired_patch_schedule,
  :deployment_config,
  :idle_wait_window_in_seconds,
  :drain_policy)
  SENSITIVE = []
  include Aws::Structure
end

#drain_policy ⇒ Types::ClusterDrainPolicy

The policy that controls how pods are evicted from an instance before it is patched. Applies only when PatchingStrategy is DrainFirst.



6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
# File 'gems/aws-sdk-sagemaker/lib/aws-sdk-sagemaker/types.rb', line 6945

class ClusterAutoPatchConfigDetails < Struct.new(
  :patching_strategy,
  :current_patch_schedule,
  :desired_patch_schedule,
  :deployment_config,
  :idle_wait_window_in_seconds,
  :drain_policy)
  SENSITIVE = []
  include Aws::Structure
end

#idle_wait_window_in_seconds ⇒ Integer

The maximum time, in seconds, that automatic patching waits for instances to become idle after a scheduled patch starts. Automatic patching uncordons instances that don't become idle within this window, and they remain on the previous AMI version. The default is 86400 (24 hours).

Returns:

  • (Integer)


6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
# File 'gems/aws-sdk-sagemaker/lib/aws-sdk-sagemaker/types.rb', line 6945

class ClusterAutoPatchConfigDetails < Struct.new(
  :patching_strategy,
  :current_patch_schedule,
  :desired_patch_schedule,
  :deployment_config,
  :idle_wait_window_in_seconds,
  :drain_policy)
  SENSITIVE = []
  include Aws::Structure
end

#patching_strategy ⇒ String

The strategy used for applying patches to instances in the group.

  • WhenIdle: Cordons all instances and patches each instance as it becomes idle (no running jobs). Each instance is uncordoned immediately after patching and becomes available for new jobs. If instances do not become idle, they remain on the previous AMI version. You can then use UpdateClusterSoftware with the desired ImageReleaseVersion to manually update the remaining instances.

  • WhenAllIdle: Cordons all instances and waits for all to become idle before patching. All instances are uncordoned after patching completes. If not all instances become idle, no patching occurs and all instances remain on the previous AMI version.

  • DrainFirst: Designed for workloads that never become idle, such as inference. Cordons instances, evicts the running pods, and then patches each instance in batches. Each instance is uncordoned after patching. Use DrainPolicy to control how long to wait for pods to drain and what happens if the drain times out. Requires MaximumBatchSize in DeploymentConfig. Available only for clusters that use Amazon EKS as the orchestrator.

Returns:

  • (String)


6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
# File 'gems/aws-sdk-sagemaker/lib/aws-sdk-sagemaker/types.rb', line 6945

class ClusterAutoPatchConfigDetails < Struct.new(
  :patching_strategy,
  :current_patch_schedule,
  :desired_patch_schedule,
  :deployment_config,
  :idle_wait_window_in_seconds,
  :drain_policy)
  SENSITIVE = []
  include Aws::Structure
end