How Keebo’s Autonomous Warehouse Suspension Algorithm Maximizes Snowflake Savings

Set a Snowflake warehouse to auto suspend after 45 seconds, and it will usually stay up for about 60.
That gap comes from how Snowflake checks for idle warehouses, and it’s documented. Across a fleet of warehouses, the extra seconds add up.
Auto suspend is one of Snowflake’s built-in cost controls. It suspends inactive warehouses so you aren’t paying for compute you don’t need. Setting it takes one SQL statement:
ALTER WAREHOUSE my_wh SET AUTO_SUSPEND = 45; Table of Contents
Why a 45-Second Setting Suspends Later
Snowflake’s CREATE WAREHOUSE documentation explains it directly: “Setting a value less than 30, or a value that is not a multiple of 30, is allowed but might not result in the expected behavior due to the 30 second poll interval for warehouse suspension.”
In other words, Snowflake checks whether a warehouse is idle every 30 seconds. With a 45-second setting, the warehouse suspends at the next check after 45 seconds have passed. In the example below, that’s 61 seconds, or 16 seconds past the target.
A few seconds per suspend is small. Across many warehouses and many suspends per day, it adds up:
| WH Size | # of WHs | Avg. extra activity for each auto-suspend (sec) | # of auto-suspends per month | Total credits wasted | Total spend wasted (Enterprise Edition, $3.00 per credit) |
| XS | 20 | 15 | 450 (15 per day) | 37.5 | $112.50 |
| M | 15 | 15 | 450 (15 per day) | 112.5 | $337.50 |
| XL | 5 | 15 | 450 (15 per day) | 150 | $450.00 |
These figures are illustrative. They also assume each active period runs longer than one minute. Snowflake bills a 60-second minimum each time a warehouse resumes, so shorter bursts are billed at 60 seconds either way, and faster suspension doesn’t change their cost.
Snowflake recommends values that are multiples of 30 seconds, so the setting lines up with the check interval. If you want suspension closer to an exact target, you need a controller that checks more often. That’s what Keebo’s proactive warehouse suspension does. Depending on your configuration, it can shorten the idle time between a warehouse’s last query and its suspension.
How Keebo’s Proactive Warehouse Suspension Works
Snowflake checks for idle warehouses every 30 seconds, so a warehouse can run anywhere from 0 to 30 seconds past its target (about 15 on average). Keebo polls every 5 seconds, so the overrun drops to 0 to 5 seconds (about 2.5 on average).
The suspension controller works alongside Keebo’s warehouse optimization and performance guardrails, so suspension decisions reflect each warehouse’s workload.
Snowflake’s 30-second check, step by step
Here’s an example to illustrate the benefits of real-time warehouse suspension control:

Let’s break down the sequence of events in the example above:
- The user set Warehouse A’s auto-suspend to 45 seconds.
- Warehouse A asleep at 11:29:00 AM.
- Two seconds later (11:29:02 AM), a query starts, resuming the warehouse. Snowflake starts billing the user for this warehouse’s operation.
- At 12:01:32 PM, the query ends. From this point on, there are no new queries. According to the user’s settings, the warehouse should suspend at 12:02:17 PM.
- However, because Snowflake’s auto-suspend occurs in 30-second intervals, the actual suspension takes place at 12:02:33 PM (or 61 seconds after the query ended).
As a result, Snowflake bills the user for an additional 16 seconds of warehouse operation.
What Keebo’s controller does instead
How would Keebo have handled that situation differently? Instead of operating in 30-second intervals, Keebo’s real-time controller polls the state of each warehouse to learn:
- Whether the warehouse is running or idle
- How many queries were last queued
- When the warehouse was last resumed, if running
Once the warehouse has been idle for the target auto-suspend time, the real-time controller puts the warehouse to sleep using the following SQL command:
ALTER WAREHOUSE my_wh SUSPEND; Snowflake lets running queries finish before a warehouse suspends. Because Keebo issues the suspend command from outside the warehouse, a new query could arrive between our idle check and the command. Keebo closes that gap with a server-side check that confirms the warehouse is still idle at the moment it suspends.
The same example with Keebo
Let’s return to the example above:

