Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add atlasScheduledAutoscaling (SRE-720) #18

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

r0zbot
Copy link
Member

@r0zbot r0zbot commented Nov 1, 2024

No description provided.

@r0zbot r0zbot marked this pull request as draft November 1, 2024 05:41
LowTier string `json:"lowTier,omitempty"`

// The maximum tier the cluster can scale up to.
// +kubebuilder:validation:Enum=M0;M2;M5;M10;M20;M30;M40;M50;M60;M80;M140;M200;M300;M400;M500;M700;M900;M1000
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should shared tiers be listed as valid scale downs or scale ups? likely we don't want to scale down so much or up, we could avoid mistakes like typos by not having them in validation.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, doesn't make sense to have anything below M10 there, and I'll cap it at M200. That way we don't acidentally typo in an M400 and go bankrupt in a month.


// Cron expression for the time the cluster should be scaled down.
// +kubebuilder:default="0 20 * * 1-5"
ScaleDownExpression string `json:"scaleDownExpression,omitempty"`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
ScaleDownExpression string `json:"scaleDownExpression,omitempty"`
ScaleDownCronExpression string `json:"scaleDownCronExpression,omitempty"`


// Cron expression for the time the cluster should be scaled up.
// +kubebuilder:default="0 6 * * 1-5"
ScaleUpExpression string `json:"scaleUpExpression,omitempty"`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
ScaleUpExpression string `json:"scaleUpExpression,omitempty"`
ScaleUpCronExpression string `json:"scaleUpCronExpression,omitempty"`

being more verbose as expression can mean plain texts too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants