If your business has a presence on Google Cloud Platform (GCP), it is likely you are constantly battling to drive down GCP costs. Our eBook offers practical advice on how you can reduce GCP bills by applying cost-saving measures and then taking advantage of policy-driven automation to maintain lower GCP bills.
Despite Google Cloud Platform being cheaper than AWS in many circumstances, businesses can still find themselves in a battle to drive down GCP costs. Part of the battle is attributable to the misconception you only pay for what you use in the cloud, whereas what you actually pay for is what you provision. Consequently, if you provision assets with more capacity than you need, or forget to stop/terminate assets and their components when you have finished using them, GCP costs continue to accrue.
There are also costs associated with deploying assets on GCP you may not be aware of, or you may have deployed assets with components that are individually inexpensive to run, but cumulatively drive up costs beyond an acceptable level.
8 Tips to Drive Down GCP Costs
Before attempting to take advantage of our tips in order to drive down GCP costs, we recommend you have visibility of your Google Cloud environment. Depending on how many assets you have deployed in Google Cloud, it may be possible to get away with using a tool such as Stackdriver. However, due to Stackdriver’s limitations, we recommend using our CloudHealth cloud management platform if you have a significant presence on Google Cloud in order to ensure total visibility.
1. Delete Unattached Block Storage Discs
When you launch a Virtual Machine (VM) in Google Compute Engine, a block storage disc is usually attached to the VM. When the VM is terminated, the disc can continue running even though it isn’t attached to anything. Unattached block storage discs need to be identified and terminated immediately.
2. Delete Obsolete Snapshots
Snapshots are a good example of assets that are individually inexpensive, but that can drive up GCP costs if they’re allowed to accumulate. Our second tip to drive down GCP costs is to identify obsolete snapshots that no longer serve a useful purpose and delete them.
3. Delete Disassociated IP Addresses
IP addresses are assigned to VMs so they can communicate with other resources and be accessed via the Internet. When you reserve a static external IP address, there’s no charge when you are using it; but, as soon as it is no longer being used, Google charges for it. Best to locate and delete them.
4. Terminate Zombie Assets
Zombie assets are infrastructure components that are running in your cloud environment but not being used for any purpose. Typically they’re components attached to a VM that failed to load, but they can also include idle load balancers and SQL databases. Again, locate and terminate them.
5. Rightsize Compute Engine VMs
The overprovisioning of Compute Engine VMs is a common cause of higher-than-anticipated GCP bills and can be deliberate due to developers giving their applications a little “wiggle room”, or accidental due to the performance requirements of a workload not being known.
6. Put Non-Production VMs on a Schedule
Scheduling non-production VMs to run only during normal working hours can save a business more than 65% on the cost of QA, development, staging, and testing. Some businesses save more than 80% on the cost of non-production VMs by using utilization data to apply more aggressive schedules.
7. Take Advantage of Committed Use Discounts
If your business runs VMs with predictable workloads around the clock, it’s possible to save up to 57% on Pay-as-You-Go GCP pricing by committing to a one-year or three-year level of service. No upfront payments are required to take advantage of these discounts, so they’re well worth investigating.
8. Migrate Cold Data to Lower Cost Storage
Google Cloud Platform offers different tiers of storage depending on how often data is accessed and the speed at which you would want to access it (for example if it was required for data recovery). A lot of infrequently accessed data can be migrated to lower-cost storage to drive down GCP costs.
Maintaining Lower GCP Costs
Driving down GCP costs has to be ongoing to extract any real benefit from our 8 tips above; however, it isn’t humanly possible to monitor your cloud environment around the clock to ensure every opportunity is taken to drive down GCP costs. The solution is to automate monitoring with CloudHealth policies. Policies can be applied to costs, performance, and the security of your GCP environment; and, if a policy violation occurs, you’re immediately notified by the CloudHealth platform.