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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Stateful Experiments on AWS Lambda

165 点作者 cmeiklejohn大约 7 年前

5 条评论

teraflop大约 7 年前
The article&#x27;s conclusion -- that Lambda is cheaper than EC2 instances for this use case -- is completely wrong. The author only counted the per-request overhead, and neglected to add the actual cost of the GB-hours consumed. If each container uses 512MB of memory, then keeping one request running at a time for an entire month costs about $22. For comparison, a t2.nano instance with the same amount of memory costs $4&#x2F;month.<p>Lambda is a value-added service <i>on top of</i> EC2. It only makes financial sense to use it when you <i>don&#x27;t</i> want something running constantly, or otherwise have a way to take advantage of the extremely fine granularity in billing. (Or if you&#x27;re willing to pay a premium to have Amazon manage your process lifecycles for you.)
评论 #16566537 未加载
评论 #16567243 未加载
alien_大约 7 年前
Great article, and an interesting use of Lambda, thanks for sharing!<p>To answer your final question: I wrote a spot instance automation tool, you can check it out at autospotting.org, so I would give spot instances a try. The latest developments from AWS on the spot market are real game changers, I think most of the workloads can now safely run on spot, my AutoSpotting tool makes it a breeze to migrate from on-demand AutoScaling groups while keeping them a bit more reliable than the native AutoScaling integration for spot.<p>As of a few months ago the pricing is much more stable than before, I&#x27;ve rarely seen terminations even over the maximum three months of history for instances that used to go bust multiple times a day. You also now pay them on a per-second basis, and you can hibernate the last one to keep the state of the group while everything is down.<p>So my approach for this would be to have an AutoScaling group of the smallest spot instances that can run your app, scale them to N nodes right before your experiment, then when you&#x27;re done scale down to a single one, which you use as data seed next time, which you detach and hibernate with API calls.<p>Next time you re-attach the seed to the empty group, and scale out to N once again and run your test. So you only pay for the length of your test on a per-second basis.<p>You can also keep the seed as an on demand node outside of the spot group and have it run from the free tier if you still have some time left, or just hibernate it as well.
mncharity大约 7 年前
Keith Winstein (Stanford) et al&#x27;s gg [1] is also fun. Sort of `make -j1000` for 10 cents. Create a deterministic-compilation model of a C build task, upload the source files, briefly run a lot of lambdas, download the resulting executable. (Though it&#x27;s more general than that.)<p>For folks long despairing that our programming environments have been stuck in a rut for decades, we&#x27;re about to be hit by both the opportunity to reimagine our compilation tooling, and the need to rewrite the world again (as for phones) for VR&#x2F;AR. If only programming language and type systems research hadn&#x27;t been underfunded for decades, we&#x27;d be golden.<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;StanfordSNR&#x2F;gg" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;StanfordSNR&#x2F;gg</a> ; video of talk demo: <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=O9qqSZAny3I&amp;t=55m15s" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=O9qqSZAny3I&amp;t=55m15s</a> ; some slides (page 24): <a href="http:&#x2F;&#x2F;www.serverlesscomputing.org&#x2F;wosc2&#x2F;presentations&#x2F;s2-wosc-slides.pdf" rel="nofollow">http:&#x2F;&#x2F;www.serverlesscomputing.org&#x2F;wosc2&#x2F;presentations&#x2F;s2-wo...</a>
ghayes大约 7 年前
I&#x27;ve found out-of-the-box distributed erlang difficult to run in environments with a lot of instance churn (e.g. containerized deployments on Kubernetes), so much so that I generally opt to not connect my nodes for erlang message passing. Does anyone here have experience running Lasp in Kubernetes? Is Lasp effective in monitoring and adjusting to new or dead nodes?
评论 #16566661 未加载
jcora大约 7 年前
On mobile the characters on your site are literally like a millimeter wide you should fix that
评论 #16569747 未加载