Request a demo

Glossary · BigQuery

What is BigQuery reservation?

A BigQuery reservation is a named pool of slots, with an edition, baseline slots and an autoscaling limit, that you assign to projects, folders or an organization. Jobs from assigned projects run on those slots and are billed per slot-hour instead of per TiB scanned.

Also called: slot reservation, reservation assignment, capacity-based billing, workload management

How a reservation works

A reservation lives in an administration project, in one region, and has one edition. It holds up to two kinds of capacity: baseline slots, which are always allocated, and autoscaling slots, which the autoscaler adds up to a maximum when jobs need them. Inside the pool, slots are shared by fair scheduling across the projects running work.

Jobs reach a reservation through assignments. You assign a project, folder or organization for a job type (QUERY, PIPELINE for load and extract jobs, BACKGROUND, CONTINUOUS, ML_EXTERNAL and a few more), and the most specific assignment wins: a project assignment overrides its folder, a folder overrides the organization. A project with no assignment, or assigned to none, runs on demand.

CREATE RESERVATION `admin-project.region-us.elt`
OPTIONS (edition = 'ENTERPRISE', slot_capacity = 100, autoscale_max_slots = 400);

CREATE ASSIGNMENT `admin-project.region-us.elt.elt-prod`
OPTIONS (assignee = 'projects/analytics-prod', job_type = 'QUERY');

What a reservation does to the bill

The administration project pays for the slots; the projects that run jobs pay only for their storage. Baseline is billed every hour whether or not anything runs: 200 Enterprise baseline slots cost $12 an hour at $0.06, or $8,640 over a 30-day month. Autoscaled slots are billed only while scaled up, per second with a 1-minute minimum unless fluid scaling is on. A slot commitment can cover the baseline at a discount; baseline above the committed amount is billed at pay-as-you-go rates.

INFORMATION_SCHEMA.RESERVATIONS_TIMELINE has one row per reservation per minute, with the baseline (slot_capacity) and the autoscale slot-seconds charged in that minute. Run this in the administration project:

SELECT
  DATE(period_start) AS day,
  reservation_name,
  edition,
  ROUND(SUM(slot_capacity) / 60, 1) AS baseline_slot_hours,
  ROUND(SUM(period_autoscale_slot_seconds) / 3600, 1) AS autoscale_slot_hours,
  ROUND((SUM(slot_capacity) / 60 + SUM(period_autoscale_slot_seconds) / 3600)
    * CASE edition WHEN 'STANDARD' THEN 0.04 WHEN 'ENTERPRISE' THEN 0.06
        WHEN 'ENTERPRISE_PLUS' THEN 0.10 END, 2) AS payg_value_usd
FROM `region-us`.INFORMATION_SCHEMA.RESERVATIONS_TIMELINE
WHERE period_start >= TIMESTAMP_SUB(CURRENT_TIMESTAMP(), INTERVAL 7 DAY)
GROUP BY day, reservation_name, edition
ORDER BY day DESC, payg_value_usd DESC;

payg_value_usd prices everything at the pay-as-you-go rate, so committed baseline is overstated by the commitment discount.

Pitfalls that cost money

  • Region mismatch. A query runs where its data lives. If that is not the reservation's region, it silently runs on demand.
  • New projects default to on-demand. Assign at folder or organization level so new projects inherit the reservation.
  • PIPELINE assignments end free loading. Load and extract jobs normally use a free shared pool; once assigned, they consume your slots.
  • Missing BACKGROUND assignments. Background jobs such as change data capture merges fall back to on-demand without one.
  • Leftover baseline. When a commitment expires, its reservations stay, and their baseline is billed at pay-as-you-go until you lower it or delete the reservation.

Managing many reservations across dozens of projects is where reservation tooling pays off; the pricing calculator helps size the first one.

FAQ

Why is my BigQuery job not using the reservation?

The usual causes: the data is in a different region than the reservation, the project has no assignment for that job type (a PIPELINE assignment does not cover queries), the job hit the results cache, or you are looking at the parent row of a script, which never shows a reservation. Check reservation_id on the child jobs in INFORMATION_SCHEMA.JOBS.

Do I need a slot commitment to create a reservation?

No. An autoscaling reservation with pay-as-you-go slots needs no commitment. Commitments only lower the price of baseline slots you keep for a year or three, and they exist only for Enterprise and Enterprise Plus.

How do I move a project back to on-demand billing?

Assign the project to the reservation none, or remove its assignment if nothing is inherited from a folder or organization. To stop reservation charges altogether, delete the assignments and reservations: an expired commitment does not delete them, and their baseline keeps billing.

Read next

Browse the full glossary

Cut BigQuery spend without guessing

Masthead attributes compute and storage cost to every project, user, pipeline and table, finds unused and dead-end tables, and shows where editions or on-demand pricing is cheaper. Mnemonic cut its BigQuery compute cost by 20% within 24 hours of onboarding.