# 存储与计算分离

**存储与计算分离**是数据系统中的一项架构原则，其中处理层（执行查询的引擎）与持久化层（持有数据文件的服务）作为独立的、可分别扩展的组件部署，通过网络连接，而非运行在同一台机器上。<sup>[1](https://opendatalakehouse.com/kb/separation-of-compute-and-storage/)</sup> Google BigQuery 在 2012 年发布时引入了这一模式，[Snowflake](https://www.edgepedia.org/zh/snowflake) 从 2014 年起将其商业化并推广开来，到 2010 年代后期，它已成为云数据平台的基础设计。<sup>[2](https://cloud.google.com/blog/products/bigquery/separation-of-storage-and-compute-in-bigquery)</sup><sup> • </sup><sup>[3](https://www.ml4devs.com/articles/big-data-evolution-history/)</sup><sup> • </sup><sup>[4](https://www.moonfire.com/stories/the-lakehouse-era/)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | 计算引擎与数据存储是独立的、可分别扩展的层，通过网络连接，无物理耦合。<sup>[1](https://opendatalakehouse.com/kb/separation-of-compute-and-storage/)</sup> |
| 早期重要部署 | Google BigQuery，2012 年发布，存储位于 Colossus，计算位于 Dremel 集群。<sup>[2](https://cloud.google.com/blog/products/bigquery/separation-of-storage-and-compute-in-bigquery)</sup><sup> • </sup><sup>[22](https://dbs.uni-leipzig.de/research/publications/parallel-query-processing-in-shared-disk-database-systems)</sup> |
| 使能技术 | 廉价、可扩展的云对象存储（Amazon S3、Google Cloud Storage、Azure Blob Storage）将存储成本与容量同计算解耦。<sup>[4](https://www.moonfire.com/stories/the-lakehouse-era/)</sup> |
| 对比系统 | Hadoop 将数据存储在执行计算的同一批节点上，两者紧密耦合。<sup>[4](https://www.moonfire.com/stories/the-lakehouse-era/)</sup> |
| 主要优势 | 独立扩展、无状态且具容错能力的计算、原地数据共享、符合 ACID 的存储操作，以及逻辑而非物理的存储模型。<sup>[2](https://cloud.google.com/blog/products/bigquery/separation-of-storage-and-compute-in-bigquery)</sup> |
| 主要代价 | 网络延迟：计算层必须跨越网络边界才能访问远程存储，因此缓存成为性能的核心。<sup>[5](https://apxml.com/courses/building-scalable-data-warehouses/chapter-1-mpp-architecture-storage-internals/decoupling-compute-storage)</sup> |

## 背景：耦合架构

在云时代之前，分析型数据库将存储与计算放在一起。数据仓库、Hadoop 平台和无共享数据库集群都将数据存储在处理数据的节点上或节点旁。计算与存储分离是否是理想的数据管理方式，这个问题在云之前就已存在，争论了数十年，但云服务给出了一个实用的答案。<sup>[6](https://www.teradata.com/insights/data-architecture/the-power-of-separating-cloud-compute-and-cloud-storage)</sup> 在无共享系统中，每个节点持有私有内存和私有存储，这保持了低成本，但将两种资源类型彼此绑定。<sup>[7](https://citeseerx.ist.psu.edu/document?doi=d422c220eecbcd5b5c21ac0533641019122d429c&repid=rep1&type=pdf)</sup>

**云的转变。** 进入 2010 年代，两大趋势迫使改变：云基础设施，以及廉价、可扩展的存储。云提供商以低成本提供几乎无限的存储，且独立于计算。分析平台对此的回应是将数据存储在集中的云存储服务中，并按需启动计算资源来查询。这种方式的典型代表是 Snowflake 和 Google BigQuery。<sup>[4](https://www.moonfire.com/stories/the-lakehouse-era/)</sup>

## 主要平台如何实现

**Google BigQuery** 于 2012 年发布，采用全托管、无服务器的运营模式，可快速扩展的多租户计算，按作业计费，以及存储与计算分离。它的四个构建模块是 Dremel——执行 Standard SQL 查询的多租户计算集群；Colossus——Google 的全球存储系统；拍比特级的 Jupiter 网络——计算与存储通过它通信；以及 Borg——负责编排该服务。Google 将这种分离记录为一种设计，使 BigQuery 能够独立扩展存储与计算，并在不中断服务的情况下对每一层部署改进。<sup>[2](https://cloud.google.com/blog/products/bigquery/separation-of-storage-and-compute-in-bigquery)</sup><sup> • </sup><sup>[8](https://docs.cloud.google.com/bigquery/docs/introduction?authuser=2)</sup> BigQuery 存储是一项与计算分开计费的托管服务，跨多个可用区复制数据，设计目标为 99.999999999%（11 个 9）的年持久性。<sup>[9](https://docs.cloud.google.com/bigquery/docs/storage_overview)</sup>

这种分离还跨越了云边界。BigQuery Omni 扩展了该架构，在其他云中运行 BigQuery 查询引擎，因此数据不必物理迁移到 BigQuery 存储中；处理在数据所在之处进行，结果返回 Google Cloud 或直接写入 [Amazon S3](https://www.edgepedia.org/zh/amazon-s3) 存储桶或 Blob Storage。<sup>[10](https://docs.cloud.google.com/bigquery/docs/omni-introduction?hl=en)</sup>

**Snowflake** 成立于 2012 年，于 2014 年 10 月公开发布。其 2016 年的 SIGMOD 论文直接陈述了设计：Snowflake 将存储与计算分离。该架构被描述为传统共享磁盘与无共享数据库架构的混合体：像共享磁盘系统一样，它使用一个可从所有计算节点访问的中央数据存储库；像无共享系统一样，它用大规模并行处理集群来执行查询，集群的节点在本地缓存部分数据。存储位于云对象存储中，采用内部优化的、压缩的列式格式，组织为微分区，而每个虚拟仓库是一个独立的计算集群，与其他虚拟仓库不共享任何计算资源。<sup>[3](https://www.ml4devs.com/articles/big-data-evolution-history/)</sup><sup> • </sup><sup>[11](https://www.snowflake.com/wp-content/uploads/2019/06/Snowflake_SIGMOD.pdf?_fsi=7hkSrLqs)</sup><sup> • </sup><sup>[12](https://docs.snowflake.com/en/user-guide/intro-key-concepts)</sup> Snowflake 的年度报告将该平台描述为存储、计算和云服务三个可独立扩展但逻辑上集成的层。<sup>[13](https://ebs.publicnow.com/view/19BED3A4F21B071ADA42047FAABA7613766D3DF9)</sup>

各厂商用不同的措辞描述同一理念。Snowflake 在论文和当前文档中使用动词“分离”，同时也将架构描述为混合体；Google 使用名词形式；AWS 的服务文档陈述结果，即计算与托管存储独立扩展、独立计费，并用动词“分离”作为一节标题；[Databricks](https://www.edgepedia.org/zh/databricks) 则谈论在数据湖之上实现数据仓库的功能，而非拆分任何东西。<sup>[14](https://hidekazu-konishi.com/entry/cloud_data_warehouse_history_and_timeline.html)</sup>

**开源系统**遵循了同样的路径。[Apache Doris](https://www.edgepedia.org/zh/apache-doris) 在 3.0 版本中引入了存算分离架构，将计算层与存储层完全分离，支持独立的弹性扩展，保留了用于查询入口和解析的 FE 前端节点，同时在数据层新增 Meta Service 来管理元数据。<sup>[15](https://doris.apache.org/docs/4.x/features-architecture/system-architecture/)</sup>

## 优势

根据 Google Cloud 的博客，BigQuery 从解耦中获得了几项具体好处：存储廉价、实际上无边无际且平滑扩展；计算无状态且容错；数据共享原地完成且独立于规模；存储操作满足 ACID 要求；存储模型是逻辑的而非物理的。<sup>[2](https://cloud.google.com/blog/products/bigquery/separation-of-storage-and-compute-in-bigquery)</sup>

在运营层面，传统数据库在读写操作、分析操作和数据库管理任务之间共享资源，这造成资源冲突并拖慢查询。分离让每一层能够动态分配资源，而不影响另一层的性能或可用性，并让存储与计算的改进独立发布。<sup>[8](https://docs.cloud.google.com/bigquery/docs/introduction?authuser=2)</sup> Snowflake 陈述了面向用户的后果：分离存储与计算简化了基础设施管理和性能调优等传统数据工程挑战。<sup>[12](https://docs.snowflake.com/en/user-guide/intro-key-concepts)</sup> 多个计算集群可以并发地对共享存储进行操作而无争用，这是那个时代在架构上最具特色的创新。<sup>[3](https://www.ml4devs.com/articles/big-data-evolution-history/)</sup>

## 代价与工程挑战

主要的工程挑战是网络延迟。由于计算层必须跨越网络边界才能访问远程存储，解耦设计依赖缓存，维持高缓存命中率对性能至关重要。<sup>[5](https://apxml.com/courses/building-scalable-data-warehouses/chapter-1-mpp-architecture-storage-internals/decoupling-compute-storage)</sup> Snowflake 的设计直接反映了这一点：每个计算节点在本地磁盘上缓存部分表数据，尽管权威数据源位于远程。<sup>[11](https://www.snowflake.com/wp-content/uploads/2019/06/Snowflake_SIGMOD.pdf?_fsi=7hkSrLqs)</sup>

缓存有其自身的经济学。对象存储按请求计费，而带本地附加存储的计算实例按小时收取固定费用，因此 2025 年对经典五分钟规则的一次修订发现，在 AWS 上，对于延迟敏感型工作负载，系统每小时发出两次请求时缓存即可回本；对于非延迟敏感型工作负载，则为每秒七次请求。同一分析指出，对于存储优化型实例，S3 的读取带宽已经赶上或超过了本地读取带宽，尽管本地附加存储通过避免网络往返仍提供更低的延迟。<sup>[16](https://vldb.org/cidrdb/papers/2025/p4-duwe.pdf)</sup>

## 湖仓的延伸

湖仓将这一模式带入开放存储格式。湖仓被定义为一个基于低成本、可直接访问的存储的数据管理系统，同时提供传统分析型 DBMS 的特性，如 ACID 事务、数据版本控制、审计、索引、缓存和查询优化。湖仓特别适合计算与存储分离的云环境，因为不同的应用可以在完全独立的计算节点上按需运行（例如用于机器学习的 GPU 集群），同时直接访问相同的存储数据。<sup>[17](https://www.databricks.com/sites/default/files/2020/12/cidr_lakehouse.pdf)</sup> Snowflake 的 Apache Iceberg 表遵循同样的逻辑，将数据和元数据存储在客户管理的外部云存储中，如 Amazon S3、Google Cloud Storage 或 Microsoft Azure Storage。<sup>[12](https://docs.snowflake.com/en/user-guide/intro-key-concepts)</sup>

这种分离现在是几乎所有现代数据平台的基础，并且已经从数仓扩展到可观测性领域，那里的架构正转向解耦模型，存储、计算和数据可视化作为独立的层运行，使团队能够存储更多遥测数据并按需扩展计算。<sup>[4](https://www.moonfire.com/stories/the-lakehouse-era/)</sup><sup> • </sup><sup>[18](https://www.techradar.com/pro/evolving-observability-architecture-for-cloud-scale-event-data)</sup>

## AI 时代

AI 工作负载使存储与计算的问题重新受到讨论。在 AI 基础设施规划中，一个常见的假设是存储应按计算的比例扩展，这在早期可行，但在生产环境中失效：计算投资是间歇性的、效率驱动的，而存储随数据增长、保留策略和治理要求持续扩展，并随时间推移成为主导的成本驱动因素。<sup>[19](https://www.techradar.com/pro/stop-thinking-of-ai-data-centers-as-compute-systems)</sup> AI 工作流的不同阶段也需要不同的存储，正在处理的数据需要高性能，而检查点或历史数据集则强调持久性和成本。<sup>[20](https://www.techradar.com/pro/ai-storagemaxxing-your-gpus-are-optimized-what-about-your-data)</sup>

数据流动性已成为设计问题的一部分。计算资源在超大规模云厂商、专业 GPU 提供商和新型云之间重新分配相对直接，但大型训练数据集和模型产物则远不那么容易迁移，数据取回费用可能将组织束缚在早期的基础设施决策上。开放标准和可互操作的存储可以在数据与计算之间提供一定程度的分离，让组织能够随着市场条件变化而调整。<sup>[20](https://www.techradar.com/pro/ai-storagemaxxing-your-gpus-are-optimized-what-about-your-data)</sup> 一些分析人士认为，这项已存在十年的分离原则需要为 AI 重新思考，在新模式下，存储被持续丰富并准备好供 AI 系统使用，而非被动地持有数据。<sup>[21](https://www.infoworld.com/article/4138058/why-ai-requires-rethinking-the-storage-compute-divide.html)</sup>

## References

1. [Separation of Compute and Storage, OpenDataLakehouse](https://opendatalakehouse.com/kb/separation-of-compute-and-storage/)
2. [Separation of storage and compute in BigQuery, Google Cloud Blog](https://cloud.google.com/blog/products/bigquery/separation-of-storage-and-compute-in-bigquery)
3. [From Data Warehouses to Data Mesh: Evolution of Big Data, ml4devs](https://www.ml4devs.com/articles/big-data-evolution-history/)
4. [The Lakehouse Era: How Open Storage and Stateless Compute Are Reshaping Data Infrastructure, Moonfire](https://www.moonfire.com/stories/the-lakehouse-era/)
5. [Decoupling Compute and Storage Architecture, apxml](https://apxml.com/courses/building-scalable-data-warehouses/chapter-1-mpp-architecture-storage-internals/decoupling-compute-storage)
6. [The Power of Separating Cloud Compute And Cloud Storage, Teradata](https://www.teradata.com/insights/data-architecture/the-power-of-separating-cloud-compute-and-cloud-storage)
7. [Assessment of Scaleable Database Architectures for CDR Analysis, CiteSeerX](https://citeseerx.ist.psu.edu/document?doi=d422c220eecbcd5b5c21ac0533641019122d429c&repid=rep1&type=pdf)
8. [BigQuery overview, Google Cloud Documentation](https://docs.cloud.google.com/bigquery/docs/introduction?authuser=2)
9. [Overview of BigQuery storage, Google Cloud Documentation](https://docs.cloud.google.com/bigquery/docs/storage_overview)
10. [Introduction to BigQuery Omni, Google Cloud Documentation](https://docs.cloud.google.com/bigquery/docs/omni-introduction?hl=en)
11. [The Snowflake Elastic Data Warehouse, SIGMOD 2016 paper](https://www.snowflake.com/wp-content/uploads/2019/06/Snowflake_SIGMOD.pdf?_fsi=7hkSrLqs)
12. [Snowflake key concepts and architecture, Snowflake Documentation](https://docs.snowflake.com/en/user-guide/intro-key-concepts)
13. [Snowflake Inc. Annual Report for Fiscal Year Ending January 31, 2026 (Form 10-K)](https://ebs.publicnow.com/view/19BED3A4F21B071ADA42047FAABA7613766D3DF9)
14. [Cloud Data Warehouse History and Timeline, hidekazu-konishi.com](https://hidekazu-konishi.com/entry/cloud_data_warehouse_history_and_timeline.html)
15. [System Architecture, Apache Doris documentation](https://doris.apache.org/docs/4.x/features-architecture/system-architecture/)
16. [The Five-Minute Rule for the Cloud: Caching in Analytics Systems, CIDR 2025](https://vldb.org/cidrdb/papers/2025/p4-duwe.pdf)
17. [Lakehouse: A New Generation of Open Platforms that Unify Data Warehousing and Advanced Analytics, CIDR 2021](https://www.databricks.com/sites/default/files/2020/12/cidr_lakehouse.pdf)
18. [Evolving observability architecture for cloud-scale event data, TechRadar Pro](https://www.techradar.com/pro/evolving-observability-architecture-for-cloud-scale-event-data)
19. [Stop thinking of AI data centers as compute systems, TechRadar Pro](https://www.techradar.com/pro/stop-thinking-of-ai-data-centers-as-compute-systems)
20. [AI Storagemaxxing: Your GPUs are optimized, what about your data?, TechRadar Pro](https://www.techradar.com/pro/ai-storagemaxxing-your-gpus-are-optimized-what-about-your-data)
21. [Why AI requires rethinking the storage-compute divide, InfoWorld](https://www.infoworld.com/article/4138058/why-ai-requires-rethinking-the-storage-compute-divide.html)
22. [Parallel Query Processing in Shared Disk Database Systems, Datenbanken Leipzig](https://dbs.uni-leipzig.de/research/publications/parallel-query-processing-in-shared-disk-database-systems)

---
*Initially written Oct 26, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › 数据库与数据系统 › 数据挖掘、数据仓库与大数据 › 数据仓库

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/separation-of-storage-and-compute

English original: https://www.edgepedia.org/separation-of-storage-and-compute
