项目作者: getninjas
项目描述 :
auto spot curator for AWS
高级语言: Go
项目地址: git://github.com/getninjas/spot-ninja.git
spot-ninja



Available translations:
This software is responsible for all the intelligence in increasing and decreasing AutoScalingGroups size based on Spotfleet health.
License
spot ninja is released under the terms of the Apache License. See LICENSE file for more information or see apache.
Requirements
- Docker >=v1.13.1
- Docker Compose >=1.23.1
- Go >= 1.12.7
- aws-sdk-go Module
- yaml.v2 Module
- Polices:
- CloudWatchReadOnlyAccess
- AmazonEC2SpotFleetAutoscaleRole
- AutoScalingConsoleFullAccess
Architecture

ENVs configuration
To configure the spot-ninja, you need to configure some environment variables. The variables are:
- AWS_REGION
- DATA_POINT_CONFIG
- STATISTIC_CONFIG
- FLEET_TYPE_CONFIG
- ID_METRIC_CONFIG
- SCAN_TYPE_CONFIG
- Default TimestampDescending
- METRIC_NAME_CONFIG
- NAMESPACE_CONFIG
- UNIT_CONFIG
- TIME_TO_CONFIG
- SPEED_CONFIG
- DIVIDER_CONFIG
- FLEET_IGNORED
- ENABLE_EVENTS_ON_SQS
- SQS_URL
- PREFIX
- TIME_TO_LIVE
- In seconds Default 15 min.
Installing with docker-compose
1 - Build
docker-compose build
2 - Run spot-ninja
docker-compose up
Project Structure
- cmd/
- config/
- general configs to spot ninja
- pkg/
References