- Notifications
You must be signed in to change notification settings - Fork23
feat: add scheduling configuration for prebuilds#408
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
15cae29
to543a735
Compare2f82387
tod61894d
CompareUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
I really don't think we should call this "autoscaling" as that already has a specific meaning in Cloud circles which this is not. Autoscaling is adjusting instance counts dynamically based on measured load. This is adjusting instance counts based on a schedule. Some possible names:
|
I agree with@spikecurtis; autoscaling does indeed feel muddy in retrospect. |
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
returnxerrors.Errorf("schedules overlap: %s and %s", | ||
schedules[i],schedules[j]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
This error message could be more helpful. We know which aspect of the schedules overlap, so let's help template authors out by telling them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
It means everything (minutes, hours and days) overlap.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
// SchedulesOverlap checks if two schedules overlap by checking | ||
// days, months, and hours separately | ||
funcSchedulesOverlap(schedule1,schedule2string) (bool,error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
This is excellent work@evgeniy-scherbina!
I really like how clean the code is, how complete the code-coverage, and how clear the intentions are.
@spikecurtis I renamed everything to |
Co-authored-by: Danny Kopping <dannykopping@gmail.com>
Co-authored-by: Danny Kopping <dannykopping@gmail.com>
6570400
intomainUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Relates tocoder/internal#312
Needed forcoder/coder#18126
Exposes an
autoscaling
field undercoder_workspace_preset
: