Glossary · BigQuery
What is baseline slots?
Baseline slots are the slots permanently allocated to a BigQuery reservation. They are always available to its jobs and always billed, used or not, so they suit steady workloads; capacity above the baseline comes from idle slots or the autoscaler. Only Enterprise and Enterprise Plus have them.
What baseline slots are
A reservation on Enterprise or Enterprise Plus can hold a baseline (slot_capacity), the number of slots that are always allocated to it. Jobs in the reservation use the baseline first. If they need more, they borrow idle slots from other reservations, then the autoscaler adds slots up to the reservation's maximum. Standard edition has no baseline: a Standard reservation only autoscales.
Baseline is the only capacity guaranteed to be there. Autoscaled slots depend on what BigQuery has free at that moment, and borrowed idle slots can be taken back within milliseconds. For production work with deadlines, Google recommends a baseline large enough that the reservation does not depend on borrowed capacity.
What baseline does to the bill
Baseline is billed every second of every day. At pay-as-you-go prices (US multi-region), 500 baseline slots cost $30 an hour on Enterprise or $50 on Enterprise Plus: $21,600 or $36,000 over a 30-day month. A slot commitment covers baseline at a discount, 20% for 1 year and 40% for 3 years according to Google's editions documentation. Baseline above the committed amount is billed at pay-as-you-go rates, and when a commitment expires, the baseline it covered falls back to pay-as-you-go until you lower it.
Unused baseline is not automatically lost: it is lent as idle slots to other reservations in the same administration project, region and edition. It is waste only when nothing borrows it.
Measure baseline utilization in INFORMATION_SCHEMA
Join the per-minute baseline from RESERVATIONS_TIMELINE with the slot time jobs used in each reservation, from JOBS_TIMELINE_BY_ORGANIZATION (organization-level access required). Run it in the administration project:
WITH used AS (
SELECT
reservation_id,
TIMESTAMP_TRUNC(period_start, MINUTE) AS minute,
SUM(period_slot_ms) / 60000 AS avg_slots_used
FROM `region-us`.INFORMATION_SCHEMA.JOBS_TIMELINE_BY_ORGANIZATION
WHERE job_creation_time >= TIMESTAMP_SUB(CURRENT_TIMESTAMP(), INTERVAL 8 DAY)
AND period_start >= TIMESTAMP_SUB(CURRENT_TIMESTAMP(), INTERVAL 7 DAY)
AND IFNULL(statement_type, '') != 'SCRIPT'
GROUP BY reservation_id, minute
)
SELECT
r.reservation_name,
ROUND(SUM(r.slot_capacity) / 60, 1) AS baseline_slot_hours,
ROUND(SUM(LEAST(IFNULL(u.avg_slots_used, 0), r.slot_capacity)) / 60, 1) AS used_baseline_slot_hours,
ROUND(100 * SAFE_DIVIDE(SUM(LEAST(IFNULL(u.avg_slots_used, 0), r.slot_capacity)),
SUM(r.slot_capacity)), 1) AS baseline_utilization_pct
FROM `region-us`.INFORMATION_SCHEMA.RESERVATIONS_TIMELINE AS r
LEFT JOIN used AS u
ON u.reservation_id = r.reservation_id AND u.minute = r.period_start
WHERE r.period_start >= TIMESTAMP_SUB(CURRENT_TIMESTAMP(), INTERVAL 7 DAY)
AND r.slot_capacity > 0
GROUP BY r.reservation_name
ORDER BY baseline_utilization_pct;
Low utilization around the clock points to a baseline sized for the peak. Low utilization only at night is what autoscaling is for: move the difference between night and day load from baseline to autoscaling.
Sizing it
- Size the baseline to the load that is there most hours of the day, not to the peak.
- Cover it with a commitment only after the level has been stable for a while; a commitment cannot be reduced during its term.
- Keep critical reservations self-reliant, and treat borrowed idle slots as a bonus for low-priority work.
- After at least seven days of history, Google's slot estimator in the console models the effect of more or fewer slots.
The pricing calculator prices a baseline against on-demand, and reservation management shows utilization across every reservation at once.
FAQ
Are baseline slots billed when no queries run?
Yes. Baseline slots are allocated around the clock and billed around the clock, at the commitment rate where a slot commitment covers them and at the pay-as-you-go rate where it does not.
What is the difference between baseline slots and committed slots?
Baseline is a property of a reservation: how many slots it always holds. A commitment is a purchase: slots paid for 1 or 3 years at a discount. Commitments cover baseline slots; baseline without a commitment is pay-as-you-go, and commitment slots not assigned to any baseline become idle slots.
How quickly can I change the baseline?
Increases can be made every few minutes if BigQuery has capacity; if one fails, Google suggests retrying after 15 minutes. Decreases are limited to once an hour when you changed the baseline recently and it exceeds your committed slots.
