Reservation Assignments

BigQuery offers different compute models that impact access to various compute features and directly affect costs. Masthead analyzes usage to determine the optimal model among On-demand, Standard and Enterprise editions.

Reservation assignments can be configured at different levels:

These levels provide flexibility to optimize compute models across your workloads. Read more about combining different compute billing modelsarrow-up-right.

Reservation Assignment Levels

Masthead provides recommendations to optimize compute costs through reservation assignments at multiple levels:

  • Project-level: All workloads in a project use assigned reservations

  • DAG node-level: Flexible assignment for individual dbt or Dataform models

  • Pipeline-level: Individual pipelines assigned to specific reservations

Before applying changes, Masthead ensures your workloads are compatible with the target compute model and suggests the reservation capacity adjustments.

circle-info

Creating or adjusting a reservation for the migrated workload

  1. If you didn't have a reservation, create one in the BigQuery admin project:

CREATE RESERVATION `{BQ_ADMIN_PROJECT}.region-{region_id}.{RESERVATION_ID}` OPTIONS (
   edition = STANDARD,
   slot_capacity = 0,
   autoscale_max_slots = {estimated_slot_capacity}
);

If your current workload already uses reservations, you'll need to adjust the reservation capacity as shown above to increase/decrease the capacity for an existing reservation.

Project-Level Reservation Assignment

Masthead analyzes and aggregates all compute workload running within a project to recommend the most cost-effective compute model. We consider overall project usage patterns and potential savings by switching between On-Demand and Editions models with project-level reservation assignments.

DAG Node-Level Reservation Assignment

Flexible reservation assignmentarrow-up-right at the DAG node level delivers significant savings with minimal effort. We offer packages for common orchestration technologies to assign reservations to individual models.

Pipeline-Level Reservation Assignment

Masthead provides a granular view of compute costs, grouped by pipeline. This enables optimization through pipeline-level reservation assignments, migrating pipelines between BigQuery Editions and On-Demand models based on slot-consumption and usage patterns.

Recommendation:

Review pipeline-specific recommendations on Compute Cost Insightsarrow-up-right page. It shows current and alternative costs achievable by switching the compute model for each pipeline.

Alternative model plan for a pipeline

Last updated