hostingautoscalingpolicy

package
v1.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// The process of creation has started and is in-progress.
	ReconcilingAutoscalingJobStatus = "Reconciling"

	// This Status signifies that the job has been successfully completed for both steps
	CreatedAutoscalingJobStatus = "Created"

	// Could have failed either at step1 or step2
	FailedAutoscalingJobStatus = "Error"

	// This Status will likely not show up, is it needed
	DeletedAutoscalingJobStatus = "Deleted"

	// https://docs.aws.amazon.com/autoscaling/application/APIReference/API_ScalingPolicy.html
	MaxPolicyNameLength = 256

	// Default values for Autoscaling in the SageMaker Service
	ScalableDimension                   = "sagemaker:variant:DesiredInstanceCount"
	PolicyType                          = "TargetTrackingScaling"
	DefaultAutoscalingPolicyName        = "SageMakerEndpointInvocationScalingPolicy"
	DefaultSuspendedStateAttributeValue = false
)

All the status used by the controller during reconciliation. This operator includes two steps. For the rest of the file these are - Step1: RegisterTargets; Step2: PutScalingPolicy

Variables

This section is empty.

Functions

This section is empty.

Types

type Reconciler

type Reconciler struct {
	client.Client
	Log          logr.Logger
	PollInterval time.Duration
	// contains filtered or unexported fields
}

Reconciler reconciles a HAP object

func NewHostingAutoscalingPolicyReconciler

func NewHostingAutoscalingPolicyReconciler(client client.Client, log logr.Logger, pollInterval time.Duration) *Reconciler

NewHostingAutoscalingPolicyReconciler creates a new reconciler with the default ApplicationAutoscaling client.

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

Reconcile attempts to reconcile the SageMaker resource state with the k8s desired state. TODO: Check if resource name above is correct or plural

func (*Reconciler) SetupWithManager

func (r *Reconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager configures the manager to recognise the controller.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL