本頁面中的部分或全部資訊可能不適用於 Trusted Cloud by S3NS。
預訂建議
本頁面說明 Compute Engine 如何產生預訂建議,以及設定這些建議的參數。
Compute Engine 會提供預訂建議,協助您找出過去七天內閒置或未充分利用的隨選預訂項目,以便修改或刪除預訂項目。
Compute Engine 會根據 Cloud Monitoring 服務收集的系統指標,自動產生建議。你可以設定預訂建議,接收更多或更少的建議。
定價
使用閒置預訂建議不會產生任何費用。使用建議減少資源用量,有助於節省成本。顯示的預估費用節省金額是您調整 VM 預留資源,以符合實際用量後,每月可望節省的金額。舉例來說,如果您預訂了 8 個 VM,但一律只使用 1 個,系統就會顯示將預訂項目縮減為 1 個 VM 後的節省費用。
限制
下列預留項目不適用於閒置和未充分利用的預留項目建議:
- 附加至承諾使用折扣 (CUD) 的隨選預留項目
- 預留項目:虛擬機器 (VM) 執行個體 (含 TPU)
閒置和未充分利用預留項目的偵測方式
Compute Engine 的預訂建議是根據歷史使用量指標而定。根據預設,歷史觀測期為過去 7 天。變更預設觀察期後,您就能自訂接收到的建議。
演算法會考量產生費用的預訂項目,但這些項目在過去 7 天內未與有效的 Compute Engine 資源建立關聯,藉此產生建議。
建議頻率
建立預留項目後,如果至少 7 天未耗用任何資源,Compute Engine 就會開始產生相關建議。系統每天會產生新的最佳化建議。
自訂推薦內容
您可以變更建議演算法使用的設定,自訂專案的建議。具體來說,變更預設觀察期後,您就能收到更符合工作負載、應用程式和基礎架構需求的建議。
如要瞭解如何修改專案的設定,請參閱下列內容:
選擇合適的設定
本節說明可為設定設定的值。變更這些值會影響您收到的建議。
觀察期
修改 idle_reservation_lookback_period
或 under_utilized_reservation_lookback_period
的值,設定觀察期長度,以計算建議,然後上傳專案的新設定。您可以將觀察期設為 7 天到 30 天之間的值,例如:
- 如要查看前 7 天的觀測期間,請使用
"P7D"
。
- 如要查看過去 30 天的觀測期間,請使用
"P30D"
。
預設的觀察期間為 7 天。
- 如要根據工作負載的短期變化取得建議,請使用較短的觀察期。
- 如果建議不受工作負載短期波動影響,請使用較長的觀察期。
同樣地,請修改 under_utilized_reservation_utilization_threshold
的值,設定觸發資源用量不足預訂項目建議的用量門檻,並上傳專案的新設定,例如:
後續步驟
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-19 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-08-19 (世界標準時間)。"],[[["\u003cp\u003eCompute Engine automatically generates reservation recommendations, based on the previous seven days of usage, to identify idle or underutilized on-demand reservations.\u003c/p\u003e\n"],["\u003cp\u003eThese recommendations help users optimize resource usage, potentially leading to cost savings by allowing the modification or deletion of unnecessary reservations.\u003c/p\u003e\n"],["\u003cp\u003eUsers can customize the recommendation algorithm by adjusting the observation period (from 7 to 30 days) and setting utilization thresholds, ensuring that recommendations align with their specific workloads and needs.\u003c/p\u003e\n"],["\u003cp\u003eThere are no costs associated with using these reservation recommendations, and they can be viewed and applied directly through the Compute Engine interface.\u003c/p\u003e\n"],["\u003cp\u003eThe generated recommendations are not applicable to reservations attached to committed use discounts (CUDs) or virtual machine (VM) instances with TPUs.\u003c/p\u003e\n"]]],[],null,[]]