{"id":1629,"date":"2016-09-12T13:01:28","date_gmt":"2016-09-12T12:01:28","guid":{"rendered":"http:\/\/www.tekhead.org\/blog\/?p=1629"},"modified":"2016-10-11T11:01:31","modified_gmt":"2016-10-11T10:01:31","slug":"amazon-aws-tips-and-gotchas-part-8-reserved-instances","status":"publish","type":"post","link":"http:\/\/tekhead.it\/blog\/2016\/09\/amazon-aws-tips-and-gotchas-part-8-reserved-instances\/","title":{"rendered":"Amazon AWS Tips and Gotchas \u2013 Part 8 \u2013 AWS EC2 Reserved Instances"},"content":{"rendered":"<p>Continuing in this series of blog posts taking a bit of a \u201cwarts and all\u201d view of a few Amazon AWS features, below are a handful more tips and gotchas when designing and implementing solutions on Amazon AWS, including AWS EC2 Reserved Instances.<\/p>\n<p>For the first post in this series with a bit of background on where it all originated from, see here:<br \/>\n<a href=\"http:\/\/tekhead.it\/blog\/2016\/02\/amazon-aws-tips-and-gotchas-part-1\/\" target=\"_blank\">Amazon #AWS Tips and Gotchas \u2013 Part 1<\/a><\/p>\n<p>For more posts in this series, see here:<br \/>\n<a href=\"http:\/\/tekhead.it\/blog\/2016\/07\/index-of-tekhead-it-blog-posts-on-amazon-aws\/#gotchas\" target=\"_blank\">Index of AWS Tips and Gotchas<\/a><\/p>\n<h4 class=\"p1\"><span class=\"s1\"><b>AWS Tips and Gotchas \u2013 Part 8<\/b><\/span><\/h4>\n<p class=\"p1\"><a href=\"https:\/\/aws.amazon.com\/ec2\/purchasing-options\/reserved-instances\/\" target=\"_blank\">Reserved Instances<\/a> are a great way to save yourself some money for instances you know you will require for a significant period of time (from 12-36 months). One really cool fact which AWS don&#8217;t announce enough, in my opinion, is that reserved instances can actually be shared across <a href=\"https:\/\/aws.amazon.com\/ec2\/faqs\/#reserved-instances\" target=\"_blank\">consolidated billing accounts<\/a>!<\/p>\n<p class=\"p1\">If you wanted to, you could purchase all of your reserved instances from your primary consolidated billing accounts, however, it doing this has some potentially unexpected results:<\/p>\n<ol start=\"16\">\n<li>Reserved instances don&#8217;t just provide you with a better price, they also provide you with guaranteed ability to spin up an instance of your chosen type, regardless of how busy the AZ in question actually is.<br \/>\nIf there is an AZ outage, other AWS customers will scramble to spin up additional instances in other AZs in the same region, either manually or via ASGs, and this has the potential to\u00a0starve the compute resources for one or more instance types!<br \/>\nYes, that&#8217;s right,\u00a0<a href=\"http:\/\/docs.aws.amazon.com\/AWSEC2\/latest\/UserGuide\/instance-capacity.html\" target=\"_blank\">even AWS do not have an infinite compute resources<\/a>!<a href=\"http:\/\/tekhead.it\/wp-uploads\/www.tekhead.org\/2016\/04\/infinity.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1910\" src=\"http:\/\/tekhead.it\/wp-uploads\/www.tekhead.org\/2016\/04\/infinity-225x300.jpg\" alt=\"AWS Infinity Reserved Instances\" width=\"200\" height=\"267\" srcset=\"http:\/\/tekhead.it\/wp-uploads\/www.tekhead.org\/2016\/04\/infinity-225x300.jpg 225w, http:\/\/tekhead.it\/wp-uploads\/www.tekhead.org\/2016\/04\/infinity-112x150.jpg 112w, http:\/\/tekhead.it\/wp-uploads\/www.tekhead.org\/2016\/04\/infinity.jpg 500w\" sizes=\"auto, (max-width: 200px) 100vw, 200px\" \/><\/a>By using reserved instances, you are still guaranteed to be able to run yours regardless of available capacity for on-demand instances. They are truly reserved.<br \/>\nIf however, you centralise your reserved instances into your CB account, you will get the reservation pricing benefits at the top of the account tree, but you don\u2019t get the capacity reservations as these are account specific.<\/li>\n<li>Reserved instances are specific to individual <a href=\"http:\/\/docs.aws.amazon.com\/AWSEC2\/latest\/UserGuide\/using-regions-availability-zones.html\" target=\"_blank\">Availability Zones<\/a>, so ensure you spread these evenly across your AZs\u00a0to avoid wasting them (you are of course designing your apps to be resilient across AZs, right?)\u00a0and give you maximum reserved coverage in the unlikely event of a full AZ outage.<\/li>\n<li>And finally&#8230; Reserved instances are a commercial tool applied after-the-fact, not against a specific instance. When using consolidated billing\u00a0for reserved instances, the reservations\u00a0are therefore effectively split evenly across all accounts. If you actually want to report back to each business unit \/ account owner on their billing including reserved instance, this could be tricky.<\/li>\n<\/ol>\n<p>Find\u00a0more posts in this series here:<br \/>\n<a href=\"http:\/\/tekhead.it\/blog\/2016\/07\/index-of-tekhead-it-blog-posts-on-amazon-aws\/#gotchas\" target=\"_blank\">Index of AWS Tips and Gotchas<\/a><\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"mbLAbxeckK\"><p><a href=\"http:\/\/tekhead.it\/blog\/2016\/10\/amazon-aws-tips-and-gotchas-part-9-scale-up-patching\/\">Amazon AWS Tips and Gotchas &#8211; Part 9 &#8211; Scale-Up Patching<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;Amazon AWS Tips and Gotchas &#8211; Part 9 &#8211; Scale-Up Patching&#8221; &#8212; Tekhead.it\" src=\"http:\/\/tekhead.it\/blog\/2016\/10\/amazon-aws-tips-and-gotchas-part-9-scale-up-patching\/embed\/#?secret=b3aiydHgId#?secret=mbLAbxeckK\" data-secret=\"mbLAbxeckK\" width=\"590\" height=\"332\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Continuing in this series of blog posts taking a bit of a \u201cwarts and all\u201d view of a few Amazon AWS features, below are a handful more tips [..]<\/p>\n","protected":false},"author":1,"featured_media":1549,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_yoast_wpseo_focuskw":"Reserved Instances","_yoast_wpseo_title":"","_yoast_wpseo_metadesc":"AWS is awesome, but this series describes common issues you may come across and provides tips, workarounds & fixes. Part 8 covers AWS EC2 Reserved Instances","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":true,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"New Blog Post: Amazon #AWS Tips and Gotchas \u2013 Part 8 \u2013 Reserved Instances","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[688,725],"tags":[270,709,715,714,895,699,706,707,894,705,702,518,893,710,66],"class_list":["post-1629","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-aws","category-cloud","tag-amazon","tag-architecture","tag-asg","tag-auto-scaling","tag-availability-zones","tag-aws","tag-awsgotchas","tag-awstips","tag-az","tag-dr","tag-ec2","tag-ha","tag-reserved-instances","tag-solution-architect","tag-tips"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"http:\/\/tekhead.it\/wp-uploads\/www.tekhead.org\/2016\/02\/amazon-web-services-logo.png","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p2l3lU-qh","amp_enabled":true,"_links":{"self":[{"href":"http:\/\/tekhead.it\/blog\/wp-json\/wp\/v2\/posts\/1629","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/tekhead.it\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/tekhead.it\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/tekhead.it\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/tekhead.it\/blog\/wp-json\/wp\/v2\/comments?post=1629"}],"version-history":[{"count":1,"href":"http:\/\/tekhead.it\/blog\/wp-json\/wp\/v2\/posts\/1629\/revisions"}],"predecessor-version":[{"id":1954,"href":"http:\/\/tekhead.it\/blog\/wp-json\/wp\/v2\/posts\/1629\/revisions\/1954"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/tekhead.it\/blog\/wp-json\/wp\/v2\/media\/1549"}],"wp:attachment":[{"href":"http:\/\/tekhead.it\/blog\/wp-json\/wp\/v2\/media?parent=1629"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/tekhead.it\/blog\/wp-json\/wp\/v2\/categories?post=1629"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/tekhead.it\/blog\/wp-json\/wp\/v2\/tags?post=1629"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}