谷歌云工作负载可靠性设计
google-cloud-waf-reliability
基于 Google Cloud Well-Architected Framework 可靠性支柱的设计原则和建议,评估、设计并改进 Google Cloud 工作负载的可靠性、韧性、可用性、容错能力和灾难恢复(DR)。当用户询问可靠性相关主题时使用,例如工作负载正常运行时间、高可用性(HA)或 DR 设计、设定并达成 RTO/RPO 目标、SRE 最佳实践、备份策略、多区域故障转移,或 Google Cloud 上的容错架构。不要用于其他 Well-Architected Framework 支柱(如成本优化、运营卓越或安全性),也不要用于实际的资源部署和实时故障排查。
- License 许可
- Apache-2.0
- 所属仓库
- google/skills
- 最近更新
- 2026-11-14
- Stars
- ★ 2.4w
- Forks
- 2.0k
01 前言 Front Matter
- name
- google-cloud-waf-reliability
- metadata
- { "version": "1.1.0", "category": "WellArchitectedFramework" }
- description
- Evaluates, designs, and improves the reliability, resilience, availability, fault tolerance, and disaster recovery (DR) of Google Cloud workloads based on the design principles and recommendations in the Reliability pillar of the Google Cloud Well-Architected Framework. Use when the user asks about reliability-related topics like workload uptime, designing for high availability (HA) or DR, setting and meeting RTO/RPO targets, SRE best practices, backup strategies, multi-region failover, or fault-tolerant architecture on Google Cloud. Don't use for other Well-Architected Framework pillars such as Cost Optimization, Operational Excellence, or Security, or for hands-on resource deployment and live incident troubleshooting.
02 资源文件 1
- 参考文档references/attribution.md1.9 KB
03 SKILL.md 正文
Google Cloud Well-Architected Framework skill for the Reliability pillar
Usage attribution
MUST READ: Before executing any gcloud, REST API, or MCP command, you
MUST read and follow the instructions in
Usage Attribution.
Overview
The Reliability pillar of the Google Cloud Well-Architected Framework provides principles and recommendations to help you design, deploy, and manage reliable, resilient, and highly available workloads in Google Cloud. A reliable system consistently performs its intended functions under defined conditions, is resilient to failures, and recovers gracefully from disruptions, thereby minimizing downtime, enhancing user experience, and ensuring data integrity.
Core principles
The recommendations in the reliability pillar of the Well-Architected Framework are aligned with the following core principles:
-
Define reliability based on user-experience goals: Measurement of reliability should reflect the actual experience of the system's users rather than merely relying on infrastructure metrics. Focus on outcomes that matter most to users. Grounding document: https://docs.cloud.google.com/architecture/framework/reliability/define-reliability-based-on-user-experience-goals.md.txt
-
Set realistic targets for reliability: Determine appropriate Service Level Objectives (SLOs) that balance the cost and complexity of maximizing availability against business requirements. Provide guidance on defining Service Level Objectives (SLOs) based on monitoring signals, error budgets, and user experience goals. Grounding document: https://docs.cloud.google.com/architecture/framework/reliability/set-targets.md.txt
-
Build highly available systems through resource redundancy: Eliminate single points of failure by duplicating critical components across zones and regions to maintain operations during localized outages. Grounding document: https://docs.cloud.google.com/architecture/framework/reliability/build-highly-available-systems.md.txt
-
Take advantage of horizontal scalability: Design system architectures to scale horizontally (adding more instances) to seamlessly accommodate load fluctuations and improve overall fault tolerance. Incorporate proactive capacity planning to monitor and adjust project quotas and resource availability anticipating sudden load spikes. Grounding document: https://docs.cloud.google.com/architecture/framework/reliability/horizontal-scalability.md.txt
-
Detect potential failures by using observability: Implement thorough monitoring, logging, and alerting systems to proactively detect, diagnose, and address anomalies before they cause user-facing issues. Monitor the golden signals (latency, traffic, errors, and saturation) and set up alerts for when the signals cross specified thresholds. Use Cloud Monitoring to build comprehensive dashboards for the golden signals. Grounding document: https://docs.cloud.google.com/architecture/framework/reliability/observability.md.txt
-
Design for graceful degradation: Architect systems to maintain critical functionality, even if at reduced performance or with limited features, when dependencies fail or the system experiences extreme stress. To avoid cascading failures, recommend setting up alerts to detect failures early, using the circuit-breaker pattern, handling timeouts effectively to release blocked resources, utilizing retries with exponential backoff and jitter to avoid overwhelming recovering backend systems, and returning custom error responses or static fallback pages. Grounding document: https://docs.cloud.google.com/architecture/framework/reliability/graceful-degradation.md.txt
-
Perform testing for recovery from failures: Build confidence in system resilience by continuously simulating failures and verifying the effectiveness of automated and manual recovery procedures. Grounding document: https://docs.cloud.google.com/architecture/framework/reliability/perform-testing-for-recovery-from-failures.md.txt
-
Perform testing for recovery from data loss: Regularly test backup and restore protocols to ensure rapid recovery from data corruption or loss, remaining within the defined Recovery Time Objective (RTO) and Recovery Point Objective (RPO). Grounding document: https://docs.cloud.google.com/architecture/framework/reliability/perform-testing-for-recovery-from-data-loss.md.txt
-
Conduct thorough postmortems: Foster a blameless culture by investigating outages comprehensively to understand root causes, followed by implementing measures that prevent recurrence. Grounding document: https://docs.cloud.google.com/architecture/framework/reliability/conduct-postmortems.md.txt
Relevant Google Cloud products
The following are examples of Google Cloud products and features that are relevant to reliability:
- Compute: Compute Engine Managed Instance Groups (MIGs), Google Kubernetes Engine (GKE), Cloud Run
- Networking: Cloud Load Balancing, Cloud CDN, Cloud DNS
- Storage and databases: Cloud Storage (multi-region), Cloud SQL High Availability, Spanner, Filestore, Firestore
- Operations: Cloud Monitoring, Cloud Logging, Google Cloud Managed Service for Prometheus
- Disaster recovery: Backup and DR Service, Filestore backups
Workload assessment questions
Ask appropriate questions to understand the reliability-related requirements and constraints of the workload and the user's organization. For focused inquiries, choose the most relevant questions from the following list; when preparing a comprehensive reliability assessment across a workload, cover all core principles and include the full set of discovery questions under each principle so key operational practices aren't overlooked:
-
Define reliability based on user-experience goals:
- How does your organization define and measure the reliability of your systems in relation to user experience?
- How do you define reliability for your application in a way that is meaningful to your end-users?
- What tools and processes do you use to gather direct user feedback on reliability and performance?
-
Set realistic targets for reliability:
- How does your organization approach setting reliability targets for your services?
- What's your process for reviewing and adjusting your SLOs?
-
Build highly available systems through resource redundancy:
- What is your organization's strategy for ensuring high availability through resource redundancy?
- What's your strategy for distributing workloads across different geographic regions or availability zones?
-
Take advantage of horizontal scalability:
- How does your organization leverage horizontal scalability to maintain performance and reliability?
- How do you monitor for performance bottlenecks that might prevent your system from scaling effectively?
-
Detect potential failures by using observability:
- How does your organization utilize observability (metrics, logs, traces) to gain insights and detect potential failures?
- How does your organization manage alerting based on observability data to ensure timely responses to significant issues without causing alert fatigue?
-
Design for graceful degradation:
- What measures does your organization take to ensure systems can gracefully degrade during high load or partial failures?
- How are the impacts of degraded performance on user experience measured and mitigated?
- How is user experience prioritized during periods of degradation?
-
Perform testing for recovery from failures:
- How frequently and comprehensively does your organization test for recovery from system failures (e.g., regional failovers, release rollbacks)?
-
Perform testing for recovery from data loss:
- What is your organization's approach to testing for recovery from data loss?
-
Conduct thorough postmortems:
- How does your organization conduct and utilize postmortems after incidents?
- Can you share a key learning or a system change that resulted from a recent postmortem?
Validation checklist
Use the following checklist to evaluate the architecture's alignment with reliability recommendations:
- User-focused SLIs and SLOs are explicitly defined and actively monitored.
- The architecture avoids single points of failure through cross-zone or cross-region redundancy.
- Autoscaling is enabled to handle variable demand without manual intervention.
- Application and infrastructure health checks are configured to trigger automated failovers.
- Regular backup schedules are in place, and restoration processes are routinely tested.
- The system architecture incorporates patterns like circuit breakers, retries with exponential backoff, and rate limiting to support graceful degradation.
- Game days or chaos engineering practices are regularly held to validate failure recovery.
- A formalized, blameless postmortem process exists to ensure organizational learning from operational incidents.
04 同仓库更多 Skills
cloud-operator-share-context
Shares Google Cloud operating context the user or their team already have — environments, projects, services and regions, product preferences, best practices, architecture guidance, runbooks — found in agent instruction files, local memory, skills and workflows, and the repository's GCP docs, with the operator agent's memory after the user reviews the list. Use when the user runs this skill, accepts the cloud-operator or cloud-operator-setup skill's offer to share their existing Google Cloud context, or asks to share, import or save that context or a GCP fact for the operator agent. Don't use for ordinary GCP requests, which go to the cloud-operator skill.
cloud-operator-setup
Sets up the operator agent in a Google Cloud project via the autocloud MCP server: picks the operator project, creates or checks the user's operator agent, saves the project, and offers to share the user's existing Google Cloud operating context with the operator agent's memory. Use when the user runs this skill, asks to set up the operator or create their operator agent, or chooses setup when the cloud-operator skill asks. Don't use for ordinary GCP requests or installing gcloud.
developer-device-platform-device-run
Runs automated, non-interactive jobs on remote Android devices with Developer Device Platform (DDP) Device Run using `gcloud beta device-run sessions`: native Android executables or shell scripts (for example CLI tools, custom runners, test harnesses or benchmarks) and Android instrumentation tests, on one or many devices, then waits for completion and collects per-device outputs and logs. Use when running a binary or test suite on remote devices without an interactive connection. Don't use it for interactive device reservations, adb tunnels or screen streaming (use developer-device-platform-basics), or for local devices.
compute-vm-creation
Guides the planning, configuration, and provisioning of standalone Google Compute Engine virtual machines (VMs) and bare metal (-metal) instances using gcloud CLI commands or direct MCP tool execution. Use ONLY when the user wants to create, configure, or provision a new standalone Compute Engine VM or bare metal instance from conversational intents (hardware sizing, region selection, OS image, networking, security defaults). DO NOT read or use for Google Kubernetes Engine (GKE) Autopilot or Standard clusters, Kubernetes node pools or Pods, container orchestration, managing existing VMs, Managed Instance Groups (MIGs), or Instance Templates.
agent-platform-autorater-customization
Customizes an autorater (evaluation metric) for an AI agent so its grades match the user's own judgment, starting from the agent's real trajectories. Use when a user wants a metric tailored to their agent, wants to turn failing trajectories into rubrics, says an existing autorater grades their agent wrong, or wants an autorater to agree with human labels (autorater hillclimbing, judge calibration). Don't use for quick evals with built-in metrics or for improving the agent itself (use agent-platform-eval-flywheel).
iap-agent-platform-troubleshooting
Diagnoses Identity-Aware Proxy (IAP) denials of outbound requests from Gemini Enterprise Agent Platform agents that run on Agent Runtime and send traffic through Agent Gateway. Use when an agent request fails with "Egress request is not authorized", when Cloud Audit Logs show an IAP egressViaIAP decision with granted false, when IAP audit entries are missing while debugging agent egress, or when Access policies, IAP allow policies, policy bindings, or Agent Registry entries might block agent egress. Don't use for Gemini model IAM permission errors (such as aiplatform.endpoints.predict), Agent Platform API errors, or Agent Runtime deployment or 500 errors (use agent-platform-troubleshooting instead). Don't use for setting up, creating, or connecting an Agent Gateway, or for IAP web apps, IAP TCP forwarding, or SSH.