Optimize your cloud resources

To prepare Google Cloud workloads for a peak capacity event, you can right-size resources, configure autoscaling, and apply architecture and security recommendations. Cloud Monitoring and Recommender (Active Assist) help you analyze usage and demand to identify optimization opportunities before traffic spikes.

Review Google Cloud best practices

Many peak capacity event issues can be avoided by following the recommended best practices for the Google Cloud product that you are using. The following are examples of some best practice guides:

General
BigQuery
Cloud Storage
Compute Engine
Dataflow
Managed Service for Apache Spark
Google Kubernetes Engine

Review scalability

Autoscaling can ensure that your cloud-based applications have the resources that they need to handle varying workloads, while avoiding over provisioning and unnecessary costs. Google Cloud offers several product-specific autoscaling options, including the following:

  • Compute Engine managed instance groups (MIGs) are groups of VMs that are managed and scaled as a single entity. With MIGs, you can define autoscaling policies that specify the minimum and maximum number of VMs to maintain in the group, and the conditions that trigger autoscaling.
  • Google Kubernetes Engine (GKE) autoscaling dynamically adjusts your cluster resources to match your application's needs. It offers tools that can optimize resource utilization, ensure application performance, and simplify cluster management.
  • Cloud Run offers built-in autoscaling, which automatically adjusts the number of instances based on the incoming traffic.

Before your event, we recommend that you scale up manually. Although you might have autoscaling configured, due to the velocity of event traffic, autoscaling might not be able to catch up with demand. So pre-warm resources ahead of time, including the following:

  • Virtual machines
  • Caches if you want to pre-load
  • Serverless components to prevent cold starts

Review Active Assist recommendations

Active Assist refers to the portfolio of tools used in Google Cloud to generate recommendations and insights to help you optimize your Google Cloud projects. For more information, see What is Active Assist.

Review your product versions

Ensure that all your cloud products and services are up-to-date with the latest stable version.

Review alerts and dashboards

Proactively identify and address issues by evaluating the alerts and dashboards provided to you through Google Cloud Observability tools and third-party solutions.

Check your Google Cloud Observability metrics, logs, and traces to gain insights into resource utilization, performance characteristics, and the overall health of your resources. Monitor important metrics that align with system health indicators such as CPU utilization, memory usage, network traffic, disk I/O, and application response times. You should also consider business-specific metrics. By tracking these metrics, you can identify potential bottlenecks, performance issues, and resource constraints. Additionally, you can set up alerts to notify relevant teams proactively about potential issues or anomalies.

For alerts, focus on critical metrics, set appropriate thresholds to minimize alert fatigue, and ensure timely responses to significant issues. This targeted approach lets you proactively maintain workload reliability. For more information, see the Alerting overview.

What's next