https://www.techtarget.com/searchcloudcomputing/tip/Google-Cloud-cost-optimization-best-practices
When enterprises are researching service providers before migration or even starting a new implementation project in cloud, cost is always a consideration. While workloads may seem inexpensive initially, nothing is ever "set it and forget it."
It's up to enterprises to build the internal processes and playbooks to bring cloud and financial teams together to make the best use of Google Cloud. Fortunately, Google Cloud offers tools and best practices for cloud cost optimization. See how using discounted VMs, resource hierarchies, alerts, quotas and recommendation services can help improve spending.
In Google Cloud, users can choose discounted VMs, such as preemptible and Spot. A preemptible VM is the same as a Compute Engine VM except that Google Cloud has the right to terminate it after giving 30 seconds' notice. While preemptible VMs are still available and supported, Spot VMs are the latest version offering a 60% to 91% discount compared to the price of standard VMs.
These options are cost-effective for running short-lived or fault-tolerant workloads, such as batch processing or testing. Google Cloud enables a time limit and options for VM termination for provisioning preemptible VMs, which can be used in Kubeflow pipelines.
Google Cloud has a function to create, edit or delete budgets and budget alerts using native console tools. The first step is to get the cloud and financial stakeholders together to set clear goals and expectations for an organization's cloud spending. Then, document it for future reference and updates. Taking these preliminary steps ensures that the budget aligns with the realities of the business. The following are some recommendations to consider:
Users have the option to take advantage of Google Cloud Recommender, which is a service that provides recommendations and insights for using resources. Recommendations come from machine learning models that analyze usage patterns, resource configurations and other factors to identify opportunities for optimization. Following recommendations can help right-size resources, optimize configurations and automate tasks. Common recommendations include the following:
Runaway usage is a common culprit in higher and unexpected cloud costs. Setting quotas prevents overprovisioning and overconsumption of resources that could lead to unforeseen or unnecessary expenses.
Quotas can also become foundational to an overall cloud cost optimization strategy. Setting usage quotas as a project requirement encourages your developers and solution architects to use cloud resources more efficiently. In turn, this makes recycling or deleting unused cloud resources a reality across a cloud portfolio, leading to further cost savings.
Google Cloud offers cost allocation by hierarchy, via tagging, which allots costs to specific departments or projects. It also gives a view across all the spending in a Google Cloud account. This enterprise-level view helps teams identify areas for optimization and enables them to assign budgets more accurately. This can also improve collaboration between cloud and financial groups.
Allocating costs to specific departments or projects makes it feasible to do chargebacks for internal services. It also enables you to monitor cloud spending on a project basis, whether for internal or external customers. Users have access to the Google Cloud Billing API, which enables the automation of cost allocation and management tasks and reduces manual intervention in the cost management lifecycle.
20 Jul 2023