# Bigtable

**Bigtable**是一个分布式、稀疏、持久化、多维排序映射：一种宽列NoSQL存储系统，设计目标是在数千台商用服务器上扩展到PB级数据<sup>[1](https://dl.acm.org/doi/10.1145/1365815.1365816)</sup>。该系统于2004年在Google开始研发，并在2006年的一篇研究论文中得到描述，后来成为Google内部最大的数据库系统之一，并启发了HBase和[Cassandra](https://www.edgepedia.org/zh/apache-cassandra)等后续开源系统<sup>[2](https://research.google/pubs/twenty-years-of-bigtable/)</sup>。自2015年5月起，它也以Cloud Bigtable的形式提供，这是Google Cloud上处于测试阶段的托管服务<sup>[3](https://www.nextplatform.com/ai/2015/05/06/google-brings-exascale-bigtable-nosql-to-the-masses/1655828)</sup>。

| 关键事实 | 详情 |
|---|---|
| 数据模型 | 按行键索引的排序键值行，列被分组为列族，每个交叉点存放多个带时间戳的单元格；表是稀疏的，因此未使用的列不占空间<sup>[4](https://docs.cloud.google.com/bigtable/docs/overview)</sup> |
| 事务 | 所有操作在行级别都是原子的；单行事务使用读-改-写和检查-变更，Bigtable和Cassandra都不支持复杂的多行事务<sup>[5](https://docs.cloud.google.com/bigtable/docs/schema-design)</sup><sup> • </sup><sup>[6](https://cloud.google.com/bigtable/docs/cloud-bigtable-for-cassandra-users)</sup> |
| 架构 | 表被分片为数据分片，以SSTable格式存储在Colossus文件系统上；节点只保存指向数据分片的指针，因此节点故障时不会丢失数据<sup>[4](https://docs.cloud.google.com/bigtable/docs/overview)</sup> |
| 存储密度 | 每个SSD节点5 TB，每个HDD节点16 TB，而Cassandra每节点的实际最大值低于2 TB<sup>[6](https://cloud.google.com/bigtable/docs/cloud-bigtable-for-cassandra-users)</sup> |
| 一致性 | 单集群实例提供强一致性；多集群实例默认最终一致性，但可以配置为读己之写或强一致性<sup>[4](https://docs.cloud.google.com/bigtable/docs/overview)</sup> |
| 定价 | 计算费用从每节点每小时0.65美元起（Enterprise）和0.85美元（Enterprise Plus）；SSD存储从每GB每月0.17美元起，HDD为0.026美元；每个副本单独计费<sup>[7](https://cloud.google.com/bigtable)</sup> |
| 托管版发布 | Cloud Bigtable于2015年5月6日进入测试阶段，使用Apache HBase API以实现兼容性<sup>[3](https://www.nextplatform.com/ai/2015/05/06/google-brings-exascale-bigtable-nosql-to-the-masses/1655828)</sup> |

## 历史

研发于2004年在Google开始，该系统由Fay Chang、Jeffrey Dean、Sanjay Ghemawat、Wilson Hsieh、Deborah Wallach、Mike Burrows、Tushar Chandra、Robert Fikes和Robert Gruber在《Bigtable：面向结构化数据的分布式存储系统》中描述，发表于OSDI 2006和《ACM Transactions on Computer Systems》26(2)<sup>[1](https://dl.acm.org/doi/10.1145/1365815.1365816)</sup>。当时使用它的Google项目包括网页索引、[Google Earth](https://www.edgepedia.org/zh/google-earth)和[Google Finance](https://www.edgepedia.org/zh/google-finance)，数据范围从URL到网页到卫星图像，延迟需求从后端批量处理到实时服务<sup>[1](https://dl.acm.org/doi/10.1145/1365815.1365816)</sup>。二十多年来，它已成为Google内部最大的数据库系统之一，原始论文启发并影响了HBase和Cassandra<sup>[2](https://research.google/pubs/twenty-years-of-bigtable/)</sup>。

公共服务于2015年5月6日到来，Cloud Bigtable作为内部软件的托管变体在[Google Cloud Platform](https://www.edgepedia.org/zh/google-cloud-platform)上推出测试版，与[BigQuery](https://www.edgepedia.org/zh/bigquery)不同<sup>[3](https://www.nextplatform.com/ai/2015/05/06/google-brings-exascale-bigtable-nosql-to-the-masses/1655828)</sup>。它采用HBase API，使现有的Hadoop和HBase工具能够连接<sup>[3](https://www.nextplatform.com/ai/2015/05/06/google-brings-exascale-bigtable-nosql-to-the-masses/1655828)</sup>，Bigtable至今仍与[Apache HBase](https://www.edgepedia.org/zh/apache-hbase)的Java客户端库集成<sup>[4](https://docs.cloud.google.com/bigtable/docs/overview)</sup>。

## 数据模型

Bigtable将数据存储在排序键值映射中。每一行由行键索引；列被分组为列族；每个行-列交叉点存放多个带时间戳的单元格，因此单元格实际上按时间版本化<sup>[4](https://docs.cloud.google.com/bigtable/docs/overview)</sup>。表是稀疏的：不使用某个列的行不会为其存储任何内容，这正是允许表拥有数万列的原因<sup>[4](https://docs.cloud.google.com/bigtable/docs/overview)</sup><sup> • </sup><sup>[7](https://cloud.google.com/bigtable)</sup>。Google将该模型描述为分布式多维映射<sup>[7](https://cloud.google.com/bigtable)</sup>。

列族是一个有名称的列集合，其中的列一起读写并共享配置。表最多可有100个列族，列族必须在使用前显式创建，旧的单元格值由列族级别设置的垃圾回收策略回收<sup>[6](https://cloud.google.com/bigtable/docs/cloud-bigtable-for-cassandra-users)</sup>。Bigtable还支持聚合列族，其单元格将新数据与现有数据合并<sup>[5](https://docs.cloud.google.com/bigtable/docs/schema-design)</sup>。

该模型与关系数据库的不同在于它省略了什么。没有模式定义对象：模式由应用逻辑定义，列和行键模式由写入的数据决定<sup>[5](https://docs.cloud.google.com/bigtable/docs/schema-design)</sup>。Bigtable没有同步二级索引；默认模式是反规范化的查找表，另有一个尚未正式发布的异步二级索引，以最终一致性的物化视图实现<sup>[8](https://techscribr.github.io/posts/storage-deep-dives/)</sup>。值适合通常不大于10 MB的大小<sup>[4](https://docs.cloud.google.com/bigtable/docs/overview)</sup>。

## 架构

表被分片为数据分片，即连续的行范围，以SSTable格式存储在Colossus文件系统上。所有已确认的写入也记录在Colossus的共享日志中以保证持久性<sup>[4](https://docs.cloud.google.com/bigtable/docs/overview)</sup>。Cassandra和Bigtable都将写入持久化到提交日志或共享日志，然后写入内存表，内存表刷写为不可变的SSTable，后者在后台定期合并<sup>[6](https://cloud.google.com/bigtable/docs/cloud-bigtable-for-cassandra-users)</sup>。

决定性的架构选择是计算与存储分离。数据从不存储在Bigtable节点本身；节点保存指向Colossus上数据分片的指针，因此重新平衡和节点故障恢复很快，节点故障时不会丢失数据<sup>[4](https://docs.cloud.google.com/bigtable/docs/overview)</sup>。Colossus上的存储经过复制，持久性超过标准HDFS三副本复制<sup>[6](https://cloud.google.com/bigtable/docs/cloud-bigtable-for-cassandra-users)</sup>。

## 一致性与事务

所有操作在行级别都是原子的，要么影响整行，要么完全不影响<sup>[5](https://docs.cloud.google.com/bigtable/docs/schema-design)</sup>。在集群内，写入具有读己之写一致性，Bigtable通过读-改-写和检查-变更操作支持完全一致的单行写入<sup>[6](https://cloud.google.com/bigtable/docs/cloud-bigtable-for-cassandra-users)</sup>。单元格按时间戳版本化，表级别的一致性令牌可以确认复制已完成<sup>[6](https://cloud.google.com/bigtable/docs/cloud-bigtable-for-cassandra-users)</sup>。

2006年的论文解释了系统为何止步于此。团队有意推迟添加通用分布式事务，因为当时没有即时用途，并发现大多数应用只需要单行事务<sup>[9](https://static.usenix.org/events/osdi06/tech/chang/chang_html/)</sup>。在需要分布式事务的地方，主要用途是维护二级索引，为此Google计划了一种专门机制，对跨数百行的更新更高效，也更适合乐观的跨数据中心复制<sup>[9](https://static.usenix.org/events/osdi06/tech/chang/chang_html/)</sup>。与该设计一致，Bigtable和Cassandra都不支持复杂的多行事务，多集群路由配置文件也不支持单行事务<sup>[6](https://cloud.google.com/bigtable/docs/cloud-bigtable-for-cassandra-users)</sup>。

跨集群时，数据为可扩展性自动拆分并异步复制<sup>[7](https://cloud.google.com/bigtable)</sup>。单集群实例提供强一致性，而多集群实例默认最终一致性，但根据Google的文档，某些用例可以配置为读己之写或强一致性<sup>[4](https://docs.cloud.google.com/bigtable/docs/overview)</sup>。一位专家的分析反驳说，强一致性需要单集群路由，其他集群仅用于故障转移<sup>[8](https://techscribr.github.io/posts/storage-deep-dives/)</sup>。

## 性能与可扩展性

扩展通过添加节点实现。Bigtable SSD节点每节点提供5 TB容量，HDD节点为16 TB，不过HDD节点每节点仅支持每秒读取500行；Google的文档给出Cassandra每节点实际最大值低于2 TB<sup>[6](https://cloud.google.com/bigtable/docs/cloud-bigtable-for-cassandra-users)</sup>。

在2015年发布时，Google在1 TB数据库上的YCSB基准测试显示，每美元写入吞吐量是Hadoop上HBase或Cassandra的两倍以上，读取延迟远低于后者，第99百分位读取延迟为6毫秒，而其他系统约为300毫秒<sup>[3](https://www.nextplatform.com/ai/2015/05/06/google-brings-exascale-bigtable-nosql-to-the-masses/1655828)</sup>。发布时每个节点提供每秒10,000次查询和10 MB/秒的传输<sup>[3](https://www.nextplatform.com/ai/2015/05/06/google-brings-exascale-bigtable-nosql-to-the-masses/1655828)</sup>。

模式设计驱动实际性能。读写应均匀分布在一个表的行空间上，以避免热点，即流量集中在少数数据分片必须服务的狭窄行键范围上<sup>[5](https://docs.cloud.google.com/bigtable/docs/schema-design)</sup>。

## 与Cassandra、HBase和Spanner的比较

Bigtable和Cassandra都是NoSQL宽列存储，将数据组织成支持按行键查找和范围扫描的表。Bigtable的行键按字典序排列，节点自动均衡各自负责的键范围（数据分片）<sup>[6](https://cloud.google.com/bigtable/docs/cloud-bigtable-for-cassandra-users)</sup>。在一致性方面，Cassandra提供可调仲裁一致性和轻量级比较并设置事务，而Bigtable在集群内提供完全一致的单行写入<sup>[6](https://cloud.google.com/bigtable/docs/cloud-bigtable-for-cassandra-users)</sup>。在存储核算方面，Bigtable只计算一份数据，而Cassandra在大多数配置下必须按三份计算<sup>[6](https://cloud.google.com/bigtable/docs/cloud-bigtable-for-cassandra-users)</sup>。

与Spanner相比，权衡在于成本与事务范围：Bigtable为键值查找和范围扫描提供更低的成本，而Spanner提供跨行、表和区域的具有外部一致性的ACID事务<sup>[8](https://techscribr.github.io/posts/storage-deep-dives/)</sup>。HBase共享Bigtable的血统和API，这是Cloud Bigtable与Hadoop生态系统兼容的基础<sup>[2](https://research.google/pubs/twenty-years-of-bigtable/)</sup><sup> • </sup><sup>[3](https://www.nextplatform.com/ai/2015/05/06/google-brings-exascale-bigtable-nosql-to-the-masses/1655828)</sup>。

## 定价与运维

Cloud Bigtable计算定价为Enterprise版每节点每小时0.65美元起，Enterprise Plus版为0.85美元，后者提供亚毫秒级延迟。SSD存储每GB每月0.17美元起，HDD每GB每月0.026美元起，每个副本单独计费。同区域复制免费，跨区域复制每GB 0.01美元起<sup>[7](https://cloud.google.com/bigtable)</sup>。在2015年发布时，定价为每节点每小时65美分，最少三个节点，SSD存储每GB每月17美分，磁盘存储每GB每月2.6美分<sup>[3](https://www.nextplatform.com/ai/2015/05/06/google-brings-exascale-bigtable-nosql-to-the-masses/1655828)</sup>，因此存储费率保持不变，而版本结构是新的。

备份保存表的模式和数据，可以恢复到任何区域或项目中拥有Bigtable实例的新表<sup>[4](https://docs.cloud.google.com/bigtable/docs/overview)</sup>。备份定价等于或接近Cloud Storage价格，托管导出到Cloud Storage使用Dataflow并支持Avro、Parquet和Hadoop Sequence格式<sup>[6](https://cloud.google.com/bigtable/docs/cloud-bigtable-for-cassandra-users)</sup>。多区域实例提供99.999%的可用性和区域故障保护<sup>[7](https://cloud.google.com/bigtable)</sup>。

## 近期发展

Enterprise Plus版增加了亚毫秒级延迟和内存层，以每秒40,000（1 KB）行为增量配置，每节点最高每秒120,000行，每个增量0.20美元起<sup>[7](https://cloud.google.com/bigtable)</sup>。Bigtable现在支持即时增量备份，可按需恢复并存储在不同区域以增强韧性<sup>[7](https://cloud.google.com/bigtable)</sup>。通过Apache HBase API的集成现在包括Spark、Hadoop、Dataflow、Vertex AI Vector Search、BigQuery和[LangChain](https://www.edgepedia.org/zh/langchain)<sup>[7](https://cloud.google.com/bigtable)</sup>。Google的维护者将这些描述为持续系列功能和改进的一部分，以满足不断增长的用户需求<sup>[2](https://research.google/pubs/twenty-years-of-bigtable/)</sup>。

## References

1. [Fay Chang et al. Bigtable: A Distributed Storage System for Structured Data. ACM Transactions on Computer Systems 26(2), pp. 205-218.](https://dl.acm.org/doi/10.1145/1365815.1365816)
2. [Twenty years of Bigtable. Google Research.](https://research.google/pubs/twenty-years-of-bigtable/)
3. [Google Brings Exascale Bigtable NoSQL To The Masses. The Next Platform, May 6, 2015.](https://www.nextplatform.com/ai/2015/05/06/google-brings-exascale-bigtable-nosql-to-the-masses/1655828)
4. [Bigtable overview. Google Cloud Documentation.](https://docs.cloud.google.com/bigtable/docs/overview)
5. [Schema design best practices. Google Cloud Documentation.](https://docs.cloud.google.com/bigtable/docs/schema-design)
6. [Bigtable for Cassandra users. Google Cloud Documentation.](https://cloud.google.com/bigtable/docs/cloud-bigtable-for-cassandra-users)
7. [Bigtable: fast, flexible NoSQL. Google Cloud.](https://cloud.google.com/bigtable)
8. [Storage for ML Systems, Part 2: Bigtable and Spanner Deep Dives. TechScribr.](https://techscribr.github.io/posts/storage-deep-dives/)
9. [Fay Chang et al. (2006). Bigtable: A Distributed Storage System for Structured Data. OSDI '06, USENIX.](https://static.usenix.org/events/osdi06/tech/chang/chang_html/)

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

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Databases and data systems › Database engines and systems › Cloud-managed database services

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/bigtable

English original: https://www.edgepedia.org/bigtable
