{"id":30120011,"url":"https://github.com/stakater/scaler","last_synced_at":"2025-09-13T05:46:37.535Z","repository":{"id":57605292,"uuid":"168151369","full_name":"stakater/Scaler","owner":"stakater","description":"A tool to modify auto scaling groups.","archived":false,"fork":false,"pushed_at":"2023-12-15T14:39:55.000Z","size":5655,"stargazers_count":11,"open_issues_count":1,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-08-10T12:55:02.893Z","etag":null,"topics":["asg","auto-scaling-group","aws","scaler","stakater"],"latest_commit_sha":null,"homepage":"https://stakater.com/opensource","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/stakater.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-01-29T12:30:36.000Z","updated_at":"2024-03-27T06:36:07.000Z","dependencies_parsed_at":"2024-06-19T06:18:33.971Z","dependency_job_id":"645108dc-e558-42d6-be45-f29445234c4a","html_url":"https://github.com/stakater/Scaler","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/stakater/Scaler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stakater%2FScaler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stakater%2FScaler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stakater%2FScaler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stakater%2FScaler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stakater","download_url":"https://codeload.github.com/stakater/Scaler/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stakater%2FScaler/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274922696,"owners_count":25374521,"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","status":"online","status_checked_at":"2025-09-13T02:00:10.085Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["asg","auto-scaling-group","aws","scaler","stakater"],"created_at":"2025-08-10T12:52:41.811Z","updated_at":"2025-09-13T05:46:37.489Z","avatar_url":"https://github.com/stakater.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ![](assets/web/scaler-round-100px.png) Scaler\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/stakater/scaler?style=flat-square)](https://goreportcard.com/report/github.com/stakater/scaler)\n[![Go Doc](https://img.shields.io/badge/godoc-reference-blue.svg?style=flat-square)](http://godoc.org/github.com/stakater/scaler)\n[![Release](https://img.shields.io/github/release/stakater/scaler.svg?style=flat-square)](https://github.com/stakater/scaler/releases/latest)\n[![GitHub tag](https://img.shields.io/github/tag/stakater/scaler.svg?style=flat-square)](https://github.com/stakater/scaler/releases/latest)\n[![Docker Pulls](https://img.shields.io/docker/pulls/stakater/scaler.svg?style=flat-square)](https://hub.docker.com/r/stakater/scaler/)\n[![Docker Stars](https://img.shields.io/docker/stars/stakater/scaler.svg?style=flat-square)](https://hub.docker.com/r/stakater/scaler/)\n[![MicroBadger Size](https://img.shields.io/microbadger/image-size/stakater/scaler.svg?style=flat-square)](https://microbadger.com/images/stakater/scaler)\n[![MicroBadger Layers](https://img.shields.io/microbadger/layers/stakater/scaler.svg?style=flat-square)](https://microbadger.com/images/stakater/scaler)\n[![license](https://img.shields.io/github/license/stakater/scaler.svg?style=flat-square)](LICENSE)\n[![Get started with Stakater](https://stakater.github.io/README/stakater-github-banner.png)](http://stakater.com/?utm_source=scaler\u0026utm_medium=github)\n\n## Problem\n\nScale cluster at pre-defined schedule e.g at night and weekends to save cost.\n\n## Scaler\n\nScaler can modify auto scaling groups to change cluster size at pre-defined schedule\n\n## Usage\n\nScaler can be used to modify max, min and desired capacity of an auto scaling group.\n\nScaler supports the following flags\n\n|Short Flag|Long Flag|Type|Description|\n|----------|---------|----|-----------|\n|-d | --desired    | int    | Desired no of instances (Required)|\n|-h | --help       |        | Help for Scaler|\n|-m | --max        | int    | Maximum no of instances (Required)|\n|-i | --min        | int    | Minimum no of instances (Required)|\n|-p | --provider   | string | Cloud provider to user. Valid Values (aws)|\n|-r | --region     | string | Region in which auto scaling group exists (Required)|\n|-a | --roleArn    | string | Arn of role to assume (Required)|\n|-n | --scalerName | string | Name of Auto Scaling group (Required)|\n\n## Run\n\nScale can be run by passing arguments to the published image. e.g\n\n```\ndocker run -it docker.io/stakater/scaler:0.0.1 --roleArn arn:aws:iam::449074299682:role/nodes.stackator.com --region us-west-2 --max 0 --min 0 --desired 0 --provider aws --scalerName nodes.stackator.com\n```\n\n## Use Case\n\nScaler can be used in combination with Cronjob to control the cluster size during different times. e.g You can bring down your cloud cost by keeping the servers shut down on weekends\n\nA sample configuration of kubernetes cronjob can be found [here](cronjob/example.yaml).\n\n## Adding Support for Cloud Providers\n\n[Provider](internal/pkg/providers/provider.go) can be implemented to modify auto scaling groups on other cloud providers e.g Azure, Google Cloud etc. If new parameters are needed then they can be added by modifying Scaler Options struct in [common.go](internal/pkg/cmd/common/common.go). The values will automatically be available in the Init method of new implementation of [Provider](internal/pkg/providers/provider.go)\n\n## Help\n\n### Have a question?\n\nFile a GitHub [issue](https://github.com/stakater/Scaler/issues), or send us an [email](mailto:hello@stakater.com).\n\n### Talk to us on Slack\n\nJoin and talk to us on Slack for discussing Reloader\n\n[![Join Slack](https://stakater.github.io/README/stakater-join-slack-btn.png)](https://slack.stakater.com/)\n[![Chat](https://stakater.github.io/README/stakater-chat-btn.png)](https://stakater-community.slack.com/messages/C018HUU9J2F)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstakater%2Fscaler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstakater%2Fscaler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstakater%2Fscaler/lists"}