{"id":28741029,"url":"https://github.com/aliyuncontainerservice/spot-instance-advisor","last_synced_at":"2025-06-16T07:09:56.006Z","repository":{"id":75042554,"uuid":"222631462","full_name":"AliyunContainerService/spot-instance-advisor","owner":"AliyunContainerService","description":"spot-instance-advisor is command line tool to get the cheapest group of spot instanceTypes.","archived":false,"fork":false,"pushed_at":"2020-03-13T03:49:26.000Z","size":25196,"stargazers_count":21,"open_issues_count":5,"forks_count":7,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-06-21T17:50:27.126Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AliyunContainerService.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-11-19T07:08:32.000Z","updated_at":"2023-12-17T13:40:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"28d6be83-cc54-40af-bc50-cae253656a67","html_url":"https://github.com/AliyunContainerService/spot-instance-advisor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AliyunContainerService/spot-instance-advisor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AliyunContainerService%2Fspot-instance-advisor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AliyunContainerService%2Fspot-instance-advisor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AliyunContainerService%2Fspot-instance-advisor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AliyunContainerService%2Fspot-instance-advisor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AliyunContainerService","download_url":"https://codeload.github.com/AliyunContainerService/spot-instance-advisor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AliyunContainerService%2Fspot-instance-advisor/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260116644,"owners_count":22961065,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-16T07:09:55.114Z","updated_at":"2025-06-16T07:09:55.991Z","avatar_url":"https://github.com/AliyunContainerService.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# spot-instance-advisor\nspot-instance-advisor is command line tool to get the cheapest group of spot instanceTypes.\n\n## Build binary    \n```$xslt\nmake bin \n```\n\n## Usage \n```$xslt\nUsage of ./spot-instance-advisor:\n  -accessKeyId string\n    \tYour accessKeyId of cloud account\n  -accessKeySecret string\n    \tYour accessKeySecret of cloud account\n  -cutoff int\n    \tDiscount of the spot instance prices (default 2)\n  -family string\n    \tThe spot instance family you want (e.g. ecs.n1,ecs.n2)\n  -limit int\n    \tLimit of the spot instances (default 20)\n  -maxcpu int\n    \tMax cores of spot instances  (default 32)\n  -maxmem int\n    \tMax memory of spot instances (default 64)\n  -mincpu int\n    \tMin cores of spot instances (default 1)\n  -minmem int\n    \tMin memory of spot instances (default 2)\n  -region string\n    \tThe region of spot instances (default \"cn-hangzhou\")\n  -resolution int\n    \tThe window of price history analysis (default 7)\n```\n\n## Demo \n```$xslt\n./spot-instance-advisor --accessKeyId=[id] --accessKeySecret=[secret] --region=cn-zhangjiakou\n\n\nInitialize cache ready with 619 kinds of instanceTypes\nFilter 93 of 98 kinds of instanceTypes.\nFetch 93 kinds of InstanceTypes prices successfully.\nSuccessfully compare 199 kinds of instanceTypes\n      InstanceTypeId               ZoneId     Price(Core)        Discount           ratio\n        ecs.c6.large     cn-zhangjiakou-c          0.0135             1.0             0.0\n        ecs.c6.large     cn-zhangjiakou-a          0.0135             1.0             0.0\n      ecs.c6.2xlarge     cn-zhangjiakou-a          0.0136             1.0             0.0\n      ecs.c6.2xlarge     cn-zhangjiakou-c          0.0136             1.0             0.0\n      ecs.c6.3xlarge     cn-zhangjiakou-a          0.0137             1.0             0.0\n      ecs.c6.3xlarge     cn-zhangjiakou-c          0.0137             1.0             0.0\n       ecs.c6.xlarge     cn-zhangjiakou-c          0.0138             1.0             0.0\n       ecs.c6.xlarge     cn-zhangjiakou-a          0.0138             1.0             0.0\n     ecs.hfc6.xlarge     cn-zhangjiakou-a          0.0158             1.0             0.0\n      ecs.hfc6.large     cn-zhangjiakou-a          0.0160             1.0             0.0\n      ecs.hfc6.large     cn-zhangjiakou-c          0.0160             1.0             0.0\n      ecs.g6.3xlarge     cn-zhangjiakou-a          0.0175             1.0             0.0\n      ecs.g6.3xlarge     cn-zhangjiakou-c          0.0175             1.0             0.0\n        ecs.g6.large     cn-zhangjiakou-a          0.0175             1.0             0.0\n       ecs.g6.xlarge     cn-zhangjiakou-a          0.0175             1.0             0.0\n      ecs.g6.2xlarge     cn-zhangjiakou-a          0.0175             1.0             0.0\n      ecs.g6.2xlarge     cn-zhangjiakou-c          0.0175             1.0             0.0\n        ecs.g6.large     cn-zhangjiakou-c          0.0175             1.0             0.0\n       ecs.g6.xlarge     cn-zhangjiakou-c          0.0175             1.0             0.0\n      ecs.hfg6.large     cn-zhangjiakou-c          0.0195             1.0             0.0\n```\n\n## How to create the configure with the result \n* Don't put all the eggs in one bucket\nUse 10 kinds of instanceType is a good choice and choose the appropriate weight based on the price.\n* Don't choose high ratio instances \nratio is the standard deviation value of history prices. ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faliyuncontainerservice%2Fspot-instance-advisor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faliyuncontainerservice%2Fspot-instance-advisor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faliyuncontainerservice%2Fspot-instance-advisor/lists"}