TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Simple tool to schedule cloud resource scale up/down?

4 点作者 kierenj超过 6 年前
I&#x27;m looking for something which can allow setup&#x2F;automation of cloud resource scaling schedules or rules. Ideally, it&#x27;d be cross-provider and allow something like:<p>- At 6am, if service tier of resource X is less than Y, increase it to Y<p>- From 8am-1pm, unless usage % of resource X is greater than 25%, decrease service tier to Z<p>- Override rule 2 if it&#x27;s the weekend..<p>I guess, some system for evaluating and executing scaling rules, based on some criteria, scheduling, and priority.<p>I&#x27;ve done some digging and can&#x27;t find such a thing. It&#x27;s obviously possible with scripts and jobs, but I&#x27;d like the advantages of some kind of web UI. Anyone using (or built) anything like this?

3 条评论

tedmiston超过 6 年前
[I&#x27;m assuming you&#x27;re not managing nodes using a container orchestration tool like Kubernetes.]<p>Have you looked at something like Auto Scaling Groups (AWS) &#x2F; Autoscaling Groups (GCP)?<p>You can customize the auto-scaling policy for how the nodes scale up &#x2F; down. You can define the auto-scaling policies around load balancing at some level (e.g., CPU utilization, HTTP load balancing, network load balancing) which is discussed in more detail in the docs below [1].<p>You can also create arbitrary metrics and arbitrary policies for those metrics and scale with a combination of policies. From [2]:<p>&gt; The autoscaler handles multiple policies by calculating the recommended number of virtual machines for each policy and then picking the policy that leaves the largest number of virtual machines in the group.<p>Usually auto-scaling config is tied to a particular service provider; while I haven&#x27;t done cloud-agnostic auto-scaling policies before personally, I would guess it could be achieved with a bit more effort using something like Terraform (examples: AWS [3], GCP [4]).<p>[1]: <a href="https:&#x2F;&#x2F;cloud.google.com&#x2F;compute&#x2F;docs&#x2F;load-balancing-and-autoscaling" rel="nofollow">https:&#x2F;&#x2F;cloud.google.com&#x2F;compute&#x2F;docs&#x2F;load-balancing-and-aut...</a><p>[2]: <a href="https:&#x2F;&#x2F;cloud.google.com&#x2F;compute&#x2F;docs&#x2F;autoscaler&#x2F;multiple-policies" rel="nofollow">https:&#x2F;&#x2F;cloud.google.com&#x2F;compute&#x2F;docs&#x2F;autoscaler&#x2F;multiple-po...</a><p>[3]: <a href="https:&#x2F;&#x2F;www.terraform.io&#x2F;docs&#x2F;providers&#x2F;aws&#x2F;r&#x2F;autoscaling_policy.html" rel="nofollow">https:&#x2F;&#x2F;www.terraform.io&#x2F;docs&#x2F;providers&#x2F;aws&#x2F;r&#x2F;autoscaling_po...</a><p>[4]: <a href="https:&#x2F;&#x2F;www.terraform.io&#x2F;docs&#x2F;providers&#x2F;google&#x2F;r&#x2F;compute_autoscaler.html" rel="nofollow">https:&#x2F;&#x2F;www.terraform.io&#x2F;docs&#x2F;providers&#x2F;google&#x2F;r&#x2F;compute_aut...</a>
darkr超过 6 年前
Not cross provider obviously, but EC2 autoscaling has supported this for years: <a href="https:&#x2F;&#x2F;docs.aws.amazon.com&#x2F;autoscaling&#x2F;ec2&#x2F;userguide&#x2F;schedule_time.html" rel="nofollow">https:&#x2F;&#x2F;docs.aws.amazon.com&#x2F;autoscaling&#x2F;ec2&#x2F;userguide&#x2F;schedu...</a>
WAthrowaway超过 6 年前
&gt;I&#x27;m looking for something which can allow setup&#x2F;automation of cloud resource scaling schedules or rules.<p>Terraform + chron&#x2F;some timing script<p>&gt;but I&#x27;d like the advantages of some kind of web UI<p>Set up a Jenkins instance on $CLOUD_PROVIDER_OF_YOUR_CHOICE (~20 min) to run Terraform on a specified schedule