Code Monkey home page Code Monkey logo

spot-ninja's Introduction

spot-ninja

Go Report Card Build Status GoDoc

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

spot-ninja

ENVs configuration

To configure the spot-ninja, you need to configure some environment variables. The variables are:

  • AWS_REGION
    • Default us-east-1
  • DATA_POINT_CONFIG
    • Default 30
  • STATISTIC_CONFIG
    • Default Average
  • FLEET_TYPE_CONFIG
    • Default FleetRequestId
  • ID_METRIC_CONFIG
    • Default metric
  • SCAN_TYPE_CONFIG
    • Default TimestampDescending
  • METRIC_NAME_CONFIG
    • Default PendingCapacity
  • NAMESPACE_CONFIG
    • Default AWS/EC2Spot
  • UNIT_CONFIG
    • Default Count
  • TIME_TO_CONFIG
    • Default 5
  • SPEED_CONFIG
    • Default 10
  • DIVIDER_CONFIG
    • Default 4
  • FLEET_IGNORED
    • Default none
  • ENABLE_EVENTS_ON_SQS
    • Default false
  • SQS_URL
    • Default none
  • PREFIX
    • Default ecs-
  • 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/
    • main spot-ninja
  • config/
    • general configs to spot ninja
  • pkg/
    • general libs

References

spot-ninja's People

Contributors

adelsjnr avatar thiago-scherrer avatar thiagoscherrer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

bala-27

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.