Your SlideShare is downloading. ×
Spot instance virtual meetup #2
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 virtual meetup #2

3,112

Published on

Virtual Meetup on Spot Strategies.

Virtual Meetup on Spot Strategies.

Published in: Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
3,112
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
2
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. Spot Instance Meetup #2 Spot Strategies
  • 2. Spot Instances Consumer chooses a maximum bid AWS charges market price @ start of the hour Can get terminated at any time
  • 3. Spot Strategy Checklist Spot terminations Spot outages Launch failures Optimized price = min(spot price, on-demand price) Ability to auto-scale
  • 4. Similarities with Auto-scaling Stateless instances Apps can tolerate momentary dip in capacity Apps can tolerate instance “swapping” Launch failures
  • 5. Differences from auto-scaling? No programmable cooldown period
  • 6. 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
  • 7. Analysis Spot terminations Spot outages Launch failures Optimized price Ability to auto-scale
  • 8. Sanket’s Algorithm Two ASGs (spot and on-demand) ● Setup thresholds as follows: ASG: On-demand Scale up: CPU > 75% Scale down: CPU < 55% ASG: Spot Scale up: CPU > 60% Scale down: CPU < 45%
  • 9. Analysis Spot terminations Spot outages Launch failures Optimized price Ability to auto-scale
  • 10. 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
  • 11. Analysis Spot terminations Spot outages Launch failures Optimized price Ability to auto-scale (in-house ASG)
  • 12. Thank You

×