{"id":3591,"date":"2022-07-18T08:02:34","date_gmt":"2022-07-18T02:32:34","guid":{"rendered":"https:\/\/navveenbalani.dev\/?p=3591"},"modified":"2022-07-18T22:23:38","modified_gmt":"2022-07-18T16:53:38","slug":"cloud-cost-optimization","status":"publish","type":"post","link":"https:\/\/navveenbalani.dev\/index.php\/articles\/cloud-cost-optimization\/","title":{"rendered":"Cloud Cost Optimization &#8211; how to save on Cloud Costs"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">Cloud optimisation is an continuous process to cut down on cloud resources not being used and save on cloud cost substantially\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Here are some of the few basic optimization steps that you could follow for your cloud projects. The strategy works for across cloud providers.<\/span><\/p>\n<p><span style=\"font-weight: 400;\"><strong>Logs management<\/strong> &#8211;\u00a0 The storage for logs can grow exponentially, especially if you have central logging enabled. This is across environments (dev, test, prod etc).<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The first step is to get a tab of log storage being used and filter out logs not being used. For instance, apart from log levels , you can filter out default service logs. Each environment can have a different log optimization strategy. For instance, for Google cloud you can exclude Google Kubernetes Engine container and pod logs based on GKE internal namespaces i.e knative-serving etc.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">For reference look at &#8211;\u00a0<\/span><a href=\"https:\/\/cloud.google.com\/logging\/docs\/export\/configure_export_v2#exclude_container_and_pod_logs\"><span style=\"font-weight: 400;\">https:\/\/cloud.google.com\/logging\/docs\/export\/configure_export_v2#exclude_container_and_pod_logs<\/span><\/a><\/p>\n<p><span style=\"font-weight: 400;\"><strong>Network optimization<\/strong> &#8211; Keep a tab of network resources that are lying idle. For instance, Static IPs not associated with a resource adds to your cloud cost. Usually deleting a resource using the static ip, doesn\u2019t delete the static ip and you many not realise this unless you look at the cloud bills in detail<\/span><\/p>\n<p><span style=\"font-weight: 400;\"><strong>Idle resource management<\/strong> &#8211; Build out a calendar to automate shutting down non-production resources when not-in use (i.e based on non-office hours, weekends). For instance, you can also suspend\/hibernate the VM, you will be charged only for storage costs. Here is a AWS reference on using Lambda to turn off resources <\/span><span style=\"font-weight: 400;\">&#8211;<\/span><a href=\"https:\/\/aws.amazon.com\/premiumsupport\/knowledge-center\/start-stop-lambda-eventbridge\/\"><span style=\"font-weight: 400;\">https:\/\/aws.amazon.com\/premiumsupport\/knowledge-center\/start-stop-lambda-eventbridge\/<\/span><\/a><\/p>\n<p><span style=\"font-weight: 400;\"><strong>Turn on cloud recommendations<\/strong> &#8211; Each cloud provider provides certain\u00a0 recommendations to identify idle resources, oversized VMs etc.. For instance, Google Cloud has a Recommender API that provides a dashboard for these details.<\/span><\/p>\n<p><span style=\"font-weight: 400;\"><strong>Delete unwanted backups and snapshots<\/strong> &#8211; Automated database backups, storage and VM snapshots all add to the cloud cost. Each environment\u00a0 (dev, test, prod) needs a different strategy. Identify snapshots not required and delete them periodically.\u00a0<\/span><\/p>\n<p><a href=\"http:\/\/navveenbalani.dev\/wp-content\/uploads\/2022\/07\/cloud-cost-optimization.png\"><img loading=\"lazy\" class=\"alignleft size-large wp-image-3596\" src=\"http:\/\/navveenbalani.dev\/wp-content\/uploads\/2022\/07\/cloud-cost-optimization-1024x769.png\" alt=\"\" width=\"1024\" height=\"769\" srcset=\"https:\/\/navveenbalani.dev\/wp-content\/uploads\/2022\/07\/cloud-cost-optimization-1024x769.png 1024w, https:\/\/navveenbalani.dev\/wp-content\/uploads\/2022\/07\/cloud-cost-optimization-300x225.png 300w, https:\/\/navveenbalani.dev\/wp-content\/uploads\/2022\/07\/cloud-cost-optimization-768x577.png 768w, https:\/\/navveenbalani.dev\/wp-content\/uploads\/2022\/07\/cloud-cost-optimization-1536x1153.png 1536w, https:\/\/navveenbalani.dev\/wp-content\/uploads\/2022\/07\/cloud-cost-optimization.png 1582w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">The way you design cloud applications, what VMs you provision, choice of cloud services etc, strategy like multi-cloud also needs to be considered as part of the overall cloud optimization. These rules should also be part of Cloud FinOps. I will cover this in a future post.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Cloud optimisation is an continuous process to cut down on cloud resources not being used and save on cloud cost substantially\u00a0 Here are some of the few basic optimization steps that you could follow for your cloud projects. The strategy works for across cloud providers. Logs management &#8211;\u00a0 The storage for logs can grow exponentially, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3596,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[3,79,10],"tags":[311,312,310],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v16.0.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Cloud Cost Optimization - how to save on Cloud Costs - Current and Future Technology Trends by Navveen Balani<\/title>\n<meta name=\"description\" content=\"Cloud Cost Optimization - how to save on Cloud Costs - Articles\" \/>\n<link rel=\"canonical\" href=\"https:\/\/navveenbalani.dev\/index.php\/articles\/cloud-cost-optimization\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Cloud Cost Optimization - how to save on Cloud Costs - Current and Future Technology Trends by Navveen Balani\" \/>\n<meta property=\"og:description\" content=\"Cloud Cost Optimization - how to save on Cloud Costs - Articles\" \/>\n<meta property=\"og:url\" content=\"https:\/\/navveenbalani.dev\/index.php\/articles\/cloud-cost-optimization\/\" \/>\n<meta property=\"og:site_name\" content=\"Current and Future Technology Trends by Navveen Balani\" \/>\n<meta property=\"article:published_time\" content=\"2022-07-18T02:32:34+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-07-18T16:53:38+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/navveenbalani.dev\/wp-content\/uploads\/2022\/07\/cloud-cost-optimization.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1582\" \/>\n\t<meta property=\"og:image:height\" content=\"1188\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\">\n\t<meta name=\"twitter:data1\" content=\"2 minutes\">\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/navveenbalani.dev\/#website\",\"url\":\"https:\/\/navveenbalani.dev\/\",\"name\":\"Current and Future Technology Trends by Navveen Balani\",\"description\":\"Current and Future Technology Trends by Navveen Balani\",\"publisher\":{\"@id\":\"https:\/\/navveenbalani.dev\/#\/schema\/person\/51f7ab14b20611d95e3c7fd4ea0950bf\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/navveenbalani.dev\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/navveenbalani.dev\/index.php\/articles\/cloud-cost-optimization\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/navveenbalani.dev\/wp-content\/uploads\/2022\/07\/cloud-cost-optimization.png\",\"width\":1582,\"height\":1188},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/navveenbalani.dev\/index.php\/articles\/cloud-cost-optimization\/#webpage\",\"url\":\"https:\/\/navveenbalani.dev\/index.php\/articles\/cloud-cost-optimization\/\",\"name\":\"Cloud Cost Optimization - how to save on Cloud Costs - Current and Future Technology Trends by Navveen Balani\",\"isPartOf\":{\"@id\":\"https:\/\/navveenbalani.dev\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/navveenbalani.dev\/index.php\/articles\/cloud-cost-optimization\/#primaryimage\"},\"datePublished\":\"2022-07-18T02:32:34+00:00\",\"dateModified\":\"2022-07-18T16:53:38+00:00\",\"description\":\"Cloud Cost Optimization - how to save on Cloud Costs - Articles\",\"breadcrumb\":{\"@id\":\"https:\/\/navveenbalani.dev\/index.php\/articles\/cloud-cost-optimization\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/navveenbalani.dev\/index.php\/articles\/cloud-cost-optimization\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/navveenbalani.dev\/index.php\/articles\/cloud-cost-optimization\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/navveenbalani.dev\/\",\"url\":\"https:\/\/navveenbalani.dev\/\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"position\":2,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/navveenbalani.dev\/index.php\/articles\/cloud-cost-optimization\/\",\"url\":\"https:\/\/navveenbalani.dev\/index.php\/articles\/cloud-cost-optimization\/\",\"name\":\"Cloud Cost Optimization &#8211; how to save on Cloud Costs\"}}]},{\"@type\":\"Article\",\"@id\":\"https:\/\/navveenbalani.dev\/index.php\/articles\/cloud-cost-optimization\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/navveenbalani.dev\/index.php\/articles\/cloud-cost-optimization\/#webpage\"},\"author\":{\"@id\":\"https:\/\/navveenbalani.dev\/#\/schema\/person\/51f7ab14b20611d95e3c7fd4ea0950bf\"},\"headline\":\"Cloud Cost Optimization &#8211; how to save on Cloud Costs\",\"datePublished\":\"2022-07-18T02:32:34+00:00\",\"dateModified\":\"2022-07-18T16:53:38+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/navveenbalani.dev\/index.php\/articles\/cloud-cost-optimization\/#webpage\"},\"publisher\":{\"@id\":\"https:\/\/navveenbalani.dev\/#\/schema\/person\/51f7ab14b20611d95e3c7fd4ea0950bf\"},\"image\":{\"@id\":\"https:\/\/navveenbalani.dev\/index.php\/articles\/cloud-cost-optimization\/#primaryimage\"},\"keywords\":\"cloud-cost,cloud-cost-optimization,finops\",\"articleSection\":\"Articles,Cloud Computing,Featured\",\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/navveenbalani.dev\/#\/schema\/person\/51f7ab14b20611d95e3c7fd4ea0950bf\",\"name\":\"Navveen\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/navveenbalani.dev\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/navveenbalani.dev\/wp-content\/uploads\/2019\/07\/navveen_balani.jpeg\",\"width\":200,\"height\":200,\"caption\":\"Navveen\"},\"logo\":{\"@id\":\"https:\/\/navveenbalani.dev\/#personlogo\"},\"sameAs\":[\"http:\/\/naveenbalani.com\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","_links":{"self":[{"href":"https:\/\/navveenbalani.dev\/index.php\/wp-json\/wp\/v2\/posts\/3591"}],"collection":[{"href":"https:\/\/navveenbalani.dev\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/navveenbalani.dev\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/navveenbalani.dev\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/navveenbalani.dev\/index.php\/wp-json\/wp\/v2\/comments?post=3591"}],"version-history":[{"count":6,"href":"https:\/\/navveenbalani.dev\/index.php\/wp-json\/wp\/v2\/posts\/3591\/revisions"}],"predecessor-version":[{"id":3598,"href":"https:\/\/navveenbalani.dev\/index.php\/wp-json\/wp\/v2\/posts\/3591\/revisions\/3598"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/navveenbalani.dev\/index.php\/wp-json\/wp\/v2\/media\/3596"}],"wp:attachment":[{"href":"https:\/\/navveenbalani.dev\/index.php\/wp-json\/wp\/v2\/media?parent=3591"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/navveenbalani.dev\/index.php\/wp-json\/wp\/v2\/categories?post=3591"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/navveenbalani.dev\/index.php\/wp-json\/wp\/v2\/tags?post=3591"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}