Article

Announcing new idle VM recommendation configuration option in Google Cloud

June 23, 2023 17:52:53 WIB
image

Active Assist’s Idle VM recommendations can help you save money and resources by identifying and deleting idle VMs. Today, Google are excited to announce a new configuration option for idle Virtual Machine recommendations, giving you more control over how idle VMs are identified and recommended for deletion.

Google Cloud generates idle VM recommendations automatically based on system metrics gathered by the Cloud Monitoring service. Previously, the observation period for idle VM recommendations was fixed at 14 days. As such, no matter what kind of resources you monitored (development, test or production), you always got recommendations based on a two-week timeframe. That was a good approach for most workloads, but we heard from customers that they would like to adjust their configurations for different projects. 

With the new configuration option, you can now specify a different observation period, ranging from 1 day to 14 days. This gives you more flexibility to tune idle VM recommendations to meet your specific needs. For example, you can now

  • Use a shorter observation period if you want to be less conservative and potentially save more costs 
  • Use a longer observation period if you want to receive recommendations that are not affected by short-term fluctuations in your workload.

To configure the observation period for idle VM recommendations, you can use the observation_period parameter in the Idle Resource Recommendation API

HTTP method and URL example:

GET https://recommender.googleapis.com/v1/projects/your-project-number/locations/your-location/recommenders/google.compute.instance.IdleResourceRecommender/config

The command returns the recommender configuration, including the subfield that you can modify: params.observation_period:

{
  "name": "projects/project-number/locations/location/recommenders/google.compute.instance.IdleResourceRecommender/config",
  "recommenderGenerationConfig": {
    "params": {
      "observation_period": "1209600s",
    }
  },
  "etag": "\"2f3c9b65cda6a4ba\"",
  "updateTime": "2020-11-03T04:41:15.330351Z"
}

You can also use the gcloud recommender recommender-config update command.

For example, to set the observation period to 7 days (604800s), provide a configuration file with this value using the following command:

gcloud recommender recommender-config update \ google.compute.instance.IdleResourceRecommender \
--project=your_project_number --location=your_zone \
--etag=current_etag --config-file=config.json

Related News

Card image cap

Tertarik Migrasi ke Cloud? Ini Hal-hal yang Perlu Anda Ketahui Lebih Dulu

See Detail
Card image cap

Automatic data risk management for BigQuery using DLP

See Detail
Card image cap

Building AI in the cloud: An easier way with Google Cloud and NVIDIA

See Detail