This Cloudfoundry cli plugin is to allow the recycling of application instances without interruption to the application availability.
The plugin works by restarting individual Application Instances(AI's) waiting for one to fully restart before moving on to the next.
The plugin was built and tested using the below versions
- Golang 1.10.0
- CloudFoundry CLI 6.35.2
Using your favorite versioning system, set variables for the major, minor, and patch versions.
git clone git@github.com:comcast/cf-recycle-plugin.git
go get github.com/cloudfoundry/cli
govendor build -ldflags "-X main.Major=${major} -X main.Minor=${minor} -X main.Patch=${patch}" -o out/cf-recycle-plugin cf_recycle_plugin.go
cf install-plugin out/cf-recycle-plugin -f
Binaries are available in the releases section.
cf recycle <APP NAME>