# 亚马逊 Redshift

**亚马逊 Redshift**（Amazon Redshift）是[亚马逊云科技](https://www.edgepedia.org/zh/amazon-web-services)（AWS）提供的一项全托管、拍字节级云数据仓库服务。它以列式格式存储数据，采用大规模并行处理（MPP）执行查询，并通过基于 [PostgreSQL](https://www.edgepedia.org/zh/postgresql) 的 SQL 进行访问，因此大多数现有 SQL 客户端应用只需极少改动即可使用。<sup>[1](https://docs.aws.amazon.com/redshift/latest/dg/)</sup><sup> • </sup><sup>[2](https://docs.aws.amazon.com/redshift/latest/dg/c_high_level_system_architecture.html)</sup><sup> • </sup><sup>[3](https://docs.aws.amazon.com/redshift/latest/dg/c_redshift-and-postgres-sql.html)</sup>

| 关键事实 | 详情 |
|---|---|
| 发布时间 | 2012 年 11 月 28 日宣布限量预览，价格低于每太字节每年 1,000 美元，AWS 称其为当时市面上大多数数据仓库解决方案价格的十分之一<sup>[4](https://press.aboutamazon.com/2012/11/amazon-web-services-announces-amazon-redshift)</sup> |
| 查询模型 | 大规模并行处理、列式存储、数据压缩、查询优化器、结果缓存和编译代码<sup>[5](https://docs.aws.amazon.com/en_en/redshift/latest/dg/c_challenges_achieving_high_performance_queries.html)</sup> |
| SQL 基础 | 基于 PostgreSQL；存储模式和查询执行引擎与 PostgreSQL 的实现完全不同，且省略了二级索引等部分 OLTP 特性<sup>[3](https://docs.aws.amazon.com/redshift/latest/dg/c_redshift-and-postgres-sql.html)</sup> |
| 存储层 | Redshift 托管存储（RMS）可在 Amazon S3 上扩展至拍字节级，使用高性能的基于 SSD 的本地存储作为一级缓存；在 RA3 节点上，计算和存储独立配置、独立计费<sup>[2](https://docs.aws.amazon.com/redshift/latest/dg/c_high_level_system_architecture.html)</sup> |
| 最大 RA3 集群 | ra3.16xlarge：2 至 128 个节点，每节点 48 vCPU 和 384 GiB 内存，每节点 128 TB 托管存储，总计 16,384 TB<sup>[6](https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html)</sup> |
| 无服务器选项 | 2022 年 7 月 12 日正式可用；容量自动预置和扩展，计算按秒计费<sup>[7](https://aws.amazon.com/about-aws/whats-new/2022/07/amazon-redshift-serverless-generally-available/)</sup> |
| 数据共享 | 跨集群、跨账户、跨区域实时共享事务一致的数据，无需复制；跨区域共享于 2022 年 2 月 17 日对 RA3 节点类型正式可用<sup>[8](https://aws.amazon.com/about-aws/whats-new/2022/02/amazon-redshift-cross-region-data-sharing/)</sup> |

## 历史

亚马逊云科技于 2012 年 11 月 28 日以限量预览形式发布亚马逊 Redshift，将其定位为云中快速、全托管、拍字节级的数据仓库。发布价格低于每太字节每年 1,000 美元，AWS 称其为当时客户可用的大多数数据仓库解决方案价格的十分之一。测试版参与者包括 Flipboard、NASA/JPL、Netflix 和 Schumacher Group。<sup>[4](https://press.aboutamazon.com/2012/11/amazon-web-services-announces-amazon-redshift)</sup> 2013 年 11 月，早期功能版本增加了从 [Amazon EMR](https://www.edgepedia.org/zh/amazon-emr)、HDFS 集群和 EC2 实例通过 SSH 进行并行加载的能力，以及针对加密集群的硬件安全模块支持。<sup>[9](https://aws.amazon.com/about-aws/whats-new/2013/11/11/amazon-redshift-new-performance-data-loading-security-features/)</sup>

一次重大架构变革出现在 2019 年 12 月 3 日的 AWS re:Invent 大会上，推出了采用托管存储的 RA3 实例。这些实例将计算与存储分离，客户可根据性能需求选择实例数量，并且只需为实际使用的托管存储付费。AWS 声称 RA3 实例的性能是其他云数据仓库服务的 3 倍，并表示 ra3.16xlarge 实例可支持高达 8 PB 压缩数据的工作负载。同场发布还推出了 AQUA（高级查询加速器）硬件加速缓存，据称可带来最高 10 倍的查询性能提升，以及 Redshift 数据湖导出至 [Amazon S3](https://www.edgepedia.org/zh/amazon-s3) 上 [Apache Parquet](https://www.edgepedia.org/zh/apache-parquet) 格式的功能。<sup>[10](https://press.aboutamazon.com/2019/12/aws-announces-new-analytics-capabilities-to-help-customers-embrace-data-at-scale)</sup>

亚马逊 Redshift 无服务器版于 2022 年 7 月 12 日正式可用，用户无需再选择节点类型、节点数量、工作负载管理和扩展配置；计算按工作负载持续时间按秒计费。<sup>[7](https://aws.amazon.com/about-aws/whats-new/2022/07/amazon-redshift-serverless-generally-available/)</sup> 后续版本为无服务器选项增加了 AI 驱动的扩展功能，该功能于 2026 年 4 月成为新工作组的默认设置，利用机器学习预测计算需求并在查询排队之前调整资源，基础容量范围为 8 至 512 个 Redshift 处理单元（RPU）。<sup>[11](https://aws.amazon.com/about-aws/whats-new/2026/04/amazon-redshift-serverless-ai-driven-scaling-default/)</sup>

## 架构

预置型 Redshift 数据仓库的核心基础设施组件是集群，由一个或多个计算节点组成。当集群有两个或更多计算节点时，会额外设有一个领导节点来协调计算节点并处理所有外部通信；客户端应用仅与领导节点交互，计算节点运行在独立的隔离网络上，客户端从不直接访问。领导节点解析查询、制定执行计划、编译代码、将编译后的代码分发到计算节点，并为每个节点分配一部分数据。仅引用领导节点常驻数据的查询完全在领导节点上运行。<sup>[2](https://docs.aws.amazon.com/redshift/latest/dg/c_high_level_system_architecture.html)</sup>

每个计算节点拥有由节点类型决定的专用 CPU 和内存，并被划分为多个切片，每个切片分配节点的一部分内存和磁盘空间。领导节点将数据分发到各切片并分配工作负载，各切片并行工作。创建表时，可指定一列作为分布键；行随后按该键分布到各切片，从而实现并行处理并最大限度减少节点间的数据移动。<sup>[2](https://docs.aws.amazon.com/redshift/latest/dg/c_high_level_system_architecture.html)</sup><sup> • </sup><sup>[5](https://docs.aws.amazon.com/en_en/redshift/latest/dg/c_challenges_achieving_high_performance_queries.html)</sup>

**节点类型。** 预置集群分为两个系列。密集计算（DC2）节点将数据保存在快速的本地 NVMe-SSD 存储上：dc2.large 每节点提供 2 vCPU、15 GiB 内存和 160 GB 存储，而 dc2.8xlarge 每节点提供 32 vCPU、244 GiB 内存和 2.56 TB 存储，由 2 至 128 个较大节点组成的集群总容量可达 326 TB。<sup>[6](https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html)</sup> RA3 节点使用托管存储：每个节点配备大容量高性能 SSD 用于快速本地存储，并将长期数据卸载到 Amazon S3。<sup>[12](https://docs.aws.amazon.com/redshift/latest/mgmt/redshift-mgmt.pdf)</sup> ra3.large 在多节点集群中（最多 16 个节点，总计 128 TB）每节点提供 2 vCPU、16 GiB 内存和 8 TB 托管存储，而 ra3.16xlarge 每节点提供 48 vCPU、384 GiB 内存、16 个切片和 128 TB 托管存储，集群由 2 至 128 个节点组成，托管存储总容量达 16,384 TB。<sup>[6](https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html)</sup>

**存储分层。** Redshift 托管存储自动使用基于 SSD 的本地存储作为一级缓存，并根据数据块温度、数据块年龄和工作负载模式应用优化，在需要时无缝扩展至 Amazon S3，无需任何人工操作。由于计算和存储独立扩展，集群可以仅根据计算需求来配置规模。<sup>[2](https://docs.aws.amazon.com/redshift/latest/dg/c_high_level_system_architecture.html)</sup>

**高可用性。** 在多可用区部署中，亚马逊 Redshift 自动在两个可用区部署等量的计算资源，所有计算资源在正常运行期间均可用于读写处理。RG 或 RA3 实例类型不支持单节点多可用区部署，且配置的子网组需要三个或更多子网。<sup>[13](https://docs.aws.amazon.com/redshift/latest/mgmt/overview-multi-az.html)</sup>

## 查询性能

亚马逊 Redshift 通过大规模并行处理、列式数据存储和有针对性的数据压缩编码方案相结合来实现快速查询执行。<sup>[14](https://docs.aws.amazon.com/redshift/latest/dg/c_redshift_system_overview.html)</sup> 在 MPP 下，查询处理直到最终结果聚合之前的阶段由多个计算节点执行，每个节点上的每个核心针对其分担的数据执行相同的编译查询片段。<sup>[5](https://docs.aws.amazon.com/en_en/redshift/latest/dg/c_challenges_achieving_high_performance_queries.html)</sup> 由于列式存储将相似数据按顺序存放，Redshift 应用与列式数据类型绑定的自适应压缩编码；压缩数据被读入内存并在查询执行期间解压，从而减少磁盘 I/O 并为分析留出更多内存。<sup>[5](https://docs.aws.amazon.com/en_en/redshift/latest/dg/c_challenges_achieving_high_performance_queries.html)</sup>

另外两种机制减少了重复工作。Redshift 将某些类型查询的结果缓存在领导节点的内存中，并使用无服务器编译服务将查询编译扩展到单个集群的计算资源之外。<sup>[5](https://docs.aws.amazon.com/en_en/redshift/latest/dg/c_challenges_achieving_high_performance_queries.html)</sup> 物化视图提供了另一条加速路径：创建物化视图时，Redshift 对基表执行用户指定的 SQL 并存储结果集，即使查询未显式引用物化视图，它也能自动重写查询以使用物化视图。刷新通过 REFRESH MATERIALIZED VIEW 语句执行，自动重写要求视图保持最新。<sup>[15](https://docs.aws.amazon.com/en_en/redshift/latest/dg/materialized-view-overview.html)</sup>

厂商基准测试声明自 2019 年以来一直是 Redshift 营销的一部分，当时 AWS 声称 RA3 实例的性能是其他云数据仓库服务的 3 倍。<sup>[10](https://press.aboutamazon.com/2019/12/aws-announces-new-analytics-capabilities-to-help-customers-embrace-data-at-scale)</sup> 2016 年，AWS 发布了自己的 [TPC-DS](https://www.edgepedia.org/zh/tpc-ds) 对比，声称 Redshift 在该基准测试中的性能是 Google BigQuery 的 6 倍。<sup>[16](https://aws.amazon.com/blogs/big-data/fact-or-fiction-google-big-query-outperforms-amazon-redshift-as-an-enterprise-data-warehouse/)</sup> 独立结果则不那么一致：Estuary 2025 数据仓库基准测试在 [Snowflake](https://www.edgepedia.org/zh/snowflake-inc)、BigQuery、[Databricks](https://www.edgepedia.org/zh/databricks)、Redshift 和 Microsoft Fabric 上运行 TPC-H SF1000 数据集（超过 1 TB）的摄取和查询生命周期，报告称 Redshift 和 Fabric 存在频繁的内存故障、长时间运行和僵化的预置问题，同时赞扬了 BigQuery 的速度和 Snowflake 的均衡性。<sup>[17](https://estuary.dev/blog/2025-data-warehouse-benchmark)</sup>

## 集成与数据共享

**数据共享。** Redshift 数据共享允许集群在集群、工作组、AWS 账户和 AWS 区域之间共享实时、事务一致的数据，无需复制或移动数据。使用方用自己的计算资源通过标准 SQL 查询共享数据，因此对共享数据的查询不会影响生产者集群的性能。跨区域数据共享于 2022 年 2 月 17 日正式可用，支持所有 RA3 节点类型，跨区域访问需支付数据传输费用。<sup>[8](https://aws.amazon.com/about-aws/whats-new/2022/02/amazon-redshift-cross-region-data-sharing/)</sup> 标准数据共享可跨预置集群、无服务器工作组、可用区、AWS 账户和 AWS 区域使用，也可在不同集群类型之间使用。<sup>[18](https://docs.aws.amazon.com/redshift/latest/dg/standard_datashare.html)</sup> 例如，支付公司 PayU 利用数据共享实现读工作负载隔离、治理以及跨多个 BI 和分析集群的扩展，报告称数据可在 30 分钟内可用，在某些流式场景下不到 5 秒，而此前数据每天仅更新一次。<sup>[19](https://aws.amazon.com/solutions/case-studies/payu-redshift-case-study/)</sup>

**零 ETL 与联邦查询。** 零 ETL 集成在初始加载后将数据从 [Amazon RDS](https://www.edgepedia.org/zh/amazon-rds) 或 Aurora 数据库等源复制到 Redshift 数据仓库，无需显式 ETL 管道，并监控管道健康状况。数据进入 Redshift 后，内置机器学习、物化视图和数据共享等功能即可应用于该数据。<sup>[20](https://docs.aws.amazon.com/redshift/latest/mgmt/zero-etl-using.html)</sup> 联邦查询则朝相反方向工作：领导节点连接到 RDS 或 Aurora 数据库实例以获取表元数据，计算节点发出带有下推谓词的子查询并获取结果行，使分析师能够将运营数据库与仓库数据一起查询。<sup>[21](https://docs.aws.amazon.com/en_en/redshift/latest/dg/federated-overview.html)</sup>

**机器学习。** 亚马逊 Redshift ML 让分析师能够在仓库内使用 SQL 命令创建、训练和应用机器学习模型。在线社区 Jobcase 使用 Redshift 作为其主要数据仓库已超过 8 年，报告称通过 Redshift ML 每天进行数十亿次 ML 预测，在未增加成本的情况下将会员参与度提升了 5%。<sup>[22](https://aws.amazon.com.cdn.amazon.com/solutions/case-studies/jobcase-case-study/)</sup>

## 与 PostgreSQL 的关系

亚马逊 Redshift 基于 PostgreSQL，大多数现有 SQL 客户端应用只需极少改动即可在其上运行。然而这种关系是有限的：Redshift 面向在线分析处理（OLAP）和商业智能工作负载，针对大型数据集执行复杂查询，而 PostgreSQL 则面向在线事务处理（OLTP）。存储模式和查询执行引擎与 PostgreSQL 的实现完全不同；Redshift 以列而非行存储数据，采用专门的压缩编码，且省略了面向 OLTP 的特性，如二级索引和高效的单行数据操作。PostgreSQL 9.x 包含 Redshift 不支持的功能，许多 SQL 语言元素的语法、语义和性能特征也不同。<sup>[3](https://docs.aws.amazon.com/redshift/latest/dg/c_redshift-and-postgres-sql.html)</sup><sup> • </sup><sup>[23](https://docs.aws.amazon.com/redshift/latest/dg/c_redshift-sql-implementated-differently.html?shortFooter=true)</sup>

## 市场地位

Redshift 与 Snowflake、Google BigQuery、Databricks 和微软的数据平台竞争。2025 年的一份行业分析指出，包括 Redshift 在内的前五大数据平台合计约占市场的三分之二，独立厂商 Snowflake 和 Databricks 各自的年收入约为五十亿美元，超大规模云厂商的原生服务占据其余大部分份额。<sup>[24](https://www.techradar.com/pro/bad-news-your-ai-application-isnt-that-special)</sup> 在 AWS 内部，Redshift 充当事务性服务的分析对应物：数据可以从 Redshift 导出回数据湖，使用 [Amazon Athena](https://www.edgepedia.org/zh/amazon-athena)、Amazon EMR 和 Amazon SageMaker AI 等服务进行进一步分析。<sup>[25](https://docs.aws.amazon.com/whitepapers/latest/data-warehousing-on-aws/amazon-redshift-deep-dive.html)</sup>

## References

1. [Introduction to Amazon Redshift, AWS Documentation](https://docs.aws.amazon.com/redshift/latest/dg/)
2. [Data warehouse system architecture, Amazon Redshift Developer Guide](https://docs.aws.amazon.com/redshift/latest/dg/c_high_level_system_architecture.html)
3. [Amazon Redshift and PostgreSQL, AWS Documentation](https://docs.aws.amazon.com/redshift/latest/dg/c_redshift-and-postgres-sql.html)
4. [Amazon Web Services Announces Amazon Redshift, Amazon Press Center (November 28, 2012)](https://press.aboutamazon.com/2012/11/amazon-web-services-announces-amazon-redshift)
5. [Amazon Redshift Performance, AWS Documentation](https://docs.aws.amazon.com/en_en/redshift/latest/dg/c_challenges_achieving_high_performance_queries.html)
6. [Amazon Redshift provisioned clusters, Amazon Redshift Management Guide](https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html)
7. [Amazon Redshift Serverless is now generally available, AWS What's New (July 12, 2022)](https://aws.amazon.com/about-aws/whats-new/2022/07/amazon-redshift-serverless-generally-available/)
8. [Announcing Amazon Redshift Cross-region data sharing, AWS What's New (February 17, 2022)](https://aws.amazon.com/about-aws/whats-new/2022/02/amazon-redshift-cross-region-data-sharing/)
9. [Amazon Redshift - New performance, data loading and security features, AWS What's New (November 11, 2013)](https://aws.amazon.com/about-aws/whats-new/2013/11/11/amazon-redshift-new-performance-data-loading-security-features/)
10. [AWS Announces New Analytics Capabilities to Help Customers Embrace Data at Scale, Amazon Press Center (December 3, 2019)](https://press.aboutamazon.com/2019/12/aws-announces-new-analytics-capabilities-to-help-customers-embrace-data-at-scale)
11. [Amazon Redshift Serverless AI-driven scaling is now the default for new workgroups, AWS What's New (April 27, 2026)](https://aws.amazon.com/about-aws/whats-new/2026/04/amazon-redshift-serverless-ai-driven-scaling-default/)
12. [Amazon Redshift Management Guide (PDF)](https://docs.aws.amazon.com/redshift/latest/mgmt/redshift-mgmt.pdf)
13. [Setting up Multi-AZ deployment, Amazon Redshift Management Guide](https://docs.aws.amazon.com/redshift/latest/mgmt/overview-multi-az.html)
14. [Amazon Redshift architecture, AWS Documentation](https://docs.aws.amazon.com/redshift/latest/dg/c_redshift_system_overview.html)
15. [Materialized views in Amazon Redshift, AWS Documentation](https://docs.aws.amazon.com/en_en/redshift/latest/dg/materialized-view-overview.html)
16. [Fact or Fiction: Google BigQuery Outperforms Amazon Redshift as an Enterprise Data Warehouse?, AWS Big Data Blog](https://aws.amazon.com/blogs/big-data/fact-or-fiction-google-big-query-outperforms-amazon-redshift-as-an-enterprise-data-warehouse/)
17. [The Estuary 2025 Data Warehouse Benchmark, Estuary](https://estuary.dev/blog/2025-data-warehouse-benchmark)
18. [Standard datashares, Amazon Redshift Developer Guide](https://docs.aws.amazon.com/redshift/latest/dg/standard_datashare.html)
19. [Unlocking Faster, Cost-Effective Data Analytics Using Amazon Redshift with PayU, AWS Case Study](https://aws.amazon.com/solutions/case-studies/payu-redshift-case-study/)
20. [Zero-ETL integrations, Amazon Redshift Management Guide](https://docs.aws.amazon.com/redshift/latest/mgmt/zero-etl-using.html)
21. [Querying data with federated queries in Amazon Redshift, AWS Documentation](https://docs.aws.amazon.com/en_en/redshift/latest/dg/federated-overview.html)
22. [Jobcase Scales ML Workflows to Support Daily Predictions Using Amazon Redshift ML, AWS Case Study](https://aws.amazon.com.cdn.amazon.com/solutions/case-studies/jobcase-case-study/)
23. [Features that are implemented differently, Amazon Redshift Developer Guide](https://docs.aws.amazon.com/redshift/latest/dg/c_redshift-sql-implementated-differently.html?shortFooter=true)
24. [Bad news: your AI application isn't that special, TechRadar](https://www.techradar.com/pro/bad-news-your-ai-application-isnt-that-special)
25. [Amazon Redshift deep dive, Data Warehousing on AWS Whitepaper](https://docs.aws.amazon.com/whitepapers/latest/data-warehousing-on-aws/amazon-redshift-deep-dive.html)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 17, 2026; Sep 30, 2026; Oct 15, 2026 · Edited: Sep 30, 2026; Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Databases and data systems › Data mining, warehousing, and big data › Data warehousing

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/amazon-redshift

English original: https://www.edgepedia.org/amazon-redshift
