module
Version:
v0.0.0-...-9392beb
Opens a new window with list of versions in this module.
Published: Aug 20, 2019
License: Apache-2.0
Opens a new window with license information.
README
¶
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
Click to show internal directories.
Click to hide internal directories.