# 数据引力

**数据引力**（data gravity）是指大量累积的数据集吸引应用程序、服务以及更多数据聚集过来的趋势，这使得该数据集变得越来越难以迁移、迁移成本也越来越高<sup>[1](https://dsg.tuwien.ac.at/~sd/papers/SSE_2023_B_Sedlak.pdf)</sup>。戴夫·麦克罗里（Dave McCrory）于2010年创造了这一术语，以此类比质量更大的物体吸引质量更小的物体<sup>[2](https://www.techtarget.com/whatis/definition/data-gravity)</sup>。它已成为云计算和数据中心设计中的一个实用概念，解释了为什么计算会向数据迁移，以及为什么出口费用会让供应商的锁定效应更加牢固<sup>[3](https://www.digitalrealty.com/resources/reports/data-gravity-index)</sup>。

| 关键事实 | 详情 |
|---|---|
| 起源 | 由戴夫·麦克罗里于2010年在戴尔（Dell）任职期间创造，作为质量吸引质量的类比<sup>[2](https://www.techtarget.com/whatis/definition/data-gravity)</sup><sup> • </sup><sup>[4](https://www.datacenterfrontier.com/featured/article/11428685/study-data-gravity-will-guide-the-global-digital-economy)</sup> |
| 机制 | 数据“积累质量”并吸引服务，因为就近部署可以改善延迟和吞吐量<sup>[5](https://www.computerweekly.com/feature/Data-gravity-What-is-it-and-how-to-manage-it)</sup> |
| 量化 | 麦克罗里2012年的公式使用数据质量（数据量×压缩比）以及延迟、带宽和请求变量；2020年的数据引力指数以每秒千兆字节为计量单位<sup>[6](https://www.infoq.com/news/2012/06/datagravity-formula/)</sup><sup> • </sup><sup>[7](https://dgtlinfra.com/what-is-data-gravity-aws-azure-cloud/)</sup> |
| 迁移成本 | 将英国客户的整个数据集在供应商之间迁移的一次性出口费用，为该客户年度云支出的0–5%至5–10%<sup>[8](https://assets.publishing.service.gov.uk/media/664f2556993111924d9d3aa8/240521_-_Egress_Fees__.pdf)</sup> |
| 规模阈值 | 带宽保持不变而数据持续增长：在100 TB时一个周末即可完成的迁移，在数PB规模时需要数月<sup>[9](https://www.scality.com/glossary/data-gravity)</sup> |
| AI时代的转变 | 传输1 GB数据的成本约为0.10美元，但用gpt-3.5-turbo-0125处理其所代表的约2.5亿个文本词元的成本约为125美元，这削弱了提示词的引力，而向量数据库则保留了引力<sup>[10](https://www.deeplearning.ai/the-batch/life-in-low-data-gravity)</sup> |

## 术语的起源与演变

麦克罗里于2010年在戴尔任职期间提出了“数据引力”这一概念，他对数据移动和收集可能如何影响网络产生了浓厚兴趣<sup>[4](https://www.datacenterfrontier.com/featured/article/11428685/study-data-gravity-will-guide-the-global-digital-economy)</sup>。他2010年的框架还引入了“服务能量”（service energy）和“逃逸速度”（escape velocity）等相关术语，用于描述云系统中的数据<sup>[11](https://www.kentik.com/blog/data-gravity-in-cloud-networks-massive-data/)</sup>。

这一概念分阶段发展。2012年，麦克罗里提出了第一个量化公式<sup>[6](https://www.infoq.com/news/2012/06/datagravity-formula/)</sup>。2020年，他已供职于[Digital Realty](https://www.edgepedia.org/zh/digital-realty)，发布了数据引力指数（Data Gravity Index），该指数衡量并预测《福布斯》全球2000强企业在53个都市区和23个行业中的数据引力强度，并包含一项正在申请专利的公式<sup>[2](https://www.techtarget.com/whatis/definition/data-gravity)</sup>。麦克罗里还区分了自然产生的数据引力和*人工数据引力*（artificial data gravity），后者通过立法、限流和操纵性定价等外部力量产生<sup>[2](https://www.techtarget.com/whatis/definition/data-gravity)</sup>。

## 机制：数据为何具有吸引力

因果链条始于传输物理学。当组织将数据集中在一处时，数据便“积累质量”，吸引服务和应用程序，因为它们离数据越近，延迟和吞吐量就越好<sup>[5](https://www.computerweekly.com/feature/Data-gravity-What-is-it-and-how-to-manage-it)</sup>。由于带宽不会随着数据量的扩大而增加，在100 TB时一个周末即可完成的传输，在涉及数PB数据时可能延长至数月<sup>[9](https://www.scality.com/glossary/data-gravity)</sup>。

经济学进一步强化了物理学。云服务商对将数据移入存储（入站带宽）和从中检索数据（出站带宽）收取不同的费率，且不同地区的价格也有所差异<sup>[12](https://link.springer.com/article/10.1007/s11280-024-01273-4)</sup>。随着数据集增长，将其迁移到另一个云或本地环境的财务成本上升，形成一种供应商锁定效应，阻碍了工作负载的迁移<sup>[13](https://www.cio.com/article/3961716/trade-routes-of-the-digital-age-how-data-gravity-shapes-cloud-strategy.html)</sup>。麦克罗里将这种财务驱动的效应称为人工数据引力，它由云服务的财务模型而非技术本身造成<sup>[5](https://www.computerweekly.com/feature/Data-gravity-What-is-it-and-how-to-manage-it)</sup>。

监管增加了第三种拉力。一些数据本地化规则可能要求数据在某一区域内存储或处理<sup>[14](https://arxiv.org/html/2212.01984v2)</sup>。经济合作与发展组织（OECD）发现，数据本地化措施——无论是明确要求在国内存储或处理数据，还是对跨境流动的隐性限制——都会导致比原本更多的本地存储或处理<sup>[15](https://www.oecd.org/en/publications/economic-implications-of-data-regulation_aa285504-en/full-report/component-5.html)</sup>。最后，一旦应用程序围绕某个数据集聚集，该数据集合便获得网络效应：一个庞大而丰富的信息体往往会吸引越来越多的服务来利用它<sup>[16](https://www.theregister.com/2018/01/02/data_anti_gravity)</sup>。

## 量化数据引力

麦克罗里2012年的公式将数据质量计算为数据量（以兆字节为单位的规模）乘以数据密度（数据的压缩比），然后注入网络延迟、网络带宽、每秒请求数和平均请求大小等变量；他舍弃了CRUD操作和存储类型等变量<sup>[6](https://www.infoq.com/news/2012/06/datagravity-formula/)</sup>。他将所得数值相对于数据所在的网络来考量，并说“每个网络都是一个宇宙”，因此目前尚无法自信地跨网络比较数值<sup>[6](https://www.infoq.com/news/2012/06/datagravity-formula/)</sup>。

数据引力指数使用四个组成部分：数据质量（存储的数据量）、数据活动（运动中的数据）、带宽和延迟。带宽是数据引力的乘数，而延迟则是抑制因素；得分以每秒千兆字节为计量单位，作为数据创建、聚合和处理的相对代理指标<sup>[7](https://dgtlinfra.com/what-is-data-gravity-aws-azure-cloud/)</sup>。该指数方法论分析了全球2000强企业在每个都市区存在的数千个属性，包括GDP、人口、员工数量、技术特征、IT支出和平均带宽<sup>[4](https://www.datacenterfrontier.com/featured/article/11428685/study-data-gravity-will-guide-the-global-digital-economy)</sup>。麦克罗里预计，以每秒千兆字节计量的数据引力将在2020年至2024年间增长139%<sup>[5](https://www.computerweekly.com/feature/Data-gravity-What-is-it-and-how-to-manage-it)</sup>。第一版指数预测，所分析的21个都市区中的全球2000强企业到2024年将以每秒110万GB的速度创建数据，需要增加每秒8.96百亿亿次浮点运算的处理能力，并每年增加15,635艾字节的存储需求<sup>[4](https://www.datacenterfrontier.com/featured/article/11428685/study-data-gravity-will-guide-the-global-digital-economy)</sup>。2.0版本基于对190多个国家和500多个都市区超过1亿个数据点进行的10亿次运算，预测全球企业数据创建量将在三年内达到120万艾字节，其中93%在公共云之外创建<sup>[17](https://www.datacenterdynamics.com/en/opinions/three-takeaways-from-the-data-gravity-index-20/)</sup>。

在经济影响方面，提出的指标包括位置总成本，定义为TCOL = 计算 + 存储 + 网络 + 数据出口 + 运营，以及每GB数据出口成本、数据本地化比率（百分比）和以秒或分钟计的复制/同步延迟<sup>[18](https://www.techtarget.com/it-infrastructure/feature/Data-gravity-and-its-role-in-data-center-efficiency)</sup>。

具体的阈值确实存在。英国竞争与市场管理局（CMA）发现，将英国客户的整个数据集从一个云供应商一次性迁移到另一个云供应商所支付的出口费用，介于该客户年度支出的0–5%至5–10%之间，而AWS的普通英国客户一次性迁出AWS的成本约占其年度支出的0–5%<sup>[8](https://assets.publishing.service.gov.uk/media/664f2556993111924d9d3aa8/240521_-_Egress_Fees__.pdf)</sup>。一旦数据质量超过某个临界点，迁移在时间和成本上便变得不可行，留在某一区域的高引力数据集变得难以迁移和使用，且容易受到宕机和安全威胁的影响<sup>[11](https://www.kentik.com/blog/data-gravity-in-cloud-networks-massive-data/)</sup>。

## 数据引力与东西向流量

引力驱动的计算与数据共置直接体现在数据中心的流量模式中。南北向流量是数据中心内部服务器与外部客户端机器之间的数据移动，通常通过接入层进行；东西向流量是同一设施内服务器之间的数据传输<sup>[19](https://www.datafarms.org/wp-content/uploads/2023/02/Neilson-Data-Centres-NSEW-2022-Accepted-Version.pdf)</sup>。在多用户数据中心中，东西向流量已开始超过南北向流量，对等互联（peering）成为这些设施的核心商业价值主张<sup>[19](https://www.datafarms.org/wp-content/uploads/2023/02/Neilson-Data-Centres-NSEW-2022-Accepted-Version.pdf)</sup>。

用网络术语来说，东西向流量是数据中心内部数据并行计算中的流量，例如[MapReduce](https://www.edgepedia.org/zh/mapreduce)等分区/聚合程序，其中数据驻留在分布式存储中，分区被传输到计算节点；南北向流量则由前端Web服务器、中间层应用服务器和后端数据库处理<sup>[20](https://www.cs.princeton.edu/courses/archive/spring23/cos461/lectures/lec22-datacenter.pdf)</sup>。原地分析（in-place analytics）——在数据所在位置进行分析而非移动数据——是对引力的直接设计回应<sup>[5](https://www.computerweekly.com/feature/Data-gravity-What-is-it-and-how-to-manage-it)</sup>。

## 与相关概念的比较

这些术语各有分工。数据引力指的是力本身；数据本地性（data locality）是关于将数据放置在何处的有意选择，与这种力相一致；而数据流动性（data mobility）则是移动数据的能力，与这种力相抗衡。一旦数据集具有了引力，默认做法便反转了：新的计算被放置在数据旁边，而非将数据复制到计算处；当数据确实需要迁移时，元数据、权限和保留设置必须完好无损地到达<sup>[9](https://www.scality.com/glossary/data-gravity)</sup>。

放置问题本身在形式上是困难的。局部性最大化放置问题——即当任务或数据对象分散在多个服务器之间时最小化局部性损失——是NP难的，已有文献描述了多项式时间近似算法<sup>[21](https://www.sciencedirect.com/science/article/pii/S0022000006000791)</sup>。物理类比也有其局限性：麦克罗里本人承认，费用驱动的成分是由云财务模型而非技术造成的人工引力<sup>[5](https://www.computerweekly.com/feature/Data-gravity-What-is-it-and-how-to-manage-it)</sup>，而评论界则从网络效应而非物理学的角度来框定这一现象<sup>[16](https://www.theregister.com/2018/01/02/data_anti_gravity)</sup>。首席信息官、分析师和供应商一致认为，数据引力无法消除，必须加以管理<sup>[5](https://www.computerweekly.com/feature/Data-gravity-What-is-it-and-how-to-manage-it)</sup>。

## 缓解策略

架构层面的应对措施可分为几类：

- **原地分析。** 在数据所在位置进行分析的工具消除了移动大量数据的需求，既减少了引力的影响，也降低了云的一些成本劣势<sup>[5](https://www.computerweekly.com/feature/Data-gravity-What-is-it-and-how-to-manage-it)</sup>。
- **边缘处理。** 在数据生成点进行处理减少了跨区域传输<sup>[13](https://www.cio.com/article/3961716/trade-routes-of-the-digital-age-how-data-gravity-shapes-cloud-strategy.html)</sup>。思科（Cisco）将核心问题框定为数据去找服务还是服务去找数据，给出的答案是“视情况而定”：如果数据在边缘生成、需要实时使用、且必须在断连时仍能工作，则网络需要在首个能够承载所需存储和计算的设备上支持AI/机器学习<sup>[22](https://blogs.cisco.com/government/data-gravity-driving-design-for-intelligent-mission-fabric)</sup>。
- **数据湖设计。** 数据湖学术研究将数据引力视为一项设计原则，并探索从数据源到数据湖的物理数据移动的替代方案<sup>[23](https://www.oreilly.com/library/view/data-lakes/9781786305855/c09.xhtml)</sup>。
- **复制与放置。** 2024年的一项系统综述分析了云、雾、边缘和边云环境中的数据复制方法，从恢复、存储成本、负载均衡、副本一致性、安全性、流动性和数据迁移等方面进行评估<sup>[24](https://link.springer.com/article/10.1007/s11277-024-11082-7)</sup>。
- **物理传输。** AWS的Snow系列提供硬件设备用于将数据移入AWS，其中Snowball Edge和[Snowmobile](https://www.edgepedia.org/zh/snowmobile)用于在网络条件阻碍传输的情况下传送高达100 PB的海量数据<sup>[25](https://docs.aws.amazon.com/pdfs/whitepapers/latest/building-data-lakes/building-data-lakes.pdf)</sup>。
- **本地化与分割。** 按区域或功能将数据分散到不同供应商，可以限制任何单一的引力井<sup>[13](https://www.cio.com/article/3961716/trade-routes-of-the-digital-age-how-data-gravity-shapes-cloud-strategy.html)</sup>。

## 近期发展

生成式AI重新平衡了经济账。计算机科学家、DeepLearning.AI创始人[吴恩达](https://www.edgepedia.org/zh/andrew-ng)（Andrew Ng）计算得出，传输1 GB数据的成本约为0.10美元，而1 GB文本大约对应2.5亿个输入词元，用gpt-3.5-turbo-0125处理的成本约为125美元，用gpt-4-0125-preview则约为20倍。在这一比较中，处理成本远远超过传输成本，这表明数据与存储它的云供应商或数据中心的绑定可能更弱，通过互联网将数据包发送到服务器可能更为实际<sup>[10](https://www.deeplearning.ai/the-batch/life-in-low-data-gravity)</sup>。

这种效应是不对称的。大语言模型的提示词可以经济地发送到OpenAI、Anthropic或任何云，因此构建在单一单体平台上的动机低于传统工作负载。但迁移向量数据库中存储的大量数据仍然复杂且成本高昂，因此向量数据库保留了强大的引力<sup>[10](https://www.deeplearning.ai/the-batch/life-in-low-data-gravity)</sup>。供应商分析将AI视为数据引力的最大放大器：模型训练、向量数据库和检索增强生成都依赖于庞大的数据集，而将数PB数据迁移到计算处往往不切实际，因此计算反而向数据迁移<sup>[26](https://storware.eu/blog/what-is-data-gravity/)</sup>。

## References

1. [Controlling Data Gravity and Data Friction: From Metrics to Multidimensional Elasticity Strategies (TU Wien, 2023)](https://dsg.tuwien.ac.at/~sd/papers/SSE_2023_B_Sedlak.pdf)
2. [What is data gravity? | Definition from TechTarget](https://www.techtarget.com/whatis/definition/data-gravity)
3. [Data Gravity Index Report 2.0 | Digital Realty](https://www.digitalrealty.com/resources/reports/data-gravity-index)
4. [Study: Data Gravity Will Guide the Global Digital Economy | Data Center Frontier](https://www.datacenterfrontier.com/featured/article/11428685/study-data-gravity-will-guide-the-global-digital-economy)
5. [Data gravity: What is it and how to manage it | Computer Weekly](https://www.computerweekly.com/feature/Data-gravity-What-is-it-and-how-to-manage-it)
6. [Dave McCrory Unveils Initial Formula for Principle of Data Gravity | InfoQ](https://www.infoq.com/news/2012/06/datagravity-formula/)
7. [What is Data Gravity? AWS, Azure Pull Data to the Cloud | dgtlinfra](https://dgtlinfra.com/what-is-data-gravity-aws-azure-cloud/)
8. [Egress fees working paper (UK CMA)](https://assets.publishing.service.gov.uk/media/664f2556993111924d9d3aa8/240521_-_Egress_Fees__.pdf)
9. [Data gravity: how large datasets pull compute to them | Scality](https://www.scality.com/glossary/data-gravity)
10. [Life in Low Data Gravity | DeepLearning.AI, Andrew Ng](https://www.deeplearning.ai/the-batch/life-in-low-data-gravity)
11. [Data Gravity in Cloud Networks: Massive Data | Kentik](https://www.kentik.com/blog/data-gravity-in-cloud-networks-massive-data/)
12. [Cloud storage cost: a taxonomy and survey (World Wide Web journal)](https://link.springer.com/article/10.1007/s11280-024-01273-4)
13. [Trade routes of the digital age: How data gravity shapes cloud strategy | CIO](https://www.cio.com/article/3961716/trade-routes-of-the-digital-age-how-data-gravity-shapes-cloud-strategy.html)
14. [Locality, Latency and Spatial-Aware Data Placement Strategies at the Edge (arXiv)](https://arxiv.org/html/2212.01984v2)
15. [Data flows and the evolving regulatory environment (OECD)](https://www.oecd.org/en/publications/economic-implications-of-data-regulation_aa285504-en/full-report/component-5.html)
16. [We've heard of data gravity – we're just not sure how to defy it yet | The Register](https://www.theregister.com/2018/01/02/data_anti_gravity)
17. [Three takeaways from the Data Gravity Index 2.0 | Data Center Dynamics](https://www.datacenterdynamics.com/en/opinions/three-takeaways-from-the-data-gravity-index-20/)
18. [Data gravity and its role in data center efficiency | TechTarget](https://www.techtarget.com/it-infrastructure/feature/Data-gravity-and-its-role-in-data-center-efficiency)
19. [Data Centres between North-South and East-West (Brett Neilson)](https://www.datafarms.org/wp-content/uploads/2023/02/Neilson-Data-Centres-NSEW-2022-Accepted-Version.pdf)
20. [Datacenter Networks (Princeton COS 461 lecture)](https://www.cs.princeton.edu/courses/archive/spring23/cos461/lectures/lec22-datacenter.pdf)
21. [Maximizing data locality in distributed systems (Journal of Computer and System Sciences)](https://www.sciencedirect.com/science/article/pii/S0022000006000791)
22. [Data Gravity: Driving Design for Intelligent Mission Fabric | Cisco Blogs](https://blogs.cisco.com/government/data-gravity-driving-design-for-intelligent-mission-fabric)
23. [The Gravity Principle in Data Lakes (Data Lakes, ch. 9, O'Reilly)](https://www.oreilly.com/library/view/data-lakes/9781786305855/c09.xhtml)
24. [Data Replication Methods in Cloud, Fog, and Edge Computing: A Systematic Literature Review (Springer, 2024)](https://link.springer.com/article/10.1007/s11277-024-11082-7)
25. [Storage Best Practices for Data and Analytics Applications - AWS Whitepaper](https://docs.aws.amazon.com/pdfs/whitepapers/latest/building-data-lakes/building-data-lakes.pdf)
26. [What is Data Gravity? | Storware](https://storware.eu/blog/what-is-data-gravity/)

---
*Initially written Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 网络与安全 › Networking fundamentals and architecture › Network topology and data-center networking › Data-center network architectures

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/data-gravity

English original: https://www.edgepedia.org/data-gravity
