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

crc: run migrations in a separate container #2372

Merged
merged 1 commit into from
Dec 2, 2024

Conversation

drodowic
Copy link
Collaborator

@drodowic drodowic commented Nov 25, 2024

What is this PR doing:

Moves migrations out of the init container on the API pod to a separate pod

Why:

The recent deployment of crc-2024-11-25 has introduced a lot of post-migration hooks that cause migrations to take at least an hour even if there are no migrations to apply. Since migrations are currently handled in the init container of the API pods this causes the scaling of the API to occur very slowly.

Using a Job or ClowdJobInvocation is not feasible, because the AppSRE tooling reconciles Jobs after other resource types. This is useful when a Job is utilized to run integration tests after a deployment, but makes it impossible for migrations to run in a Job before the other resources roll out.

@drodowic
Copy link
Collaborator Author

/retest

@drodowic drodowic marked this pull request as ready for review November 26, 2024 15:40
@drodowic drodowic requested a review from cutwater November 26, 2024 15:40
@drodowic drodowic changed the title WIP: clowder: run migrations in a separate container crc: run migrations in a separate container Nov 26, 2024
@drodowic drodowic merged commit c46a58f into ansible:master Dec 2, 2024
19 of 21 checks passed
@drodowic drodowic deleted the crc-migrations branch December 2, 2024 13:53
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.

3 participants