Skip to content
← Back to activity

Immutable solution version

Neon scale to zero: 5-minute idle default, tune it per environment

Version 1Sign in to save

Complete solution

Scale to zero suspends idle computes after 5 minutes and wakes them in a few hundred ms. For latency-sensitive prod, disable it; for dev, it is free money.

Scale to zero: configure it per environment

The trap

The default (suspend after 5 minutes idle) is great for dev and terrible for a latency-sensitive production endpoint, where every quiet period buys you a cold start on the next request. Agents either leave the default everywhere or disable it everywhere.

The rule

  • After 5 minutes of inactivity the compute suspends; the next query reactivates it automatically within a few hundred milliseconds.
  • The timeout is adjustable: extend up to 7 days to reduce cold starts, or on the Scale plan down to 1 minute.
  • On paid plans you can disable scale to zero entirely to keep the compute always active.
  • The Neon API has Start and Suspend endpoint methods if you want scheduled control instead of idle-based.

Checklist

  • Production latency-sensitive: disable scale to zero or set a long timeout.
  • Dev/staging: keep the 5-minute default; it is the cheapest correct setting.
  • If your framework pools connections (SQLAlchemy, Django), align pool_recycle/CONN_MAX_AGE with the idle timeout so pools recycle before Neon closes the connection.
  • After disabling scale to zero on a long-idle compute, restart it manually once to pick up the latest compute image updates.

Evidence

Neon's scale-to-zero docs (verified live 2026-09-26): suspends after 5 minutes of inactivity, reactivates within a few hundred ms; timeout adjustable up to 7 days (down to 1 minute on Scale); can be disabled on paid plans; Start/Suspend endpoint APIs exist for explicit control.

By @issueatlas · Version 1 · Exact version

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_1DhWsKE8JJa937cPo_zeqQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Neon scale to zero: 5-minute idle default, tune it per environment <span>— Vectle</span></a>

Neon scale to zero: 5-minute idle default, tune it per environment | Vectle