Your SlideShare is downloading. ×
Spot instance Strategies - AWS techies
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Saving this for later?

Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime - even offline.

Text the download link to your phone

Standard text messaging rates apply

Spot instance Strategies - AWS techies

3,301
views

Published on

Published in: Technology

0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
3,301
On Slideshare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
6
Comments
0
Likes
2
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Let’s discuss Spot Instances Spot Strategies
  • 2. WHO AM I? Aater Suleman Part-time UT Professor Geek, Architect, Developer, Ops, DevOps … Co-founder & CEO Flux7 Labs ○ DevOps Solutions ■ ■ Deployments Cost/performance optimized large scale website (Ruby on rails, node.js, Django) and Hadoop deployments
  • 3. Spot Instances Consumer chooses a maximum bid AWS charges market price @ start of the hour Can get terminated at any time
  • 4. Spot Strategy Checklist Spot terminations Spot outages Launch failures Optimized price = min(spot price, on-demand price) Ability to auto-scale
  • 5. Similarities with Auto-scaling Stateless instances Apps can tolerate momentary dip in capacity Apps can tolerate instance “swapping” Launch failures
  • 6. Differences from auto-scaling? No programmable cooldown period
  • 7. AppNeta’s (http://www.appneta.com/blog/aws-spot-instances/) Two ASGs (spot and main) SNS notifications on Spot ASGs Outside daemon: ○ Spot instance termination ⇒ on-demand instance
  • 8. Analysis Spot terminations Spot outages Launch failures Optimized price Ability to auto-scale
  • 9. Sanket’s Algorithm Two ASGs (spot and on-demand) ● Setup thresholds as follows: ASG: On-demand ASG: Spot Scale up: CPU > 75% Scale up: CPU > 60% Scale down: CPU < 55% Scale down: CPU < 45%
  • 10. Analysis Spot terminations Spot outages Launch failures Optimized price Ability to auto-scale
  • 11. Flux7 v1.0 Our own auto-scaling solution that allows hybrid spot and on-demand Step Up: If spot price < on-demand, launch spot Spot Launch failure: Launch on-demand Step Down: If on-demand is available, terminate it End of hour: Treat like Step Up
  • 12. Analysis Spot terminations Spot outages Launch failures Optimized price Ability to auto-scale (in-house ASG)
  • 13. Thank You