-
Notifications
You must be signed in to change notification settings - Fork 406
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Skip identities on Edge V2 migration when capacity budget exceeded
- Add `EDGE_V2_MIGRATION_READ_CAPACITY_BUDGET` setting - Add per-project read capacity budget - Enable incomplete Edge V2 migrations when capacity budget exceeded
- Loading branch information
Showing
9 changed files
with
237 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
api/projects/migrations/0024_add_project_edge_v2_migration_read_capacity_budget.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Generated by Django 3.2.25 on 2024-05-03 01:52 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
( | ||
"projects", | ||
"0023_rename_identity_overrides_v2_migration_status_project_edge_v2_migration_status", | ||
), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="project", | ||
name="edge_v2_migration_read_capacity_budget", | ||
field=models.IntegerField( | ||
default=None, | ||
help_text="[Edge V2 migration] Read capacity budget override. If project migration was finished with `INCOMPLETE` status, you can set it to a higher value than `EDGE_V2_MIGRATION_READ_CAPACITY_BUDGET` setting before restarting the migration.", | ||
null=True, | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="project", | ||
name="edge_v2_migration_status", | ||
field=models.CharField( | ||
choices=[ | ||
("NOT_STARTED", "Not Started"), | ||
("IN_PROGRESS", "In Progress"), | ||
("COMPLETE", "Complete"), | ||
("INCOMPLETE", "Incomplete (identity overrides skipped)"), | ||
], | ||
default="NOT_STARTED", | ||
help_text="[Edge V2 migration] Project migration status. Set to `IN_PROGRESS` to trigger migration start.", | ||
max_length=50, | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.