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

blue green strategy: add delay before deleting venerable app #569

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Cocossoul
Copy link
Contributor

@Cocossoul Cocossoul commented Sep 11, 2024

Some apps can take a few moments to be fully up even after Cloudfoundry declared them "started" : database schema migrations, establishing connections to clients...

We had some reports of downtime because the venerable app was deleted when the new app was not fully "started" (even if Cloudfoundry was showing it started : it's not a bug in Cloudfoundry more like a practical issue on our side)

The workaround we have found is to add a preconfigured delay before killing the venerable app, and I think it can be useful to other in our case.

DefaultBindTimeout = 5 * time.Minute
DefaultStageTimeout = 15 * time.Minute
DefaultAppPort = 8080
DefaultBlueGreenPostStartupWaitTime = 10
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should set it to 0 by default in order for it to not impact people who don't want it

@Cocossoul Cocossoul changed the title blue green strategy: add time before deleting venerable app blue green strategy: add delay before deleting venerable app Sep 11, 2024
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.

1 participant