Snowflake warehouse sizing with credit arithmetic
Size a Snowflake warehouse from evidence. Run the same workload on each candidate size, with result reuse handled the same way each time, and write down the deadline the job has to meet. Then compare credits only among the runs that meet it.
Credits per run
Standard warehouses double their hourly credit rate at each size step, from X-Small upward. Snowflake bills a running warehouse per second, with a sixty-second minimum each time it resumes. For one isolated run, multiply the hourly rate by the billed seconds, GREATEST(seconds, 60), and divide by 3600. A larger size can finish sooner and still cost more. It can also cost less when the extra compute cuts the runtime by more than half.
The minimum matters most for short jobs. Three separate 20-second resumes bill three minutes, not one, so apply the minimum to each resume before you add them up.
Idle time
AUTO_SUSPEND sets how many idle seconds pass before the warehouse stops, and AUTO_RESUME lets the next query start it again. A long idle timeout keeps the local cache warm for repeat dashboard queries, but the warehouse bills the whole time, even when nothing runs. Pick the value from the workload’s gaps, then check the setting with SHOW WAREHOUSES.
Resource monitors
A resource monitor tracks credits against a quota for the warehouses assigned to it. NOTIFY sends an alert. SUSPEND lets running statements finish before the warehouse stops, while SUSPEND_IMMEDIATE cancels them. Enforcement can lag, so usage can pass the threshold. Monitors do not cover serverless features such as Snowpipe; budgets track those.
The credit controls lesson checks each calculation on a second copy of the trial data, where the durations change. The production practice set adds separate short resumes and a quota for a sandbox that may be interrupted.
The exercises supply credit rates, not prices. Check your account’s warehouse type and contract before you estimate a bill. A practice trial also cannot stand in for a measurement in your own account, where cache state, concurrency and data volume change the runtime.
References: Snowflake warehouse considerations, Working with resource monitors.