- Notifications
You must be signed in to change notification settings - Fork907
feat: implement autoscaling mechanism for prebuilds#18126
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
base:main
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
30a924d
4687f2a
340f410
597056a
1a9817b
693aafe
668dbaa
0643747
101df47
63ffcc7
bcfbb04
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
-- Drop the autoscaling schedules table | ||
DROPTABLE template_version_preset_prebuild_schedules; | ||
-- Remove added columns from template_version_presets table | ||
ALTERTABLE template_version_presets | ||
DROP COLUMN autoscaling_enabled, | ||
DROP COLUMN autoscaling_timezone; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
-- Add new columns to template_version_presets table | ||
ALTERTABLE template_version_presets | ||
ADD COLUMN autoscaling_enabledBOOLEAN DEFAULT falseNOT NULL,-- Do we need it? | ||
ADD COLUMN autoscaling_timezoneTEXT DEFAULT'UTC'NOT NULL; | ||
-- New table for autoscaling schedules | ||
CREATETABLEtemplate_version_preset_prebuild_schedules ( | ||
id UUIDPRIMARY KEY DEFAULT gen_random_uuid()NOT NULL, | ||
preset_id UUIDNOT NULL, | ||
cron_expressionTEXTNOT NULL, | ||
instancesINTEGERNOT NULL, | ||
FOREIGN KEY (preset_id)REFERENCES template_version_presets (id)ON DELETE CASCADE | ||
); |
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.