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

Run migration once; wait for migrations to run before starting api #1934

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

sunu
Copy link
Collaborator

@sunu sunu commented Oct 27, 2023

Addresses #1926

Continuation of #1932

@sunu sunu changed the title Feat/migration job 2 Run migration once; wait for migrations to run before starting api Oct 27, 2023
@sunu sunu marked this pull request as ready for review October 27, 2023 09:37
@szabozoltan69
Copy link
Contributor

Can I try a merge?

@sunu
Copy link
Collaborator Author

sunu commented Oct 30, 2023

@szabozoltan69 this can still potentially make the api unavailable if things don't go as planned. We can try deploying together in ~ 1 hour with @batpad if that works for you?

Also, looks like the the web-rewrite branch history just changed and we have a bunch of additional commits in the PR now. I'll rebase before we merge.

@szabozoltan69
Copy link
Contributor

(I think we should wait the go-rewrite cutover, and let's play with this afterwards. So let's postpone the merge until Thursday.)

- run migration in a Job to ensure only one instance of migrations is run regardless of the number of api replicas
- Use an init container to wait for migrations to finish running successfully before starting the api
selector is autogenerated by k8s based on the labels
@sunu sunu changed the base branch from web-rewrite to develop November 1, 2023 07:19
@szabozoltan69 szabozoltan69 force-pushed the develop branch 4 times, most recently from 17d0645 to a8b22d7 Compare July 22, 2024 16:28
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