guide
guide7 min read

Snowflake warehouse size auto suspend setting: how to right-size and stop credit spikes

A five-step tutorial for right-sizing warehouses, tuning AUTO_SUSPEND and capping runaway credit burn

The right Snowflake warehouse size and auto-suspend setting come from measurement, not defaults: pick the smallest size where queries do not spill to disk or queue, then set AUTO_SUSPEND as low as your cache needs allow. Per Snowflake's warehouse documentation, compute is billed per second with a 60-second minimum each time a warehouse starts, and each size up doubles the credits per hour. That makes an oversized, never-suspending warehouse the most common source of a credit spike.

Key Takeaways

  • •Each warehouse size doubles hourly credit burn (X-Small is 1 credit per hour, Small is 2, Medium is 4), so one size too large doubles the cost of every minute it runs.
  • •Right-size on evidence: spill to local or remote storage and queue time in QUERY_HISTORY tell you when a warehouse is too small, and their absence at low utilization tells you when it is too big.
  • •AUTO_SUSPEND is set in seconds. Values under 60 add little, because each resume bills a 60-second minimum.
  • •Resource monitors and statement timeouts are the backstop that turns a runaway query into a capped, alerted event instead of an invoice surprise.
  • •Sizing drifts as workloads change, so the review has to repeat. We recommend automating it rather than relying on a one-time cleanup.

Snowflake warehouse size auto suspend setting: what each one controls

Two settings decide most of your compute bill. Warehouse size sets the burn rate while the warehouse runs. AUTO_SUSPEND sets how long it keeps burning after the last query finishes. They fail in different ways, so we tune them separately.

Warehouse sizeCredits per hourWhat a size change does
X-Small1Baseline
Small2Doubles cost per running minute
Medium4Doubles again
Large8Doubles again
X-Large16Doubles again

Credits per hour are from Snowflake's published sizing table. The practical point is that a larger warehouse finishes some queries faster, so the cost per query can stay flat or even drop. That only holds when the query can use the extra nodes. A query that already runs on one node's worth of work gains nothing from Large and costs eight times the credits of X-Small for the same duration.

Idle time is the other lever. To see why it matters, take an illustrative case, which is our own arithmetic and not a benchmark. A Medium warehouse (4 credits per hour) receives 20 isolated one-minute queries a day. With a 10-minute AUTO_SUSPEND it bills about 11 minutes per query, roughly 14.7 credits a day. With a 60-second setting it bills about 2 minutes per query, roughly 2.7 credits a day. Same queries, same size, a difference of about 12 credits a day.

Step 1: Measure credit burn per warehouse

Start with where the credits go. Query SNOWFLAKE.ACCOUNT_USAGE.WAREHOUSE_METERING_HISTORY, grouped by WAREHOUSE_NAME and day, for the last 30 days. Look for two patterns: a warehouse with a few days far above its median (a spike), and a warehouse with steady credits but little query activity (idle burn).

Compare CREDITS_USED_COMPUTE against the sum of query execution time for the same warehouse from QUERY_HISTORY. If a warehouse bills 10 hours but its queries add up to 2 hours of execution, most of what you pay is idle time or under-used capacity. Note that ACCOUNT_USAGE views lag real time by up to a few hours, so use them for trend analysis, not for live incident response.

This is the same question our users type into Claude Code or Cursor: 'How much are we spending on Snowflake this month?' and 'What's causing the warehouse queue to spike?' We come back to that in Step 5.

Step 2: Right-size using spill and queue signals

QUERY_HISTORY exposes the evidence you need. Check BYTES_SPILLED_TO_LOCAL_STORAGE and BYTES_SPILLED_TO_REMOTE_STORAGE for each warehouse's heaviest queries. Spill means the working set did not fit in memory, which is the clearest signal that a warehouse is too small for that query. Remote spill is the worst case, and in our experience it is the first thing to fix.

Then check QUEUED_OVERLOAD_TIME and the AVG_QUEUED_LOAD column in WAREHOUSE_LOAD_HISTORY. Sustained queueing means too many concurrent queries for one cluster. That is a concurrency problem, not a size problem. A larger size helps one big query. A multi-cluster warehouse (an Enterprise edition feature) or splitting workloads across warehouses helps queueing. Mixing the two diagnoses is how teams end up with an X-Large warehouse that is still queueing.

  • •Heavy spill and long runtimes on a few queries: move up one size and re-measure.
  • •No spill, no queueing, low utilization: move down one size and watch runtimes.
  • •Queueing with healthy runtimes: add clusters or separate the workload, and leave the size alone.
  • •Mixed ad hoc and scheduled work on one warehouse: split it, so a dashboard refresh cannot be slowed by a backfill.

Change one size at a time and give each change a few days of data. Snowflake's own documentation recommends experimenting with real queries rather than guessing, and we agree. A size change takes effect for new queries without a restart.

