-
Notifications
You must be signed in to change notification settings - Fork 41
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
Question: Is it possible to keep the old instances after a bg-deploy --no-confirm #91
Comments
Hi Kiemes, For such cases, we recommend doing a new bg-deployment with the previous version of the solution. The complete state of the solution is not persisted only in the cf app entities. E.g. even if the routes get manually switch back to the former apps, the services and service bindings with their parameters won't get updated back to the previous values. I understand that switching back only apps like this, though riskier in some cases, is much faster and may be of use. We're currently doing a change to the bg-deploy process - to switch back to the live-app names at the end of bg-deployment. After it's delivered (targeting Q1 2020), such a feature would be possible to implement as the old app versions would remain with an Even if this feature is to be implemented, one should consider doing a new deployment of the previous version for reasons as:
|
Thanks @ddonchev for your comments. I was consciously asking for this and still having the risks in mind. Especially DB related changes are dangerous and have to be handled with care. But this also is true for the regular MTA deployments. Thanks also for the hint about the new upcoming version. Are you planning to leave the |
In the initial scope, the old apps will get deleted. I'm taking your feedback and will bring this to the team to consider an additional feature for preserving the apps. |
thx. I am also fine with a global descriptor parameter ;) |
A potential benefit of having an CLI parameter would be the easier handling in CI/CD pipelines. Here you would not need to modify the |
I kind of started an off-topic about ui, but regardless - the idea of having parameters with defaults in the mtad.yaml is the ability to replace those defaults with extension descriptors (*.mtaext) at the teme of deployment. Creating those *.mtaext files is still more effortful than just specifying a cli option so the ui is decided on for each case. |
We would like to keep the old instances after a blue-green deployment so that we can switch easily after we found an issue that was not found by the pipeline.
Looking at
cf bg-deploy --help
, there seems to be no option.Wdyt? Would you consider adding such an option?
The community cf-cli plugin for blue-green deployments of native apps also supports this https://github.com/bluemixgaragelondon/cf-blue-green-deploy
The text was updated successfully, but these errors were encountered: