Reputation: 21
I googled more time but lost. Expecting an answer or ideas to solve this.
cf restart-app-instance
helps for restarts but I have to restage for environment variable updates.
Is there any way to do instance level restage
in Cloudfoundry?
PS: I even checked if there any clone option scale up and scale down original without downtime but no luck either.
Upvotes: 2
Views: 1916
Reputation: 11449
bg-restage will not give any downtime .
https://plugins.cloudfoundry.org/
Perform a zero-downtime restage of an application over the top of an old one (highly inspired by autopilot)
install:
cf install-plugin -r CF-Community "bg-restage"
company:Orange
homepage:https://github.com/orange-cloudfoundry/cf-plugin-bg-restage
author:Arthur Halet - [email protected]
platforms:osx , win64 , win32 , linux64 , linux32
cf bg-restage is mostly for those who don't want to redeploy an app with source code. It was initially created to restage automatically all apps in a Cloud Foundry when a new buildpack has been released with security patch.
Upvotes: 1
Reputation: 179
We used this particular plugin https://github.com/orange-cloudfoundry/cf-plugin-bg-restage .
Upvotes: 2
Reputation: 3984
The best way to achieve this is to do a blue-green deployment. https://docs.cloudfoundry.org/devguide/deploy-apps/blue-green.html
Upvotes: 0