Set it up
- Open the infrastructure and select the Settings tab.
- In Business hours, turn it on and choose When it sleeps.
- 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.
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.