GithubHelp home page GithubHelp logo

isabella232 / spot-instance-advisor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aliyuncontainerservice/spot-instance-advisor

0.0 0.0 0.0 24.61 MB

spot-instance-advisor is command line tool to get the cheapest group of spot instanceTypes.

License: Apache License 2.0

Go 97.86% Makefile 2.14%

spot-instance-advisor's Introduction

spot-instance-advisor

spot-instance-advisor is command line tool to get the cheapest group of spot instanceTypes.

Build binary

make bin 

Usage

Usage of ./spot-instance-advisor:
  -accessKeyId string
    	Your accessKeyId of cloud account
  -accessKeySecret string
    	Your accessKeySecret of cloud account
  -cutoff int
    	Discount of the spot instance prices (default 2)
  -family string
    	The spot instance family you want (e.g. ecs.n1,ecs.n2)
  -limit int
    	Limit of the spot instances (default 20)
  -maxcpu int
    	Max cores of spot instances  (default 32)
  -maxmem int
    	Max memory of spot instances (default 64)
  -mincpu int
    	Min cores of spot instances (default 1)
  -minmem int
    	Min memory of spot instances (default 2)
  -region string
    	The region of spot instances (default "cn-hangzhou")
  -resolution int
    	The window of price history analysis (default 7)

Demo

./spot-instance-advisor --accessKeyId=[id] --accessKeySecret=[secret] --region=cn-zhangjiakou


Initialize cache ready with 619 kinds of instanceTypes
Filter 93 of 98 kinds of instanceTypes.
Fetch 93 kinds of InstanceTypes prices successfully.
Successfully compare 199 kinds of instanceTypes
      InstanceTypeId               ZoneId     Price(Core)        Discount           ratio
        ecs.c6.large     cn-zhangjiakou-c          0.0135             1.0             0.0
        ecs.c6.large     cn-zhangjiakou-a          0.0135             1.0             0.0
      ecs.c6.2xlarge     cn-zhangjiakou-a          0.0136             1.0             0.0
      ecs.c6.2xlarge     cn-zhangjiakou-c          0.0136             1.0             0.0
      ecs.c6.3xlarge     cn-zhangjiakou-a          0.0137             1.0             0.0
      ecs.c6.3xlarge     cn-zhangjiakou-c          0.0137             1.0             0.0
       ecs.c6.xlarge     cn-zhangjiakou-c          0.0138             1.0             0.0
       ecs.c6.xlarge     cn-zhangjiakou-a          0.0138             1.0             0.0
     ecs.hfc6.xlarge     cn-zhangjiakou-a          0.0158             1.0             0.0
      ecs.hfc6.large     cn-zhangjiakou-a          0.0160             1.0             0.0
      ecs.hfc6.large     cn-zhangjiakou-c          0.0160             1.0             0.0
      ecs.g6.3xlarge     cn-zhangjiakou-a          0.0175             1.0             0.0
      ecs.g6.3xlarge     cn-zhangjiakou-c          0.0175             1.0             0.0
        ecs.g6.large     cn-zhangjiakou-a          0.0175             1.0             0.0
       ecs.g6.xlarge     cn-zhangjiakou-a          0.0175             1.0             0.0
      ecs.g6.2xlarge     cn-zhangjiakou-a          0.0175             1.0             0.0
      ecs.g6.2xlarge     cn-zhangjiakou-c          0.0175             1.0             0.0
        ecs.g6.large     cn-zhangjiakou-c          0.0175             1.0             0.0
       ecs.g6.xlarge     cn-zhangjiakou-c          0.0175             1.0             0.0
      ecs.hfg6.large     cn-zhangjiakou-c          0.0195             1.0             0.0

How to create the configure with the result

  • Don't put all the eggs in one bucket Use 10 kinds of instanceType is a good choice and choose the appropriate weight based on the price.
  • Don't choose high ratio instances ratio is the standard deviation value of history prices.

spot-instance-advisor's People

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.