-
Notifications
You must be signed in to change notification settings - Fork 93
Orchestrator rolling updates with job definiton #564
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
base: main
Are you sure you want to change the base?
Conversation
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.
Nice!
Could you please describe how would a migration from the current solution look like? Is there any migration necessary?
I think the migration could be the following:
The only question left is how to delete the old jobs that are unused. |
@jakubno The |
Also we need to solve this before merging. |
There won't be that many of them, deploying new orchestrator version is now rather slow process |
Wait for #647 is deployed |
Description
How it works
We generate new unique id if either job definition, secret or orchestrator binary changed
We use this ID to generate a new job, which has the new job definition
We save the ID to nomad as a variable and theres's a
prestart
check, which compares the ID of the job with the latest ID (the one saved in nomad), if they don't match the orchestrator is not startedThis means there will be multiple jobs for orchestrator, but new orchestrator will start only for the latest job