{"id":3161,"date":"2019-08-02T21:48:07","date_gmt":"2019-08-02T19:48:07","guid":{"rendered":"http:\/\/miro.borodziuk.eu\/?p=3161"},"modified":"2019-09-07T21:55:47","modified_gmt":"2019-09-07T19:55:47","slug":"cost-optimization","status":"publish","type":"post","link":"http:\/\/miro.borodziuk.eu\/index.php\/2019\/08\/02\/cost-optimization\/","title":{"rendered":"Cost Optimization"},"content":{"rendered":"<p><!--more--><span style=\"color: #3366ff;\">EC2 Reserved Instances<\/span><\/p>\n<ul>\n<li>Save costs by purchasing\u00a0 Reserved Instances (1- to 3-year reservation)<\/li>\n<li>Pay all, in part, or nothing up front (more savings the more you pay up front)<\/li>\n<li>Some instances can be sold for a fee on the Marketplace<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #3366ff;\">Spot Instances<\/span><\/p>\n<ul>\n<li>&#8220;Name your price&#8221; purchasing option (save up to 90%)<\/li>\n<li>Can be interrupted, so plan accordingly (new pause feature for CS and M5)<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #3366ff;\">Low Utilization<\/span><\/p>\n<ul>\n<li>Set CloudWatch alarms to terminate underutilized instances\n<ul>\n<li>Example: 5% CPU utilization for 50 minutes<\/li>\n<\/ul>\n<\/li>\n<li>Find the right balance between availability and cost\n<ul>\n<li>Example: How much does 1 minute of downtime cost vs. the cost of eliminating that downtime?<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #3366ff;\">Unused Load Balancers<\/span><\/p>\n<ul>\n<li>Remove them<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #3366ff;\">\u00a0EBS Volumes<\/span><\/p>\n<ul>\n<li>EBS volumes cost money, even when not in use<\/li>\n<li>Delete unused volumes; take a snapshot if you want to keep the data\n<ul>\n<li>Snapshot storage is cheaper<\/li>\n<\/ul>\n<\/li>\n<li>Provisioned IOPS cost more\n<ul>\n<li>Make sure you&#8217;re not provisioning more than necessary<\/li>\n<\/ul>\n<\/li>\n<li>Downsize volumes that aren&#8217;t anywhere near full capacity<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #3366ff;\">Elastic IP Addresses<\/span><\/p>\n<ul>\n<li>EIPs cost money when <strong>not in use<\/strong> \u2014 associate them<\/li>\n<li>Having<strong> more than one<\/strong> EIP associated to an instance costs money<\/li>\n<li>ElPs on stopped instances cost an<strong> hourly fee<\/strong><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #3366ff;\">Idle Amazon RDS DB Instances<\/span><\/p>\n<ul>\n<li>Snapshot unused DB instances, and delete them (0 connections over time)<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[75],"tags":[],"_links":{"self":[{"href":"http:\/\/miro.borodziuk.eu\/index.php\/wp-json\/wp\/v2\/posts\/3161"}],"collection":[{"href":"http:\/\/miro.borodziuk.eu\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/miro.borodziuk.eu\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/miro.borodziuk.eu\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/miro.borodziuk.eu\/index.php\/wp-json\/wp\/v2\/comments?post=3161"}],"version-history":[{"count":1,"href":"http:\/\/miro.borodziuk.eu\/index.php\/wp-json\/wp\/v2\/posts\/3161\/revisions"}],"predecessor-version":[{"id":3162,"href":"http:\/\/miro.borodziuk.eu\/index.php\/wp-json\/wp\/v2\/posts\/3161\/revisions\/3162"}],"wp:attachment":[{"href":"http:\/\/miro.borodziuk.eu\/index.php\/wp-json\/wp\/v2\/media?parent=3161"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/miro.borodziuk.eu\/index.php\/wp-json\/wp\/v2\/categories?post=3161"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/miro.borodziuk.eu\/index.php\/wp-json\/wp\/v2\/tags?post=3161"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}