🐛(playbook) avoid downtime during switch or rollback#434
Merged
Conversation
5ecce67 to
ba2cf17
Compare
The current switch_routes ansible task leave the current route in an undefined state for a few seconds when switch or rollback playbooks are executed.
ba2cf17 to
8e21b2e
Compare
6 tasks
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Purpose
The switch_routes ansible task leave the current route in an invalid state for a few seconds when switch or rollback playbooks are executed. It can introduce an unnecessary downtime during a deployment.
For example, I have the hello app deployed with the following versions :
d-200113-09h05m11sd-200113-08h58m09sd-200113-08h55m23sIf I execute a switch, I can find this in my logs :
Between
10:08:26and10:08:29, the current route is pointing to an undefined deployment stamp.Proposal
Do not execute the second step in the above example.