{"id":80338,"date":"2021-12-08T00:03:08","date_gmt":"2021-12-08T05:33:08","guid":{"rendered":"https:\/\/www.whizlabs.com\/blog\/?p=80338"},"modified":"2021-12-11T23:13:53","modified_gmt":"2021-12-12T04:43:53","slug":"google-cloud-cost-optimization","status":"publish","type":"post","link":"https:\/\/www.whizlabs.com\/blog\/google-cloud-cost-optimization\/","title":{"rendered":"Top 9 Google Cloud Cost Optimization Ideas &#8211; Save upto 40% on Cloud Spend"},"content":{"rendered":"<p>In this article, we are going to learn about how you can adjust to new billing concepts with the cloud and take advantage of some new Google Cloud Cost Optimizations. In cloud costs, no customer wants to spend more than they need on their cloud investment.<\/p>\n<p>It should be no surprise that using any cloud resource tends to cost money. When it comes to managing your Google Cloud costs, you have to understand what your cloud costs are, put controls in place so you don\u2019t overspend and then optimize your costs from there.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_76 ez-toc-wrap-left counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #ea7e02;color:#ea7e02\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #ea7e02;color:#ea7e02\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.whizlabs.com\/blog\/google-cloud-cost-optimization\/#Why_Google_Cloud_Cost_Optimization\" >Why Google Cloud Cost Optimization?<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.whizlabs.com\/blog\/google-cloud-cost-optimization\/#Understanding_of_the_Cost_Spent\" >Understanding of the Cost Spent<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.whizlabs.com\/blog\/google-cloud-cost-optimization\/#Resource_optimization_with_Active_Assist\" >Resource optimization with Active Assist<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.whizlabs.com\/blog\/google-cloud-cost-optimization\/#Cost_Optimization_Recommendations\" >Cost Optimization Recommendations<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.whizlabs.com\/blog\/google-cloud-cost-optimization\/#Analyzing_the_Billing_to_Optimize_the_cost\" >Analyzing the Billing to Optimize the cost<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.whizlabs.com\/blog\/google-cloud-cost-optimization\/#Sustained_Use_Discounts\" >Sustained Use Discounts<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.whizlabs.com\/blog\/google-cloud-cost-optimization\/#Committed_Use_Discounts\" >Committed Use Discounts<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.whizlabs.com\/blog\/google-cloud-cost-optimization\/#Automatic_Recommendation_for_VM_Instance\" >Automatic Recommendation for VM Instance<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.whizlabs.com\/blog\/google-cloud-cost-optimization\/#Stopping_the_instance_when_not_in_use\" >Stopping the instance when not in use<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.whizlabs.com\/blog\/google-cloud-cost-optimization\/#Pre-emptible_VMs\" >Pre-emptible VMs<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/www.whizlabs.com\/blog\/google-cloud-cost-optimization\/#Conclusion\" >Conclusion<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Why_Google_Cloud_Cost_Optimization\"><\/span>Why Google Cloud Cost Optimization?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>First step in optimizing is to understand what cost lever you have in your control. Some of the obvious benefits of optimizing your cloud spend are<\/p>\n<ul>\n<li>The cost can creep up quickly if you&#8217;re not monitoring closely<\/li>\n<li>You will gain a better visibility in your cloud spend when you start optimizing<\/li>\n<li>Google cloud cost optimization process will also help you understand which department is spending the most and compare it against the benefit you are getting.<\/li>\n<li>Overall, you can save upto 40% if you closely monitor your cloud spend and keep it optimized.<\/li>\n<\/ul>\n<p><strong>Let\u2019s see how you can understand your Google cloud costs and optimize the cost spent in Google Cloud.<\/strong><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Understanding_of_the_Cost_Spent\"><\/span>Understanding of the Cost Spent<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Let\u2019s look at all the tools available to you to enhance the visibility and governance at all layers. The three areas of Predictable Cloud costs are<\/p>\n<ul>\n<li>Visibility<\/li>\n<li>Accountability<\/li>\n<li>Control<\/li>\n<\/ul>\n<p><strong>Visibility<\/strong>: Within visibility you have built-in reports, cost breakdown and cost table to provide all the information you need in terms of usage and cost. Bigquery Billing Export helps you to analyze historical datas and trends.<\/p>\n<ul>\n<li>Built-in reports<\/li>\n<li>Cost Breakdown<\/li>\n<li>Cost table<\/li>\n<li>Bigquery Billing Exports<\/li>\n<\/ul>\n<p><strong>Accountability<\/strong> : For accountability, resource hierarchy and labeling are extremely powerful ways to allocate cost or business units. This should be standardized and enforced systematically.<\/p>\n<p>With this tool, you should be able to identify all the costs that make up your services. If you don\u2019t want everyone to see your organization cost, Google Cloud provides granular permissions that fits your needs.<\/p>\n<ul>\n<li>Resource Hierarchy<\/li>\n<li>Labels<\/li>\n<li>Billing access controls<\/li>\n<\/ul>\n<p><strong>Controlling the cost<\/strong>: Moving on to controlling your cost, you can easily identify the slightest leak of your cloud cost by using Budget and alerting features.<\/p>\n<p>If you suddenly see the spike of cost coming from a non-production environment, you have the ability to be proactive and get alerted on the forecasted increase of cost before the damage is done.<\/p>\n<p>Quotas helps you to manage resources by preventing unforeseen spikes in usage and limits you with particular services.<\/p>\n<ul>\n<li>Budget and Alerts<\/li>\n<li>Quotas<\/li>\n<\/ul>\n<h3><span class=\"ez-toc-section\" id=\"Resource_optimization_with_Active_Assist\"><\/span>Resource optimization with Active Assist<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>If you haven\u2019t heard of <strong>Active Assist<\/strong>, it is unlocking Google magic across your cloud deployment. Google uses their specialties around Data analysis and Machine learning to provide you better recommendations based on your usage.<\/p>\n<p>When it comes to small and large organizations, it\u2019s easy to spin up resources and forget about it. So, in this case, Active Assist will analyze ideal instances and disks for you. If it doesn\u2019t provide any business value, you can quickly optimize your cost by turning it off or just deleting that resource.<\/p>\n<p>Active Assist helps you to maximize these opportunities and suggest right sizing to further reduce your cost. For heavy users of Bigquery, Active Assist will recommend the best billing model based on your usage.<\/p>\n<p>In addition to Google Cloud Cost Optimization, it can also help your infrastructure to be more reliable, secure and perform. If you have a Premium support plan, it offers <strong>Recommender API<\/strong>, allowing you to build powerful integrations and adopt recommendations at scale.<\/p>\n<p>Recommendations are fully automated and appear contextually as you are managing different resources across Google Cloud. Google\u2019s optimization suggestions can help you run smoothly, increase your security and help you towards your business goals.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Cost_Optimization_Recommendations\"><\/span>Cost Optimization Recommendations<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Google Cloud Cost Optimization can be splitted into different services based upon their usage and their needs. Prioritizing their recommendation is important because there are hundreds of ways you can run leaner and save some cost, some of them are shown in the following<\/p>\n<ul>\n<li>Compute Optimizations<\/li>\n<li>Storage Optimizations<\/li>\n<li>BigQuery Optimizations<\/li>\n<li>Pricing Efficiency<\/li>\n<\/ul>\n<p><strong>Compute Optimizations<\/strong>: For Compute optimization, the best way is to get rid of ideal Cloud resources which doesn\u2019t provide any business value. This saves nearly 100% from the total cost. Autoscaling helps you to scale the resources up and down based on user activity.<\/p>\n<p>Google Cloud offers <strong>Custom Machine Type<\/strong> to customize your machine by selecting the exact number of Cores and RAM for your workload.<\/p>\n<p>Some of the common process that needs to followed in Compute Services for Cost Optimization are<\/p>\n<ul>\n<li>Ideal VM Recommendations<\/li>\n<li>Right Sizing VMs<\/li>\n<li>VM Scheduler<\/li>\n<li>Custom Machine Type<\/li>\n<li>Pre-emptible VMs<\/li>\n<li>Committed Use Discounts for VMs<\/li>\n<\/ul>\n<p><strong>Storage Optimizations<\/strong> : Google Cloud Storage offers Object Lifecycle Management to automatically delete the object after a certain period of time. Object versioning helps you to restore the older version of an object in Google Cloud Storage.<\/p>\n<p>Cloud Storage has four different Storage Classes like Standard, Nearline, Coldline and Archive, each one has different costs based on the user needs.<\/p>\n<p>Some of the common process that needs to be followed to save cost in cloud storage are<\/p>\n<ul>\n<li>Object Lifecycle Management<\/li>\n<li>Object Versioning<\/li>\n<li>Snapshot retention<\/li>\n<li>Storage class<\/li>\n<\/ul>\n<p><strong>BigQuery Optimizations<\/strong>: When you run a Query in BigQuery, it provides a blazing fast output by using advanced analytics. Instead of querying SELECT * from, you can mention that particular column present in the table to save the cost.<\/p>\n<p>The best practices to be followed in BigQuery to save up the cost are<\/p>\n<ul>\n<li>Keep your data only as long as you need it.<\/li>\n<li>Avoid duplication of data<\/li>\n<li>BigQuery Caching<\/li>\n<li>SELECT * is the most expensive way to query data<\/li>\n<li>Partition your tables<\/li>\n<\/ul>\n<p><strong>Pricing Efficiency<\/strong>: The easier way to reduce the Google Cloud Cost is, adding the Compute machine in Commitment for at least 1 or 3 year term.<\/p>\n<ul>\n<li>Sustained Use Discounts<\/li>\n<li>Committed Use Discounts<\/li>\n<\/ul>\n<h3><span class=\"ez-toc-section\" id=\"Analyzing_the_Billing_to_Optimize_the_cost\"><\/span>Analyzing the Billing to Optimize the cost<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>The best way to understand your Google Cloud costs is to use the billing reports available in the cloud console.<\/p>\n<p>By using the left navigation, you need to click on the <strong>Billing<\/strong> and then choose your linked billing account.<\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/Google-Cloud-Billing-Tab--274x300.png\" class=\"aligncenter size-medium wp-image-80377\" width=\"274\" height=\"300\" alt=\"Google-Cloud-Billing-Tab\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/Google-Cloud-Billing-Tab--274x300.png 274w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/Google-Cloud-Billing-Tab--383x420.png 383w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/Google-Cloud-Billing-Tab-.png 439w\" sizes=\"(max-width: 274px) 100vw, 274px\" \/><\/p>\n<p>Once you click on the Billing account you will get the Overview page. Overview page provides you the total cost of each and every month.<\/p>\n<p>It also provides you the Cost trend which can be used to analyze the average monthly total cost spent.<\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/GCP-Billing-Overview.png\" class=\"aligncenter wp-image-80378\" alt=\"GCP Billing Overview\" width=\"567\" height=\"438\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/GCP-Billing-Overview.png 636w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/GCP-Billing-Overview-300x232.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/GCP-Billing-Overview-544x420.png 544w\" sizes=\"(max-width: 567px) 100vw, 567px\" \/><\/p>\n<p>Select the Billing account attached with the project and click on the <strong>Reports<\/strong> tab to analyze the cost breakdown from each and every service.<\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/GCP-Billing-Reports-177x300.png\" class=\"aligncenter size-medium wp-image-80379\" width=\"177\" height=\"300\" alt=\"GCP Billing Reports\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/GCP-Billing-Reports-177x300.png 177w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/GCP-Billing-Reports-248x420.png 248w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/GCP-Billing-Reports.png 253w\" sizes=\"(max-width: 177px) 100vw, 177px\" \/><\/p>\n<p>Here, you will be able to see your costs broken down by project. So, you can quickly analyze where the costs are coming from.<\/p>\n<p>In addition, you can group costs by product to see which Google Cloud services are making up your costs. And then filter by <strong>SKUs<\/strong> to see a more detailed breakdown of your usage.<\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/SKUs-in-Billing.png\" class=\"aligncenter wp-image-80380\" alt=\" SKUs in Billing\" width=\"750\" height=\"347\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/SKUs-in-Billing.png 1083w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/SKUs-in-Billing-300x139.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/SKUs-in-Billing-1024x474.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/SKUs-in-Billing-768x355.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/SKUs-in-Billing-908x420.png 908w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/SKUs-in-Billing-640x296.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/SKUs-in-Billing-681x315.png 681w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/p>\n<p>So that\u2019s how you can get a better understanding of your costs. Now let\u2019s look at some ways to optimize your costs for Compute Engine.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Sustained_Use_Discounts\"><\/span>Sustained Use Discounts<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Compute Engine automatically applies discounts for running a virtual machine over a sustained period of time. These are called Sustained use discounts and it doesn&#8217;t require any configuration to enable.<\/p>\n<p>You can <strong>save upto 30%<\/strong> on a virtual machine running over a period of month by using sustained use discounts.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Committed_Use_Discounts\"><\/span>Committed Use Discounts<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>If you know that you will be using resources over a long period of time, you can save even more by using committed use discounts. These are great for static workloads where you have consistent resource usage like multiple production machines.<\/p>\n<p>Committed Use Discounts is available for Compute Engine Resources like vCPU, RAM, GPU, local SSD and sole tenant. If there is a certain amount you know that you will always be running, you need to sign up for Commitments for atleast 1 or 3 year term.<\/p>\n<p>This can <strong>save upto 57%<\/strong> of your Total costs. Commitments can be made per project or span across entire billing account<\/p>\n<p>If you actually want to purchase a commitment, click on the <strong>Compute Engine<\/strong> tab in the navigation menu and choose the <strong>Committed Use Discounts<\/strong> option.<\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/Committed-Use-Discounts-GCP.png\" class=\"aligncenter size-full wp-image-80381\" alt=\"Committed Use Discounts GCP\" width=\"258\" height=\"340\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/Committed-Use-Discounts-GCP.png 258w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/Committed-Use-Discounts-GCP-228x300.png 228w\" sizes=\"(max-width: 258px) 100vw, 258px\" \/><\/p>\n<p>Then click on <strong>Purchase Commitment<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/Purchase-Commit-GCP.png\" class=\"aligncenter size-full wp-image-80382\" alt=\" Purchase Commit GCP\" width=\"617\" height=\"185\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/Purchase-Commit-GCP.png 617w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/Purchase-Commit-GCP-300x90.png 300w\" sizes=\"(max-width: 617px) 100vw, 617px\" \/><\/p>\n<p>Once you click on the Purchase Commitment tab you will get the below screen. Here, you need to enter the name, region, machine type and total duration of the commitment.<\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/Committed-Overview-GCP.png\" class=\"aligncenter size-full wp-image-80383\" alt=\" Committed Overview GCP\" width=\"638\" height=\"318\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/Committed-Overview-GCP.png 638w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/Committed-Overview-GCP-300x150.png 300w\" sizes=\"(max-width: 638px) 100vw, 638px\" \/><\/p>\n<p>Then enter the number of<strong> Cores<\/strong> and <strong>Memory<\/strong> of that particular machine type. If required you can add GPU and Local SSD. Then finally click on the<strong> Purchase<\/strong> button to Commit.<\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/Committed-Overview-GCP2.png\" class=\"aligncenter size-full wp-image-80384\" alt=\"Committed-Overview-GCP2\" width=\"465\" height=\"483\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/Committed-Overview-GCP2.png 465w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/Committed-Overview-GCP2-289x300.png 289w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/Committed-Overview-GCP2-404x420.png 404w\" sizes=\"(max-width: 465px) 100vw, 465px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Automatic_Recommendation_for_VM_Instance\"><\/span>Automatic Recommendation for VM Instance<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Google Cloud automatically provides recommendations for machines and disks that may be idle or underutilized. Click on <strong>Compute Engine<\/strong> in the navigation menu.<\/p>\n<p>In the recommendation column, you can see suggestions for each VM based on its historic resource usage. Applying these recommendations can provide an easy way to save on long term usage.<\/p>\n<p>By clicking on the <strong>Save recommendation, <\/strong>you can customize your VM instance based on the workload.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/Recommended-Instance-in-GCP.png\" class=\"aligncenter size-full wp-image-80385\" alt=\"Recommended Instance in GCP\" width=\"419\" height=\"129\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/Recommended-Instance-in-GCP.png 419w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/Recommended-Instance-in-GCP-300x92.png 300w\" sizes=\"(max-width: 419px) 100vw, 419px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Stopping_the_instance_when_not_in_use\"><\/span>Stopping the instance when not in use<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>If the machines are already in the right size, but there are times when you don\u2019t need them, you can also stop the VM instance to save the money. When a VM is stopped, you don\u2019t need to pay for the Cores and RAM running.<\/p>\n<p>In a use case like, you may be running a test environment that you don\u2019t need outside of core business hours. So, it can be shut off or you can even use some quick Cloud Function code and Cloud Scheduler to turn your VMs on and off automatically.<\/p>\n<p>To stop the VM you need to select the instance and click on the three dots, then choose the <strong>Stop<\/strong> Option.<\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/Stopping-the-VM.png\" class=\"aligncenter wp-image-80386\" alt=\" Stopping the VM\" width=\"690\" height=\"239\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/Stopping-the-VM.png 1017w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/Stopping-the-VM-300x104.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/Stopping-the-VM-768x267.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/Stopping-the-VM-640x222.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/Stopping-the-VM-681x236.png 681w\" sizes=\"(max-width: 690px) 100vw, 690px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Pre-emptible_VMs\"><\/span>Pre-emptible VMs<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Depending on the type of workload you are running, you may also benefit from using different types of instances and Pre-emptible VMs.<\/p>\n<p>The new generation of E2 general purpose machines can give you a similar performance to the N1 series while also saving your money.<\/p>\n<p>Leveraging Pre-emptible instances is a great way to run stateless workloads that are time sensitive like media transcoding. They have a maximum up-time of upto 24 hours before they are deleted, but they are 80% cheaper.<\/p>\n<p>You can choose Pre-emptible when making new compute instances. To choose the Pre-emptible instance, you need to select the <strong>Create Instance<\/strong> tab.<\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/Creating-an-Instance-in-GCP.png\" class=\"aligncenter size-full wp-image-80387\" alt=\"Creating an Instance in GCP\" width=\"475\" height=\"98\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/Creating-an-Instance-in-GCP.png 475w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/Creating-an-Instance-in-GCP-300x62.png 300w\" sizes=\"(max-width: 475px) 100vw, 475px\" \/><\/p>\n<p>After choosing the machine family and machine size, you need to expand the <strong>Networking <\/strong>tab.<\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/Networking-Tab-in-GCP.png\" class=\"aligncenter size-full wp-image-80388\" alt=\"Networking Tab in GCP\" width=\"424\" height=\"32\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/Networking-Tab-in-GCP.png 424w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/Networking-Tab-in-GCP-300x23.png 300w\" sizes=\"(max-width: 424px) 100vw, 424px\" \/><\/p>\n<p>By default, Pre-emptible machines will be automatically turned off under the <strong>Management <\/strong>tab<strong>.<\/strong> It can be enabled manually by selecting the drop-down menu.<\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/Pre-emptible-Instance-in-GCP.png\" class=\"aligncenter size-full wp-image-80389\" alt=\"Pre-emptible Instance in GCP\" width=\"532\" height=\"326\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/Pre-emptible-Instance-in-GCP.png 532w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/Pre-emptible-Instance-in-GCP-300x184.png 300w\" sizes=\"(max-width: 532px) 100vw, 532px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Every workload is different, so it&#8217;s important to understand what resources you need to use and which tools you can use to optimize your Google Cloud Costs based on your unique needs.<\/p>\n<p>Start with your billing reports to understand your costs and then see which of these Google Cloud Cost Optimization suits best for you. I hope this helps you about more ways to manage and optimize your Google Cloud costs.<\/p>\n<p>To conclude, better don\u2019t wait for the traditional monthly or quarterly review of cost, instead of that review your cost as frequently as daily. In the next blog we are going to publish a lot more articles on Google Cloud. Till that stay tuned with us!!!<\/p>\n<p>Happy Learning!!!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article, we are going to learn about how you can adjust to new billing concepts with the cloud and take advantage of some new Google Cloud Cost Optimizations. In cloud costs, no customer wants to spend more than they need on their cloud investment. It should be no surprise that using any cloud resource tends to cost money. When it comes to managing your Google Cloud costs, you have to understand what your cloud costs are, put controls in place so you don\u2019t overspend and then optimize your costs from there. Why Google Cloud Cost Optimization? First step [&hellip;]<\/p>\n","protected":false},"author":352,"featured_media":80376,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[10,12],"tags":[604,4785,4786,789,4787],"class_list":["post-80338","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cloud-computing-certifications","category-google-cloud","tag-cloud-computing","tag-cloud-cost","tag-cost-optimization","tag-google-cloud","tag-recommendation-tools"],"uagb_featured_image_src":{"full":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/Tips-for-Google-Cloud-Cost-Optimization.jpg",600,315,false],"thumbnail":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/Tips-for-Google-Cloud-Cost-Optimization-150x150.jpg",150,150,true],"medium":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/Tips-for-Google-Cloud-Cost-Optimization-300x158.jpg",300,158,true],"medium_large":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/Tips-for-Google-Cloud-Cost-Optimization.jpg",600,315,false],"large":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/Tips-for-Google-Cloud-Cost-Optimization.jpg",600,315,false],"1536x1536":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/Tips-for-Google-Cloud-Cost-Optimization.jpg",600,315,false],"2048x2048":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/Tips-for-Google-Cloud-Cost-Optimization.jpg",600,315,false],"profile_24":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/Tips-for-Google-Cloud-Cost-Optimization.jpg",24,13,false],"profile_48":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/Tips-for-Google-Cloud-Cost-Optimization.jpg",48,25,false],"profile_96":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/Tips-for-Google-Cloud-Cost-Optimization.jpg",96,50,false],"profile_150":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/Tips-for-Google-Cloud-Cost-Optimization.jpg",150,79,false],"profile_300":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/Tips-for-Google-Cloud-Cost-Optimization.jpg",300,158,false],"tptn_thumbnail":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/Tips-for-Google-Cloud-Cost-Optimization-250x250.jpg",250,250,true],"web-stories-poster-portrait":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/Tips-for-Google-Cloud-Cost-Optimization.jpg",600,315,false],"web-stories-publisher-logo":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/Tips-for-Google-Cloud-Cost-Optimization.jpg",96,50,false],"web-stories-thumbnail":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/12\/Tips-for-Google-Cloud-Cost-Optimization.jpg",150,79,false]},"uagb_author_info":{"display_name":"Jagan PJ","author_link":"https:\/\/www.whizlabs.com\/blog\/author\/jagan-pj\/"},"uagb_comment_info":0,"uagb_excerpt":"In this article, we are going to learn about how you can adjust to new billing concepts with the cloud and take advantage of some new Google Cloud Cost Optimizations. In cloud costs, no customer wants to spend more than they need on their cloud investment. It should be no surprise that using any cloud&hellip;","_links":{"self":[{"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/posts\/80338","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/users\/352"}],"replies":[{"embeddable":true,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/comments?post=80338"}],"version-history":[{"count":12,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/posts\/80338\/revisions"}],"predecessor-version":[{"id":80393,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/posts\/80338\/revisions\/80393"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/media\/80376"}],"wp:attachment":[{"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/media?parent=80338"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/categories?post=80338"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/tags?post=80338"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}