google-cloud-waf-cost-optimization
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseGoogle Cloud Well-Architected Framework skill for the Cost Optimization pillar
面向成本优化支柱的Google Cloud架构完善框架技能
Overview
概述
The Cost Optimization pillar of the Google Cloud Well-Architected Framework
provides a structured approach to optimize the costs of your cloud workloads
while maximizing business value. Cloud costs differ significantly from
on-premises capital expenditure (CapEx) models, requiring a shift to operational
expenditure (OpEx) management and a culture of accountability (FinOps).
Google Cloud架构完善框架的成本优化支柱提供了一种结构化方法,可在最大化业务价值的同时优化云工作负载的成本。云成本与本地资本支出(CapEx)模式存在显著差异,这要求转向运营支出(OpEx)管理以及问责文化(FinOps)。
Core principles
核心原则
The recommendations in the cost optimization pillar of the Well-Architected
Framework are aligned with the following core principles:
-
Align cloud spending with business value: Ensure that your cloud resources deliver measurable business value by aligning IT spending with business objectives. Prioritize investments that directly contribute to revenue, customer satisfaction, or operational efficiency. Grounding document: https://docs.cloud.google.com/architecture/framework/cost-optimization/align-cloud-spending-business-value
-
Foster a culture of cost awareness: Ensure that people across your organization consider the cost impact of their decisions and activities. Provide teams with the visibility and information they need to make informed, cost-conscious choices. Grounding document: https://docs.cloud.google.com/architecture/framework/cost-optimization/foster-culture-cost-awareness
-
Optimize resource usage: Provision only the resources that you need and pay only for what you consume. Select the most cost-effective resource types, sizes, and locations that meet your technical and business requirements. Grounding document: https://docs.cloud.google.com/architecture/framework/cost-optimization/optimize-resource-usage
-
Optimize continuously: Continuously monitor your cloud resource usage and costs, and proactively make adjustments as needed to optimize your spending. This iterative approach helps identify and address inefficiencies before they become significant. Grounding document: https://docs.cloud.google.com/architecture/framework/cost-optimization/optimize-continuously
架构完善框架成本优化支柱中的建议与以下核心原则保持一致:
-
使云支出与业务价值对齐:通过使IT支出与业务目标保持一致,确保云资源可带来可衡量的业务价值。优先投入那些直接促进收入增长、客户满意度提升或运营效率优化的项目。参考文档: https://docs.cloud.google.com/architecture/framework/cost-optimization/align-cloud-spending-business-value
-
培养成本意识文化:确保组织内所有人员在决策和开展活动时都考虑成本影响。为团队提供所需的可见性和信息,以便做出明智、注重成本的选择。参考文档: https://docs.cloud.google.com/architecture/framework/cost-optimization/foster-culture-cost-awareness
-
优化资源使用:仅配置所需资源,只为实际消耗付费。选择符合技术和业务需求的最具成本效益的资源类型、规格和区域。参考文档: https://docs.cloud.google.com/architecture/framework/cost-optimization/optimize-resource-usage
-
持续优化:持续监控云资源使用情况和成本,并根据需要主动调整以优化支出。这种迭代方法有助于在低效问题变得严重之前识别并解决它们。参考文档: https://docs.cloud.google.com/architecture/framework/cost-optimization/optimize-continuously
Relevant Google Cloud products
相关Google Cloud产品
The following are examples of Google Cloud products and features that are
relevant to cost optimization:
-
Visibility and monitoring:
- Cloud Billing reports: Native dashboards for visualizing spending and trends.
- BigQuery billing export: Enables granular, custom analysis of billing data using SQL and BI tools.
- Looker Studio: Used for creating detailed, shared cost dashboards and reports.
- Billing alerts and budgets: Automated notifications when spending reaches predefined thresholds.
-
Automation and optimization tools:
- Recommender / Active Assist: Automatically identifies idle resources, rightsizing opportunities, and unused commitments.
- Cloud Hub Optimization: Integrates billing and resource utilization data to help developers and application owners quickly identify their most expensive, fluctuating, or underutilized cloud resources.
- FinOps hub: Presents active savings and optimization opportunities in one dashboard.
- Billing quotas: Limits on resource consumption to prevent unexpected cost spikes.
-
Efficient infrastructure:
- Managed services and serverless services: Services like Cloud Run, Cloud Run functions, and GKE Autopilot reduce operational overhead and pay-per-use scaling.
- Compute Engine: Use of Spot VMs for fault-tolerant workloads and Committed Use Discounts (CUDs) for stable workloads.
- Cloud Storage Lifecycle Policies: Automatically moves data to lower-cost storage classes (Nearline, Coldline, Archive) based on age or access.
-
Organization and governance:
- Resource Manager: Logical structure (Organizations, Folders, Projects) for cost attribution.
- Labels: Metadata tags for categorizing and filtering costs by environment, team, or application.
- Organization Policy Service: Enforces constraints (e.g., restricted regions or machine types) to control costs.
以下是与成本优化相关的Google Cloud产品和功能示例:
-
可见性与监控:
- Cloud Billing reports:用于可视化支出和趋势的原生仪表板。
- BigQuery billing export:支持使用SQL和BI工具对账单数据进行精细化的自定义分析。
- Looker Studio:用于创建详细的共享成本仪表板和报告。
- Billing alerts and budgets:当支出达到预定义阈值时发送自动通知。
-
自动化与优化工具:
- Recommender / Active Assist:自动识别闲置资源、规格优化机会和未使用的承诺额度。
- Cloud Hub Optimization:整合账单和资源利用率数据,帮助开发者和应用所有者快速识别成本最高、波动最大或利用率不足的云资源。
- FinOps hub:在单一仪表板中展示可立即实现的节省和优化机会。
- Billing quotas:设置资源消耗限制,防止意外成本激增。
-
高效基础设施:
- 托管服务与无服务器服务:Cloud Run、Cloud Run functions和GKE Autopilot等服务可降低运营开销,并支持按使用量付费的弹性扩展。
- Compute Engine:针对容错工作负载使用Spot VM,针对稳定工作负载使用Committed Use Discounts(CUDs)。
- Cloud Storage Lifecycle Policies:根据数据时长或访问情况自动将数据迁移至低成本存储类别(Nearline、Coldline、Archive)。
-
组织与治理:
- Resource Manager:用于成本归属的逻辑结构(组织、文件夹、项目)。
- Labels:用于按环境、团队或应用对成本进行分类和过滤的元数据标签。
- Organization Policy Service:实施约束(如限制区域或机器类型)以控制成本。
Workload assessment questions
工作负载评估问题
Ask appropriate questions to understand the cost-related requirements and
constraints of the workload and the user's organization. Choose questions from
the following list:
- How do you incorporate cost considerations into your cloud architecture design process?
- How do you foster a culture of cost awareness among your development teams?
- How do you monitor and manage cloud costs across different projects or departments?
- What strategies do you use to optimize the cost of your compute resources?
- How do you balance cost optimization with the need for agility and innovation?
- How do you ensure that you are not over-provisioning cloud resources?
- How do you use data and analytics to drive cost optimization decisions?
- How do you optimize costs in different environments (e.g., development, testing, production)?
- How do you ensure that your cost optimization efforts are sustainable and ongoing?
- How do you measure the success of your cloud cost optimization initiatives?
提出合适的问题,以了解工作负载和用户组织的成本相关需求与约束。可从以下列表中选择问题:
- 您如何将成本考量融入云架构设计流程?
- 您如何在开发团队中培养成本意识文化?
- 您如何跨不同项目或部门监控和管理云成本?
- 您采用哪些策略优化计算资源的成本?
- 您如何平衡成本优化与敏捷性和创新需求?
- 您如何确保不过度配置云资源?
- 您如何利用数据和分析驱动成本优化决策?
- 您如何在不同环境(如开发、测试、生产)中优化成本?
- 您如何确保成本优化工作可持续且持续进行?
- 您如何衡量云成本优化举措的成功?
Validation checklist
验证清单
Use the following checklist to evaluate the architecture's alignment with
cost-optimization recommendations:
- Cost Attribution: 100% of resources are labeled with key metadata
(e.g., ,
env,team).app - Granular Visibility: BigQuery billing export is enabled and used for regular cost reviews.
- Budgets and Alerts: Every project or business unit has defined budgets and active alerts.
- Rightsizing: Resources are regularly adjusted based on rightsizing suggestions provided by Active Assist Recommender.
- Commitment Strategy: Spend is reviewed monthly to optimize Committed Use Discount coverage.
- Idle Resource Management: Unused disks, IP addresses, and idle VMs are identified and removed monthly.
- Managed Services: Serverless options are preferred for new workloads unless specific technical constraints exist.
- Storage Tiers: Lifecycle policies are active for all major storage buckets to minimize archival costs.
使用以下清单评估架构与成本优化建议的契合度:
- 成本归属:100%的资源都标注了关键元数据(如、
env、team)。app - 精细化可见性:已启用BigQuery账单导出,并用于定期成本审查。
- 预算与警报:每个项目或业务单元都已定义预算并启用警报。
- 规格优化:根据Active Assist Recommender提供的规格优化建议定期调整资源。
- 承诺额度策略:每月审查支出以优化Committed Use Discount覆盖范围。
- 闲置资源管理:每月识别并清理未使用的磁盘、IP地址和闲置VM。
- 托管服务:除非存在特定技术约束,否则新工作负载优先选择无服务器选项。
- 存储层级:所有主要存储桶都已启用生命周期策略,以最小化归档成本。