Glossary · BigQuery
What is BigQuery autoscaler?
The BigQuery autoscaler adds slots to a reservation in steps of 50 when its jobs need more than the baseline, up to a maximum you set, and removes them when demand drops. You pay the edition's pay-as-you-go rate per second, with a 1-minute minimum unless fluid scaling is on.
How the autoscaler works
You give a reservation a maximum size; the autoscaling range is that maximum minus any baseline slots. When jobs need more capacity, the reservation uses its baseline first, then idle slots borrowed from other reservations, and only then scales. Scaling is fast and always lands on a multiple of 50: a workload that needs 120 more slots gets 150, and one that needs 450 more can get them in a single step.
Scaling down follows a 60-second scale-down window. Capacity added at a new peak is kept for at least 60 seconds, and every new peak restarts the window. Once 60 seconds pass with lower demand, capacity can drop repeatedly without new waits. Autoscaled slots are never lent to other reservations.
Standard edition reservations can only autoscale. Enterprise and Enterprise Plus can combine a baseline with autoscaling.
What it does to the bill
Autoscaled slots cost the edition's pay-as-you-go price ($0.04, $0.06 or $0.10 per slot-hour in the US multi-region for Standard, Enterprise and Enterprise Plus), billed per second with a 1-minute minimum. You pay for the slots scaled, not the slots used.
That makes short bursts expensive. A 10-second query that scales an Enterprise reservation to 500 slots holds them for the full 60-second window: 30,000 slot-seconds, about 8.3 slot-hours or $0.50, for work that used at most 5,000 slot-seconds (about $0.08). A dashboard that fires one such query every few minutes pays that minimum each time. Fluid scaling removes the 1-minute minimum; a lower maximum limits how high each burst can scale.
See autoscaler charges in INFORMATION_SCHEMA
Google advises against reconciling autoscaler billing with INFORMATION_SCHEMA.JOBS. Use RESERVATIONS_TIMELINE in the administration project, where period_autoscale_slot_seconds is the autoscale slot time charged in each minute:
SELECT
DATE(period_start) AS day,
reservation_name,
ROUND(SUM(period_autoscale_slot_seconds) / 3600, 1) AS autoscale_slot_hours,
ROUND(SUM(period_autoscale_slot_seconds) / 3600 * 0.06, 2) AS usd_at_enterprise_rate,
MAX(autoscale.current_slots) AS peak_autoscaled_slots,
MAX(autoscale.max_slots) AS autoscale_max_slots,
COUNTIF(autoscale.max_slots > 0
AND autoscale.current_slots >= autoscale.max_slots) AS minutes_at_max
FROM `region-us`.INFORMATION_SCHEMA.RESERVATIONS_TIMELINE
WHERE period_start >= TIMESTAMP_SUB(CURRENT_TIMESTAMP(), INTERVAL 7 DAY)
GROUP BY day, reservation_name
ORDER BY day DESC, autoscale_slot_hours DESC;
Swap 0.06 for your edition's rate. Many minutes_at_max mean jobs are queueing at the cap; a peak far below the cap means the maximum is not what limits cost. For second-by-second detail, unnest per_second_details and read autoscale_current_slots.
Tuning it
- Steady load belongs on baseline. If the autoscaler sits at the same level most of the day, baseline slots, and a slot commitment for them, cost less than scaling all day.
- Spiky load needs a sensible maximum. A large maximum lets one query grab hundreds of slots for seconds and pay for a minute. With a lower maximum, each burst scales less and the job uses more of the minute you pay for, which is the trade-off Google's own tuning advice describes.
- Batch small queries. Sending queries one at a time triggers a scale-up and a minimum for each one.
- Plan big events. Ahead of a known spike, raise the baseline early instead of relying on autoscaling capacity being available.
Compare settings for your own workload in the pricing calculator, or see how reservation management handles it across projects.
FAQ
Am I billed for autoscaled slots my queries did not use?
Yes. The autoscaler bills the slots it scaled to, not the slots jobs consumed, and the charge applies even if the job that triggered the scale-up fails. Rounding to 50-slot steps and the 1-minute minimum add to the difference.
Why doesn't my reservation scale up to the maximum?
Autoscaling slots are not reserved in advance. BigQuery adds them from available capacity, so scale-ups can be delayed when a region is busy, and they only start after baseline and borrowable idle slots are in use. Baseline slots are the only capacity that is always there.
Do slot commitments cover autoscaled slots?
No. Commitments only cover baseline slots. Autoscaled slots are always billed at the pay-as-you-go rate of the reservation's edition.
