{"id":28177,"date":"2017-11-06T10:30:04","date_gmt":"2017-11-06T08:30:04","guid":{"rendered":"https:\/\/mamchenkov.net\/wordpress\/?p=28177"},"modified":"2017-11-06T10:30:04","modified_gmt":"2017-11-06T08:30:04","slug":"persisting-state-between-aws-ec2-spot-instances","status":"publish","type":"post","link":"https:\/\/mamchenkov.net\/wordpress\/2017\/11\/06\/persisting-state-between-aws-ec2-spot-instances\/","title":{"rendered":"Persisting state between AWS EC2 spot instances"},"content":{"rendered":"<!-- google_ad_section_start -->\n<p><a href=\"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2017\/11\/aws-console-create-instance.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"28178\" data-permalink=\"https:\/\/mamchenkov.net\/wordpress\/2017\/11\/06\/persisting-state-between-aws-ec2-spot-instances\/aws-console-create-instance\/\" data-orig-file=\"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2017\/11\/aws-console-create-instance.png?fit=1289%2C855&amp;ssl=1\" data-orig-size=\"1289,855\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"aws-console-create-instance\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2017\/11\/aws-console-create-instance.png?fit=660%2C438&amp;ssl=1\" class=\"aligncenter size-medium wp-image-28178\" src=\"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2017\/11\/aws-console-create-instance-500x332.png?resize=500%2C332&#038;ssl=1\" alt=\"\" width=\"500\" height=\"332\" srcset=\"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2017\/11\/aws-console-create-instance.png?resize=500%2C332&amp;ssl=1 500w, https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2017\/11\/aws-console-create-instance.png?resize=768%2C509&amp;ssl=1 768w, https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2017\/11\/aws-console-create-instance.png?resize=1024%2C679&amp;ssl=1 1024w, https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2017\/11\/aws-console-create-instance.png?w=1289&amp;ssl=1 1289w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a><\/p>\n<p>&#8220;<a href=\"https:\/\/peteris.rocks\/blog\/persisting-state-between-aws-ec2-spot-instances\/\">Persisting state between AWS EC2 spot instances<\/a>&#8221; is a handy guide into using Amazon EC2 spot instances instead of on-demand or reserved instances and preserving the state of the instance between terminations.\u00a0 This is not something that I&#8217;ve personally tried yet, but with the ever-growing number of instances I managed on the AWS, this definitely looks like an interesting approach.<\/p>\n<!-- google_ad_section_end -->\n","protected":false},"excerpt":{"rendered":"<!-- google_ad_section_start -->\n<p>&#8220;Persisting state between AWS EC2 spot instances&#8221; is a handy guide into using Amazon EC2 spot instances instead of on-demand or reserved instances and preserving the state of the instance between terminations.\u00a0 This is not something that I&#8217;ve personally tried yet, but with the ever-growing number of instances I managed on the AWS, this definitely &hellip; <a href=\"https:\/\/mamchenkov.net\/wordpress\/2017\/11\/06\/persisting-state-between-aws-ec2-spot-instances\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Persisting state between AWS EC2 spot instances<\/span><\/a><\/p>\n<!-- google_ad_section_end -->\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"Persisting state between AWS EC2 spot instances #WebDev #SysAdmin #Amazon #AWS #EC2 #cloud #hosting #Docker","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},"_links_to":"","_links_to_target":""},"categories":[1,133],"tags":[3270,3333,2366,3420,3104,1330,2289],"keyring_services":[],"class_list":["post-28177","post","type-post","status-publish","format-standard","hentry","category-general","category-sysadmin","tag-amazon-aws","tag-amazon-ec2","tag-cloud-computing","tag-docker","tag-virtualization","tag-web-development","tag-web-hosting"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":28571,"url":"https:\/\/mamchenkov.net\/wordpress\/2018\/05\/09\/creating-a-1-3-million-vcpu-grid-on-aws-using-ec2-spot-instances-and-tibco-gridserver\/","url_meta":{"origin":28177,"position":0},"title":"Creating a 1.3 Million vCPU Grid on AWS using EC2 Spot Instances and TIBCO GridServer","author":"Leonid Mamchenkov","date":"May 9, 2018","format":false,"excerpt":"This Amazon AWS blog post provides a great insight into the benefits of the cloud computing in general and Amazon AWS in particular.\u00a0 The whole thing is well worth the read, but here are a few of my favorite bits. The scale: The grid grew to 61,299 Spot Instances (1.3\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":22435,"url":"https:\/\/mamchenkov.net\/wordpress\/2014\/08\/26\/aws-name-server-dns-server-that-lets-you-look-up-ec2-instances-by-instance-name\/","url_meta":{"origin":28177,"position":1},"title":"aws-name-server &#8211; DNS server that lets you look up ec2 instances by instance name","author":"Leonid Mamchenkov","date":"August 26, 2014","format":"link","excerpt":"aws-name-server - DNS server that lets you look up ec2 instances by instance name","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":34995,"url":"https:\/\/mamchenkov.net\/wordpress\/2019\/02\/18\/build-load-balanced-servers-in-aws-ec2-using-cloudformation\/","url_meta":{"origin":28177,"position":2},"title":"Build load-balanced servers in AWS EC2 using CloudFormation","author":"Leonid Mamchenkov","date":"February 18, 2019","format":false,"excerpt":"\"Build load-balanced servers in AWS EC2 using CloudFormation\" is an excellent guide on deploying load balancer servers with EC2 instances to Amazon AWS cloud with CloudFormation infrastructure management tool. The guide covers a variety of topics from the actual deployment to security and monitoring. There are many different approaches for\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2019\/02\/aws.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2019\/02\/aws.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2019\/02\/aws.jpg?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":27312,"url":"https:\/\/mamchenkov.net\/wordpress\/2017\/02\/09\/amazon-aws-mtu-for-ec2\/","url_meta":{"origin":28177,"position":3},"title":"Amazon AWS : MTU for EC2","author":"Leonid Mamchenkov","date":"February 9, 2017","format":false,"excerpt":"I came across this handy Amazon AWS manual for the maximum transfer unit (MTU) configuration for EC2 instances. \u00a0This is not something one needs every day, but, I'm sure, when I need it, I'll otherwise be spending hours trying to find it. The maximum transmission unit (MTU) of a network\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2017\/02\/packet-headers-500x337.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":25061,"url":"https:\/\/mamchenkov.net\/wordpress\/2015\/12\/17\/amazon-ec2-t2-nano-instances\/","url_meta":{"origin":28177,"position":4},"title":"Amazon EC2 t2.nano instances","author":"Leonid Mamchenkov","date":"December 17, 2015","format":false,"excerpt":"If you thought t2.micro was a tiny machine, I have news for you - Amazon announced t2.nano instance type. \u00a0It features 512 MB of RAM, 1 vCPU, and up to two Elastic network interfaces. \u00a0Price for on-demand instance - $0.0065 per hour. This instance type is perfect for small websites,\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":23425,"url":"https:\/\/mamchenkov.net\/wordpress\/2015\/01\/29\/on-amazon-ec2-instances\/","url_meta":{"origin":28177,"position":5},"title":"On Amazon EC2 instances","author":"Leonid Mamchenkov","date":"January 29, 2015","format":false,"excerpt":"I am staring at the t2.micro (the smallest available instance type) server running MySQL 5.5.40 (using the my-huge.cnf example configuration shipped with MySQL, which ironically matches t2.micro specs). \u00a0Here's why (as reported by Nagios for the last few hours): Queries per second avg: 12888.839 The number is fluctuating between about\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_sharing_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts\/28177","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/comments?post=28177"}],"version-history":[{"count":0,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts\/28177\/revisions"}],"wp:attachment":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/media?parent=28177"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/categories?post=28177"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/tags?post=28177"},{"taxonomy":"keyring_services","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/keyring_services?post=28177"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}