Step 3: Set AUTO_SUSPEND per workload

The command is ALTER WAREHOUSE <name> SET AUTO_SUSPEND = <seconds>. Per Snowflake's CREATE WAREHOUSE reference, the default is 600 seconds, which is the number that quietly drives idle burn on warehouses nobody revisited. The trade-off is the warehouse's local data cache, which is dropped when it suspends. A suspended warehouse restarts fast, but the first queries after resume read from remote storage instead of cache.

Our opinion, not a Snowflake rule: match the value to how the warehouse is used.

  • •Scheduled ETL and batch warehouses: 60 seconds. Jobs run, finish and leave, and nobody benefits from a warm cache between runs.
  • •Ad hoc analyst warehouses: 60 to 300 seconds. Users run bursts of related queries, so a short window keeps the cache warm through a session.
  • •BI dashboards with steady, repeated queries: a longer window, or keep it running during business hours, if cache hits visibly cut runtimes.
  • •Anything under 60 seconds: rarely useful, because each resume bills a 60-second minimum.

Also confirm AUTO_RESUME is TRUE. If it is off, a suspended warehouse rejects queries until someone starts it manually, which is a different kind of incident.

Step 4: Cap spend with resource monitors and timeouts

Right-sizing lowers your baseline. It does not stop a bad query from running for six hours. Snowflake resource monitors track credit usage against a CREDIT_QUOTA and can notify or suspend at percentage thresholds, either account-wide or for specific warehouses. A common pattern is a notify trigger at 75 percent, a second at 90 percent, and a suspend trigger at 100 percent for non-critical warehouses.

Pair that with STATEMENT_TIMEOUT_IN_SECONDS at the warehouse level, so one runaway query is cancelled instead of consuming the monthly quota. Set the timeout above your longest legitimate job and below the point where a mistake becomes expensive. Resource monitors act on usage, which Snowflake reports with some delay, so treat them as a guardrail and not a precise limit.

Step 5: Automate the review so spikes stay fixed

The first four steps work once. Then new models ship, a backfill runs on the wrong warehouse, someone creates a Large warehouse for a test and forgets it, and the numbers drift back. The review has to be continuous.

This is where our Cost Agent fits. Data Workers agents are MCP servers, so you ask from Claude Code or Cursor, 'How much are we spending on Snowflake this month?', and the agent reads the same metering and query history described above, then points at the warehouses with spill, queueing or idle burn. The open-source edition is read-only by default, so it recommends changes and does not make them. Pro adds writes behind approval workflows and audit trails, so an AUTO_SUSPEND change goes through review like any other change. The Model Context Protocol is the open standard that lets any compatible client call these agents.

Spikes rarely have one cause, so we cover this in more detail elsewhere: our Connectors Agent reads warehouse metadata from Snowflake and other platforms, and we covered how Data Workers keeps catalog and lineage context current in a separate post. That context is what answers 'What's the blast radius if I drop this column?' and 'Why is the nightly pipeline 3x slower this week?' without a manual investigation.

Common mistakes to avoid

  • •Sizing up to fix queueing. Queueing is concurrency, so add clusters or split workloads.
  • •Setting AUTO_SUSPEND to a few seconds. The 60-second minimum makes it pointless, and frequent resumes cost you cache.
  • •Leaving the 600-second default on every warehouse because nobody owns the setting.
  • •Using one warehouse for ETL, BI and ad hoc work, so no single size or suspend value is right.
  • •Setting a resource monitor with no notification, so the first signal is a suspended warehouse.

Frequently Asked Questions

What is the best Snowflake auto suspend setting? There is no single best value. For batch and ETL warehouses we recommend 60 seconds. For interactive warehouses, 60 to 300 seconds balances idle cost against a warm cache. Snowflake's default of 600 seconds is rarely the cheapest choice.

How do I know if my Snowflake warehouse is too big? Look for no spill to local or remote storage, no queueing and low utilization across your heaviest queries. If runtimes barely change when you drop one size in a test, the larger size was only costing credits.

Does a bigger warehouse always cost more? Not per query. Because each size doubles the burn rate, a query that runs twice as fast on the next size costs about the same, and a query that runs more than twice as fast costs less. Queries that cannot use extra nodes just cost more.

Why did my Snowflake credits spike overnight? The usual causes are a long-running query without a statement timeout, a warehouse that was resized and never reverted, a job moved to the wrong warehouse, or a high AUTO_SUSPEND on a warehouse that received sporadic queries. WAREHOUSE_METERING_HISTORY shows which warehouse and hour.

Can an AI agent change warehouse settings for me? Yes, with the right controls. In our open-source edition the agent is read-only and recommends changes. In Pro, writes go through approval workflows with audit trails, so a person approves before a size or suspend value changes.