How to Find and Resize GCP Instances with Low CPU Usage
Optimize your GCP resources by monitoring instances with low CPU usage. Learn how to resize them and reduce cloud costs in this guide.
Optimize your GCP resources by monitoring instances with low CPU usage. Learn how to resize them and reduce cloud costs in this guide.
Matching your investment in computing resources with your engineering and business needs is a constant evolution. As you gather and monitor usage data, you can make iterative adjustments to improve the efficiency of your infrastructure.
For example, one way to optimize your resources in Google Cloud is by looking for GCP instances that are operating at a low usage rate.
Low CPU usage can be an indicator that you have an opportunity to better size your instance and lower your cloud costs. In this guide, we’ll walk you through the steps to find these low usage instances and make adjustments.
First, CPU usage, or utilization, refers to the computing resources used by a given utility or machine over a period of time. For example, AWS defines low usage to be less than 40% maximum CPU and memory usage over the last four-weeks.
For GCP, there isn’t a universally recommended level, but it’s worth considering any instances whose average CPU utilization is below 35%, and especially if it is below 20%. For the purposes of optimizing your resource allocation, it’s most important to select a benchmark and monitor it consistently.
In a GCP ecosystem, resizing GCP instances is not only a matter of site reliability engineering but also a business priority. Querying, or identifying, your GCP compute instances with low CPU utilization is a performance management task that should be informed also by your organization's unique engineering and business considerations.
Understanding how your CPU performs across different VM deployments starts with performance monitoring and management. To do this, you need to:
Once you've identified which VMs are under-utilized, over-utilized, or used optimally according to your actual needs, you should resize underutilized VMs.
One of the most convenient and cost-effective ways is to change the machine type, but you can only do this for a stopped VM (in TERMINATED state). That means that you should consider which VMs — and therefore which resources — are a priority for your immediate, short-term, and long-term needs and plans.
To change GCP instances, you need to:
Resizing GCP instances is not a one-time job, but a process that evolves in response to your changing engineering and business considerations.
By adopting a CloudOps automation platform, you can ensure that CPU performance monitoring and cost management is not a single task but a seamless operation performed regularly.
Blink is a no-code platform that makes it easy to run checks with automations like this one:
When this automation runs, it does the following steps:
It's a simple automation, and that makes it easy to customize. For example, add an approval step to take action on certain instances or send the report via Slack instead.
You can gather information from your tools fast and make repeatable decisions easily.
Get started with Blink today and see just how easy automation can be.
Blink is secure, decentralized, and cloud-native. Get modern cloud and security operations today.