AWS / Data warehouse
How to pause Amazon Redshift clusters on a schedule (and what it saves)
A development Redshift cluster answers queries ten hours a day and bills every node for twenty-four. Pausing it outside working hours removes most of the compute charge. Before you do, check which costs keep running and which clusters must never pause.
What a pause does
A provisioned Redshift cluster bills its nodes by the hour, whether or not anyone is connected. Pausing a cluster stops that charge without deleting anything. According to the AWS pause and resume guide, Redshift takes a snapshot, ends running queries and moves the cluster to pausing, then paused. Resume brings back the same cluster, endpoint and data.
Pause, resume and check the status with the AWS CLI:
aws redshift pause-cluster --cluster-identifier analytics-dev
aws redshift resume-cluster --cluster-identifier analytics-dev
aws redshift describe-clusters --cluster-identifier analytics-dev \
--query "Clusters[0].ClusterStatus"Before you automate it:
- A pause usually completes within 15 minutes. A resume takes several minutes depending on cluster size, and queries can be slower for a while as data is re-hydrated.
- While paused, the cluster accepts no connections or queries, and you cannot resize or modify it.
- AWS refuses to pause a cluster that is not in the
availablestate, for example during a resize. It also refuses clusters with automated snapshots turned off, HSM clusters and EC2-Classic clusters. - A pause or resume cannot be cancelled once it has started.
- Node IP addresses can change after a resume, so connect through the cluster endpoint.
What stops costing money, and what does not
The Redshift pricing page says on-demand billing is suspended while a cluster is paused. Storage is a separate line on the bill and keeps running.
| Cost | While paused | Note |
|---|---|---|
| On-demand node hours | Not billed | The saving. Billed per second around each status change. |
| Managed storage (RA3) and backups | Still billed | Your data stays where it is. |
| Reserved nodes | Still billed | A reservation is paid whether the cluster runs or not. |
| Secrets Manager secret | Still billed | Only if the cluster uses a managed admin password. |
Check reserved nodes first. Pausing a cluster covered by a reservation saves nothing, because AWS bills the reservation regardless of usage. Scheduling saves money on on-demand nodes. The same trade-off applies to RDS and EC2, and the guide to commitments and scheduling explains how to choose between them.
How much a schedule saves
Count node-hours, then multiply by the on-demand node price from the pricing page or your bill. A week has 168 hours. A cluster that must be ready from 8 a.m. to 8 p.m., Monday to Friday, needs 60 of them.
Add the resume time. If the cluster starts resuming 30 minutes before 8 a.m., that adds 2.5 hours a week, for 62.5 hours of compute. The other 105.5 hours are paused: about 63% fewer node-hours than a cluster that runs all week.
That figure covers compute only. On an RA3 cluster with a lot of managed storage, the total bill falls by less than 63%, because storage costs the same. Look at compute and storage separately in Cost Explorer before you quote a saving.
Scheduling it yourself with the Redshift scheduler
AWS can do this natively. In the Redshift console, a recurring pause and resume schedule creates two scheduled actions, suffixed -pause and -resume, which run under an IAM role that the Redshift scheduler assumes. For one or two clusters in one account, that is often enough.
With more clusters, it takes more work. Each cluster needs its own pair of actions, in each account and region. A resume scheduled at the exact start time leaves the team waiting while the cluster comes back. The console does not warn you about clusters that should never pause. And when a developer needs the cluster at 9 p.m., someone with console access has to resume it and remember to pause it again.
Clusters that must not pause
A cluster with no connections can still be in use. Two kinds of clusters serve others without anyone connecting to them:
- Datashare producers. Consumer clusters query their data through data sharing. Pausing the producer cuts off every consumer.
- Zero-ETL integration targets. They receive replicated data from a source database. Pausing them interrupts the replication.
Check both before you schedule a cluster: describe-data-shares-for-producer and describe-inbound-integrations with the cluster's namespace ARN. Repeat the check over time, because someone can add a datashare after the schedule is set.
How SnoozeDB schedules Redshift
SnoozeDB pauses and resumes provisioned clusters on the same schedules as RDS and EC2, through the cross-account role you already created. The optional Redshift scheduling module adds the permissions listed in the AWS connection guide, limited to clusters in your account.
- Nothing is paused automatically. A discovered cluster waits in To triage until an owner or admin chooses to manage it, even when the organization activates new resources automatically.
- Resume 30 minutes early. The resume starts 30 minutes before the wake time, so the cluster is ready on time. The pause runs at the scheduled stop time.
- Data sharing is a lock. Datashare producers and zero-ETL targets are locked as system protected and never paused. Just before each pause, SnoozeDB asks AWS again and locks the cluster if a datashare or integration appeared since the last sync.
- AWS refusals are retried. When AWS refuses a pause or resume during a resize or maintenance, SnoozeDB logs the state AWS reported and tries again on the next run. Other resources are not affected.
- Starting from Slack. In the channel an admin allowed, a developer can resume a cluster for 1, 3 or 5 hours. The Slack start article describes the controls.
A managed Redshift cluster counts as one database in your plan. The savings report counts compute only, from the node price and node count, for the time the cluster actually spent paused. The 30-minute lead is not counted as a saving, and storage is never included.
What is not scheduled
Redshift Serverless is not scheduled, because it has nothing to pause: AWS bills its compute per second while queries run and charges nothing when idle. If a workgroup still costs too much, review its base capacity and its queries; a schedule will not help. The Aurora Serverless v2 comparison covers the same question for databases.
Production clusters are excluded by your production tags and exclusion rules, just as for RDS. Start with a development or sandbox cluster that nobody queries overnight, and measure one full week of pauses before you schedule more.
To find idle clusters, SnoozeDB's cost recommendations flag provisioned clusters with no connections over 14 days, with a link to schedule each one.