You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Luke Childs
2ddd022d53
|
5 years ago | |
---|---|---|
LICENSE | 5 years ago | |
README.md | 5 years ago | |
checkvolumesize | 5 years ago |
README.md
checkvolumesize
Autoscale Digital Ocean block storage volumes
Create a Digital Ocean block storage volume and write as much data to it as you want. Run this script on cron to monitor the volume and automatically scale it up in size as required with zero downtime.
Don't worry about manually resizing or running out of space and save money by only paying for what you use.
Inspired by this feature request:
- https://twitter.com/lukechilds/status/1192252814262599680
- https://ideas.digitalocean.com/ideas/BSX-I-6
Usage
$ checkvolumesize --help
checkvolumesize 1.0.0
Automatically expand Digital Ocean block storage volumes.
Usage: checkvolumesize [options]
Options:
--help | -h | help [Optional] Show this help message
--token [Required] Digital Ocean API token
--device [Required] The volume's block device
--volume-name [Required] The volume's name
--volume-region [Required] The volume's region
--buffer [Optional] The amount of GB to keep available Default: 10
--log [Optional] Prepend timestamps to stdout
Example:
checkvolumesize /
--token bc99be9f73b037da64074472fe58f643e619328b85c5467615964a59abd12029 /
--device /dev/sda /
--volume-name volume-sgp1-01 /
--volume-region sgp1 /
--buffer 10
GitHub: https://github.com/lukechilds/autoscale-do-block-storage
License
MIT © Luke Childs