https://github.com/homedepot/cf-rolling-restart
Perform a rolling restart of cloud foundry application instances.
https://github.com/homedepot/cf-rolling-restart
cloud-foundry cloud-foundry-cli
Last synced: 6 months ago
JSON representation
Perform a rolling restart of cloud foundry application instances.
- Host: GitHub
- URL: https://github.com/homedepot/cf-rolling-restart
- Owner: homedepot
- License: apache-2.0
- Created: 2019-05-08T19:53:33.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-03T20:54:50.000Z (about 7 years ago)
- Last Synced: 2024-06-20T11:58:36.858Z (about 2 years ago)
- Topics: cloud-foundry, cloud-foundry-cli
- Language: Go
- Size: 84 KB
- Stars: 7
- Watchers: 6
- Forks: 5
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Rolling Restart for CF
[](http://golang.com)
[](https://goreportcard.com/report/github.com/homedepot/cf-rolling-restart)
[](https://codecov.io/gh/homedepot/cf-rolling-restart)
[](https://travis-ci.org/homedepot/cf-rolling-restart)
[](LICENSE)
CF plugin for zero downtime application restarts.
This was made to fill a the gap in zero-downtime restarts for the PCF CLI. It will restart your application one instance at a time until each instance is up. The plugin should provide feedback through the CLI through the whole process.
## Installation
You can install the latest release from [CF Community Plugins](https://plugins.cloudfoundry.org) by running the following command:
```
$ cf install-plugin -r CF-Community "cf-rolling-restart"
```
Alternatively, you can download any previous releases from the GitHub releases page and install using the built in `install-plugin` command of the cf-cli.
```
$ cf install-plugin path/to/downloaded/binary
```
## Usage
```
$ cf rolling-restart [--max-cycles #] APP_NAME
```
The alias `rrs` also exists for a shorthand (Ex. `cf rrs APP_NAME`).
The flag `--max-cycles` augments the number of times the plugin will check to see if the app is up. The default is `120` cycles which roughly equate to ~2 minutes. Each cycle consists of checking the current state of the recently restarted instance and then pausing 1 second until the instance is running or the max cycles have been reached.
## Compiling
To build and test for your current platform please run `./script/cibuild` from the project root.
To build and install locally run `./script/install`.
## Contributing
Check out the [contributing](CONTRIBUTING.md) readme for information on how to contribute to the project.
## License
This project is released under the Apache2 free software license. More information can be found in the [LICENSE](LICENSE) file.