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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: Should I spin up and spin down VMs constantly?

8 点作者 talltofu大约 9 年前
I was wondering if anyone had any suggestions on what the right &#x27;cloudy&#x27; way of doing things are. Should I spin up a VM on the cloud and use it forever like I do with a physical machine? Or should I constantly spin up and spin down VMs daily? My VMs are stateless.<p>Are there organizations that have chosen one path or the other and have had success? Links to blogs&#x2F;articles would be appreciated

4 条评论

boulos大约 9 年前
You should on GCE, but not on EC2: per-hour billing for EC2 means your 15 minute VM costs you 60 (aka 4x as much). We (sadly) have a 10 minute minimum, but the difference is pretty stark.<p>Once they got through some growing pains (rate limits per project), Travis CI has switched to a 1 VM per build model that they&#x27;ll probably detail in future blog posts.<p><a href="https:&#x2F;&#x2F;blog.travis-ci.com&#x2F;2016-04-07-migration-update" rel="nofollow">https:&#x2F;&#x2F;blog.travis-ci.com&#x2F;2016-04-07-migration-update</a><p>Disclaimer: I work on GCE, so of course I want you to use it ;).
stephenr大约 9 年前
The <i>only</i> way AWS is cheaper than other providers is if you take advantage of the ability to spin up an EC2 instance from an image for just the time you need it, and spin it down when you don&#x27;t.<p>If you&#x27;re not using AWS, check to see how up&#x2F;down affects your costs. Some will still charge you for VM&#x27;s that are &quot;down&quot;, meaning there is limited benefit (to you directly) to spinning them down.
评论 #11556448 未加载
wave大约 9 年前
If you have a stateless architecture, you should use Google&#x27;s Preemptive VM. It is cheaper <a href="https:&#x2F;&#x2F;cloud.google.com&#x2F;preemptible-vms&#x2F;" rel="nofollow">https:&#x2F;&#x2F;cloud.google.com&#x2F;preemptible-vms&#x2F;</a>
r_groop大约 9 年前
r_groop