[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-27。"],[[["\u003cp\u003eCompute Engine identifies idle virtual machines (VMs) that have been unused for 1 to 14 days to help reduce resource waste and lower compute costs.\u003c/p\u003e\n"],["\u003cp\u003eIdle VM recommendations are generated automatically based on Cloud Monitoring service metrics, using CPU and network usage data.\u003c/p\u003e\n"],["\u003cp\u003eThe observation period for detecting idle VMs can be adjusted between 1 and 14 days to tailor recommendations to different workload patterns.\u003c/p\u003e\n"],["\u003cp\u003eIdle VM recommendations are provided free of charge, but are not available for VMs with local SSDs, GPUs/TPUs, App Engine flex resources, Dataflow resources, or Google Kubernetes Engine resources.\u003c/p\u003e\n"],["\u003cp\u003eIf you must keep an idle VM running, you can use machine type recommendations to help choose an optimal, potentially smaller, machine type.\u003c/p\u003e\n"]]],[],null,["*** ** * ** ***\n\nCompute Engine provides idle VM recommendations to help you identify\nvirtual machine (VM) instances that have not been used over the previous 1 to\n14 days. You can use idle VM recommendations to find and stop idle VM instances\nto reduce wasting resources and reduce your compute bill.\n\nCompute Engine generates recommendations automatically based on system\nmetrics gathered by the Cloud Monitoring service. You can configure idle VM\nrecommendations to receive more or fewer recommendations.\n\nThis page provides conceptual information on how Compute Engine generates\nidle VM recommendations and on the parameters you can use to configure them.\n\n- For more information on how to identify idle VMs and take action, see [View and apply idle VM recommendations](/compute/docs/instances/viewing-and-applying-idle-vm-recommendations).\n- For more information on how to configure idle VM recommendations, see [Configure idle VM recommendations](/compute/docs/instances/configuring-idle-vm-recommendations).\n\nPricing\n\nIdle VM recommendations are available free of charge. Using recommendations\nto reduce your resource usage can result in cost savings.\n\nLimitations\n\nFor standalone VMs, idle VM recommendations are not available in following cases:\n\n- Instances with local SSDs\n- Instances with GPU/TPUs\n- App Engine flex resources\n- Dataflow resources\n- Google Kubernetes Engine resources\n\nHow detection of idle VM instances works\n\nCompute Engine generates recommendations about idle VM instances based\non historical usage metrics. By default, the historical observation period is\n14 days, or, for new VMs, starting one day after VM creation.\nBy changing the default observation period, you can customize the\nrecommendations that you receive.\n\nTo generate recommendations, the algorithm considers the CPU and network usage\nin the last observation period.\nIf CPU and network usage are below predefined thresholds,\nthe Recommender classifies the VM as idle.\n| **Note:** Google designs the default thresholds so that if monitoring agents generate the majority of CPU and network usage, then your VM is classified as idle. The default threshold values that are currently used to classify a VM as idle might change in the future.\n\nFrequency of recommendations\n\nAfter a VM is created and running for at least one day during the\nobservation period, Compute Engine begins generating idle VM\nrecommendations for it.\nNew recommendations are generated once per day.\n\nRelation with machine type sizing recommendations\n\n[Machine type sizing recommendations](/compute/docs/instances/apply-sizing-recommendations-for-instances)\nrecommend the optimal size for a VM. You might receive a machine type\nrecommendation to downsize an idle VM.\n\nIf you must keep an idle VM running despite its low utilization, you can use\nmachine type recommendations to help you choose the optimal size for\nunderutilized VMs.\n\nCustomize recommendations\n| **Preview**\n|\n|\n| This product or feature is subject to the \"Pre-GA Offerings Terms\" in the General Service Terms section\n| of the [Service Specific Terms](/terms/service-terms#1).\n|\n| Pre-GA products and features are available \"as is\" and might have limited support.\n|\n| For more information, see the\n| [launch stage descriptions](/products#product-launch-stages).\n\nCompute Engine lets you customize the recommendations you receive for\nyour project by changing the configuration used by the recommendation algorithm.\nIn particular, by changing the default observation period, you can receive\nrecommendations that better fit your workloads, applications,\nand infrastructure needs.\n\nTo learn how to modify the configuration for your project,\nsee [Configure idle VM recommendations](/compute/docs/instances/configuring-idle-vm-recommendations).\n\nChoose the right configuration\n\nThis section describes the values that you can set for the configuration.\nChanging these values affects the recommendations that you receive.\n\nThe observation period\n\nSet the observation period to modify the duration of the window used to\ncalculate the recommendations.\n\nYou can set the observation period to a value between 1 day and 14 days, using\na string with the total number of seconds, followed by the letter `s`.\n\n- For an observation period of 1 day, use `\"86400s\"`.\n- For an observation period of 14 days, use `\"1209600s\"`.\n\nBy default, the observation period is 14 days.\n\n- Use a shorter observation period if you want to receive recommendations based on short-term changes in your workload.\n- Use a longer observation period if you want to receive recommendations that are not affected by short-term fluctuations in your workload.\n\nWhat's next\n\n- Learn how to [view and apply idle VM recommendations](/compute/docs/instances/viewing-and-applying-idle-vm-recommendations).\n- Learn how to [configure idle VM recommendations](/compute/docs/instances/configuring-idle-vm-recommendations)."]]