AWS Redshift Cost Optimization Guide: Serverless RPUs and WLM
How to cut your AWS Redshift bill by optimizing Serverless base capacity, managing RPUs, using RA3 instances, and tuning Workload Management (WLM).
By Dinesh ChandraSenior Data and AI Engineer · SnowPro certifiedChanged: Added usage and query-history SQL, CLI examples, Pitfalls, FAQ and a closing section; clarified concurrency scaling settings.
- 1.Redshift Serverless base capacity is a floor, not a suggestion. Setting it too high guarantees a high baseline bill.
- 2.For provisioned RA3 clusters, pause them when not in use. A cluster left running over the weekend costs money for no reason.
- 3.Concurrency Scaling allows Redshift to handle peaks, but must be monitored closely to avoid surprising AWS bill shocks.
- 4.Run SYS system views to understand which queries are scanning the most blocks.
Table of contents
AWS Redshift is exceptionally fast when tuned, but it is notoriously easy to architect yourself into an unexpected AWS bill.
Unlike Snowflake or BigQuery, where cost is directly tied to a specific warehouse or query scan, the Redshift billing surface comprises RPUs (Serverless), Nodes (Provisioned), Concurrency Scaling clusters, and Managed Storage.
This guide explores practical optimization tactics to stop AWS Redshift from draining your data platform budget.
1. Redshift Serverless: Tuning Base Capacity
Redshift Serverless sizes compute automatically in Redshift Processing Units (RPUs). The minimum configurable base RPU is 4 (in supported regions, for up to 32 TB of managed storage); above that it moves in steps of 8.
The cost trap: The base capacity is a hard floor.
If you set your base capacity to 128 RPUs to guarantee fast BI dashboard load times, you pay for 128 RPUs anytime the workgroup is active, even if the active query is just SELECT COUNT(1) FROM dim_date.
- The Fix: Lower the base RPU capacity and let Serverless scale up automatically for complex jobs. Use a dedicated smaller workgroup for small ad-hoc BI tasks.
2. Provisioned RA3: Pause and Resume
If you are running provisioned RA3 nodes, you pay per node per hour.
If your data team only works Monday to Friday, 9 to 5, leaving a 4-node ra3.4xlarge cluster running over the weekend wastes thousands of dollars.
- The Fix: Use AWS EventBridge and Redshift’s “Pause and Resume” API to shut down development and staging clusters automatically at 6 PM on Friday and wake them up at 8 AM on Monday.
3. Concurrency Scaling Costs
Concurrency scaling automatically spins up transient clusters when your workload experiences query queueing. You get 1 free hour of concurrency scaling per 24 hours the main cluster operates.
- The Trap: If a bad dashboard or an automated tool slams Redshift with hundreds of simultaneous queries, concurrency scaling will deploy up to 10 additional server clusters in seconds, billing by the second.
- The Fix: Cap the cluster-wide
max_concurrency_scaling_clustersparameter at a safe threshold (e.g., 1 or 2), and setconcurrency_scalingtooffon the Workload Management (WLM) queues that serve ad-hoc users.
4. Query & Storage Tuning
Like all columnar databases, scanning unnecessary blocks burns CPU and memory.
- Use
SYS_QUERY_HISTORYto find queries returning huge data but spending long times in the execution phase. - Ensure large tables have correct Sort Keys (so Redshift can skip blocks) and Distribution Keys (to minimize network broadcast during joins). The mechanics are in Redshift sort keys, WLM and Spectrum.
Before deploying sweeping architectural changes, use our Cost Estimator to compare how a theoretical workload on Redshift Serverless compares directly to competitors like Snowflake.
5. Measure Before You Tune
Every fix above starts with knowing where the RPU-seconds went. On Serverless, SYS_SERVERLESS_USAGE records charged RPU-seconds at one-minute granularity and keeps seven days of history (it is visible to superusers only). Multiply by your region’s RPU-hour price to get a daily figure:
-- Daily charged RPU-hours for the last week (Serverless only)
SELECT TRUNC(start_time) AS usage_day,
SUM(charged_seconds) / 3600.0 AS charged_rpu_hours
FROM sys_serverless_usage
GROUP BY 1
ORDER BY 1 DESC;
Then find the queries behind the busiest days. Times in SYS_QUERY_HISTORY are in microseconds:
-- Slowest successful queries in the last 7 days
SELECT query_id,
user_id,
elapsed_time / 1000000.0 AS elapsed_s,
queue_time / 1000000.0 AS queue_s,
returned_rows,
LEFT(query_text, 120) AS query_snippet
FROM sys_query_history
WHERE start_time > DATEADD(day, -7, GETDATE())
AND status = 'success'
ORDER BY elapsed_time DESC
LIMIT 20;
Long queue_s on a provisioned cluster is the signal that concurrency scaling is about to spend money. Long elapsed_s with large returned_rows usually points at a dashboard pulling raw rows instead of aggregates.
For the provisioned fix in section 2, the AWS CLI calls are what your EventBridge schedule (or a small Lambda) runs:
aws redshift pause-cluster --cluster-identifier analytics-dev
aws redshift resume-cluster --cluster-identifier analytics-dev
For Serverless, lower the floor on a workgroup and put a usage limit on it so a runaway workload is logged instead of discovered on the invoice:
aws redshift-serverless update-workgroup \
--workgroup-name adhoc-bi \
--base-capacity 8
aws redshift-serverless create-usage-limit \
--resource-arn arn:aws:redshift-serverless:us-east-1:123456789012:workgroup/EXAMPLE-ID \
--usage-type serverless-compute \
--amount 200 \
--period daily \
--breach-action log
The --amount is in RPU-hours. Start with log, watch a few weeks of breaches, and only then consider deactivate for non-production workgroups.
Pitfalls
Setting base capacity for the peak dashboard. You pay that floor whenever the workgroup is active. Size the base for typical load and let Serverless scale up.
Pausing production by schedule. A paused cluster fails every scheduled load and dashboard that hits it. Pause only dev and staging, and tag them so the schedule cannot pick up production.
Concurrency scaling on every queue. Ad-hoc and BI tools generate bursts that scaling clusters bill for. Turn concurrency_scaling on only for queues whose latency you are willing to pay for.
Reading cost from the console graph alone. It hides which user or query caused the spend. Query SYS_SERVERLESS_USAGE and SYS_QUERY_HISTORY and join the busy windows to the busy queries.
Tuning sort keys before checking who scans what. Fix the queries that dominate elapsed time first; a new sort key on a table nobody filters saves nothing.
FAQ
Is Redshift Serverless cheaper than provisioned RA3?
It depends on how many hours a day the warehouse is busy. Serverless bills RPU-seconds only while queries run, which suits spiky or part-time workloads. A cluster busy most of the day is often cheaper as provisioned nodes, especially with reserved pricing, so compare a month of charged_seconds against the node-hour cost before switching.
What does the base capacity setting actually control? It is the RPU count a Serverless workgroup starts with when it wakes for a query, and the minimum you are billed for while active. Serverless can scale above it for heavy queries. A lower base means slower cold starts on heavy queries but a lower floor on every light one.
How do I stop concurrency scaling from surprising me?
Cap max_concurrency_scaling_clusters in the cluster parameter group and set concurrency_scaling to off on queues that do not need it. Then watch queries in SYS_QUERY_HISTORY with compute_type other than primary to see what actually ran on scaling clusters.
Does storage matter much for the Redshift bill? Usually less than compute. Managed storage is billed separately from compute, so idle RPUs and always-on nodes tend to dominate. Storage still deserves a look when large staging or backup tables are never dropped.
Where should I start if the bill doubled last month?
Run the daily charged_rpu_hours query (or the provisioned equivalent in Cost Explorer), find the days that jumped, and pull the slowest queries from those days. Most jumps trace back to one new dashboard, one new schedule, or one changed base capacity.
What this means for your pipelines
Treat Redshift cost as a set of floors and ceilings you choose on purpose: a base capacity sized for normal load, a pause schedule for non-production clusters, a cap on concurrency scaling, and a usage limit that logs before it surprises you. Then measure weekly from the system views rather than the invoice. If you are still deciding between platforms, read Redshift vs Snowflake and the cloud warehouse cost comparison before you resize anything.
Senior Data & AI Engineer · SnowPro Core & Gen AI Certified
4+ years building production data platforms on Snowflake, Databricks, AWS, and Azure. I write from hands-on experience with Medallion architectures, dbt, Airflow, PySpark, and Snowflake Cortex AI. Every tutorial on this blog reflects real pipeline decisions, not documentation rewrites.
Read more about the author →