ryotarai / Spotscaler
Auto scaling for Amazon EC2 using spot instances
Stars: ✭ 69
Programming Languages
go
31211 projects - #10 most used programming language
Spotscaler
Autoscaler for Amazon EC2 using spot instances
Usage
First, create config YAML file like https://github.com/ryotarai/spotscaler/blob/master/config.sample.yml
$ spotscaler -config config.yml [-dry-run]
HTTP API
$ spotscaler -config config.yml
$ curl -XPOST -d '{"StartAt": "2016-10-05T09:00:00Z", "EndAt": "2016-10-05T10:00:00Z", "Capacity": 10}' localhost:8080/schedules
{"Key":"2016-10-05T09:45:59.315042705Z","StartAt":"2016-10-05T09:00:00Z","EndAt":"2016-10-05T10:00:00Z","Capacity":10}
$ curl localhost:8080/schedules
[{"Key":"2016-10-05T09:45:59.315042705Z","StartAt":"2016-10-05T09:00:00Z","EndAt":"2016-10-05T10:00:00Z","Capacity":10}]
$ curl -XDELETE 'localhost:8080/schedules?key=2016-10-05T09:45:59.315042705Z'
{"deleted":true,"key":"2016-10-05T09:45:59.315042705Z"}
$ curl localhost:8080/status
Why not spot fleet?
TODO
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].