TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Handling AWS' New Spot Instance Termination Notices

22 pointsby AndrewWrightover 10 years ago

4 comments

sciurusover 10 years ago
I'm surprised you have to poll. I would have expected tAmazon to wo minute notices to a SNS topic.
评论 #8848826 未加载
评论 #8852561 未加载
jkarnegesover 10 years ago
When I want to use cron to run a task more frequently than once per minute, my trick is to have the target program perform the task more than once per invocation. E.g.:<p><pre><code> # script start, T=0s do_something() for n in range(0, 11): time.sleep(5) do_something() # script end, T=55s</code></pre>
chrdluover 10 years ago
Great to see Luminal popping up on Hacker News!<p>If you haven&#x27;t heard of them before, this is their promotional video: <a href="https://www.youtube.com/watch?v=yuSqtwYOUvo" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=yuSqtwYOUvo</a><p>They are doing some very cool stuff in regards to automation of cloud based infrastructure.
ecesenaover 10 years ago
AWS post: <a href="https://aws.amazon.com/blogs/aws/new-ec2-spot-instance-termination-notices/" rel="nofollow">https:&#x2F;&#x2F;aws.amazon.com&#x2F;blogs&#x2F;aws&#x2F;new-ec2-spot-instance-termi...</a>