- The user set Warehouse A’s auto-suspend to 45 seconds using Keebo’s real-time, automated proactive warehouse suspension algorithm.
- Warehouse A asleep at 11:29:00 AM.
- Two seconds later (11:29:02 AM), a query starts, resuming the warehouse. Snowflake starts billing the user for this warehouse’s operation.
- Throughout the duration of the query, Keebo polls the warehouse to determine whether the warehouse is running or idle. (This is indicated by the rays projecting upward toward the timeline.) Note that poll (0), the warehouse is determined to be active.
- At 12:01:32 PM, the query ends. From this point on, there are no new queries. According to the user’s settings, the warehouse should suspend at 12:02:17 PM.
- At poll (1) above, Keebo determines that the warehouse is idle and logs an initial idle observation.
- At poll (2) above, Keebo determines the warehouse has been idle for more than 45 seconds, then sends a suspend command (3). The warehouse is then suspended at 12:02:19, or 47 seconds after the query ends.
Here the warehouse suspends two seconds after the target instead of 16, which removes 14 seconds of idle runtime.
Choosing the Right Auto Suspend Value
A faster polling loop gets suspension closer to the target you set. The savings still depend on the target itself.
The right value varies by organization and by warehouse. It depends on:
- The warehouse’s current workload
- Its historical performance
- Workload patterns across the account, inferred from other warehouses
Because those change, the right value changes too. There’s no single value you can set once and leave.
Setting auto suspend very low has its own cost. Snowflake’s warehouse guidance notes that the warehouse cache is dropped on suspend. A query that arrives just after suspension reads from remote storage and runs longer.
Keebo handles this with dynamic auto suspend. You set a maximum, for example 45 seconds. Keebo’s algorithm then picks the value in real time, aiming to reduce the number of queries that hit a cold cache while keeping performance comparable to your setting.
Getting suspension precise is one half of the problem. Choosing the right value is the other. For more on that trade-off, see Snowflake Auto Suspend: How to Balance Idle Cost and Warehouse Cache.
Does the Controller’s Polling Cost Credits?
If Keebo’s real-time controller is constantly polling your warehouses to see whether they’re active or idle, doesn’t that consume Snowflake resources? The answer is yes, but with a major caveat: polling the warehouse consumes cloud credits, not warehouse credits.
The difference: if your cloud credits don’t exceed 10% of your daily warehouse usage, then Snowflake doesn’t bill you for them. So even though the real-time controller is increasing your cloud activity, as long as it falls within that 10% threshold, you won’t run into any issues.
As such, we’ve structured Keebo’s real-time controller and determined that five seconds in between polls was the optimal period for reducing daily credit consumption:


It’s impossible to predict whether we’ll exceed that 10% threshold without knowing what a user’s cloud services usage is already. However, suffice it to say that we’re able to strike a balance between optimal savings while avoiding unnecessary cloud compute, thus achieving a cost-effective solution.
Additionally, Keebo’s polling mechanism covers all warehouses in the account. This means the cost of running the controller doesn’t increase linearly with the number of warehouses. In other words, the cost of running the controller is practically fixed. So the more warehouses you have, the more you can save without increasing your cost.
Final Thoughts
Snowflake’s flexible auto suspend gives users a real savings lever, and it’s one of the advantages of the platform. As with any setting, it helps to know exactly how it behaves so you can account for your savings accurately.
Even small configurations are affected. With a one-second setting on an X-Small warehouse, the warehouse still waits for the next 30-second check, so it can run up to 30 seconds past its last query. For warehouses that stay up longer than the 60-second minimum after each resume, Keebo’s controller trims most of that.



