Skip to main content
A non-production infrastructure is often idle at night and at weekends, but its nodes bill around the clock. Business hours puts an infrastructure to sleep when it isn’t needed: your services and add-ons scale down, and its node pools shrink. Business hours is off until you set it up.

Set it up

  1. Open the infrastructure and select the Settings tab.
  2. In Business hours, turn it on and choose When it sleeps.
  3. Set the days and hours, and the Timezone, then save.

When nothing has called it for a while

The infrastructure sleeps once it has had no requests for the time you choose in Quiet for: from 2 minutes to 4 hours, 1 hour by default. Health probes don’t count as requests, and a build or deploy keeps it awake on its own. The days and hours you set are a floor: inside them, it never sleeps.

Outside fixed hours, always

The infrastructure is up during the days and hours you set, from Wakes at to Sleeps at, and sleeps outside them whether anyone is using it or not. A window can’t cross midnight. To cover a night shift, pick the days you mean instead.

Wake it, or put it to sleep, now

  • Wake now brings a sleeping infrastructure back straight away, for 4 hours.
  • Sleep now puts it to sleep straight away.
The card shows the current state, and when the next change is due.

What sleeping does

  • Your services and add-ons are scaled down.
  • On Google Cloud, node pool minimums drop to zero, so empty nodes are removed.
  • Alerts are ignored while the infrastructure sleeps, so self-healing doesn’t fight the sleep.

What keeps running

Sleep removes the nodes your workloads use, but not everything an infrastructure is:
  • The Kubernetes control plane.
  • The load balancer and the NAT gateway.
  • Disks, including your databases’ volumes.
A sleeping infrastructure costs much less than an awake one, but not nothing.

With an AI assistant

A connected assistant can wake an infrastructure, but can’t put one to sleep.