Amazon Redshift uses two primary node types - leader nodes and compute nodes - that work together to process queries and manage data in its cloud-based data warehouse service.
Each Redshift cluster contains at least one leader node and multiple compute nodes. The leader node receives queries, parses them, and develops execution plans. Compute nodes execute these plans by reading data from their local storage, processing it, and returning results to the leader node.
This separation allows Redshift to scale compute resources independently from storage, enabling clusters to handle large datasets efficiently. The leader node acts as a single access point for clients, while compute nodes distribute the workload across the cluster.
| Node Type | Role | Default Size |
|---|---|---|
| Leader Node | Query parsing, planning, and coordination | dc2.large |
| Compute Node | Data storage and query execution | ra3.xlplus or dc2.large |
For most workloads, Redshift recommends using RA3 nodes with managed storage. These separate compute and storage resources, allowing you to scale each independently. The RA3.xlplus node type provides 304GB of memory and uses high-bandwidth NVMe disks for local storage.
DC2 nodes offer more memory per vCPU and are better suited for workloads requiring significant local storage, such as those using Redshift Spectrum to query data directly from S3. The DC2.large node type provides 16 vCPUs and 64GB of memory.
Many users assume that adding more compute nodes will always improve performance. However, Redshift's Massively Parallel Processing (MPP) architecture means that query performance depends on both the number of nodes and their configuration. Adding too many small nodes can actually degrade performance due to increased network traffic between nodes.
Another misconception is that leader nodes store data. In reality, leader nodes only cache result sets for reuse. All persistent data storage occurs on compute nodes or in managed storage when using RA3 nodes.
To improve node usage, monitor your cluster's performance using Amazon CloudWatch metrics. Pay particular attention to CPU utilization, database writes, and read throughput. Redshift provides several tools for analyzing and improving query performance, including the EXPLAIN command and the Redshift Query Monitoring Rules feature.
When setting up a new cluster, start with a conservative number of nodes and scale up as needed based on your workload requirements. Consider using Redshift's elastic resize feature to quickly adjust your cluster size during periods of peak demand.