https://github.com/ryotarai/spotscaler
Auto scaling for Amazon EC2 using spot instances
https://github.com/ryotarai/spotscaler
amazon-ec2 spot-instances
Last synced: 6 months ago
JSON representation
Auto scaling for Amazon EC2 using spot instances
- Host: GitHub
- URL: https://github.com/ryotarai/spotscaler
- Owner: ryotarai
- Created: 2016-10-12T07:29:43.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-03-30T11:59:27.000Z (over 7 years ago)
- Last Synced: 2025-04-16T03:18:12.908Z (6 months ago)
- Topics: amazon-ec2, spot-instances
- Language: Go
- Homepage:
- Size: 18.3 MB
- Stars: 70
- Watchers: 2
- Forks: 5
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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