CosmosDB 如何缩放图形?
How does CosmosDB scale graphs?
我刚刚开始使用图形数据库和 Azure CosmosDB。由 Microsoft 定义:
Azure Cosmos DB is a fully managed graph database that offers global
distribution, elastic scaling of storage and throughput, automatic
indexing and query, tunable consistency levels, and support for the
TinkerPop standard.
我这里的问题是Cosmos DB是如何实现图的全局分布和缩放的?图表是在多台机器上完全复制(如主从设置)还是被切割成有意义的部分并分片跨机器?
图表将在多台机器上进行分片
(物理分区)。随着图表大小的增长,分区将自动拆分。
图的分片方式将基于用户输入(又名分区键)。在创建图的过程中,可以选择一个顶点属性作为分区键,图节点将以此为基础进行分布。
我刚刚开始使用图形数据库和 Azure CosmosDB。由 Microsoft 定义:
Azure Cosmos DB is a fully managed graph database that offers global distribution, elastic scaling of storage and throughput, automatic indexing and query, tunable consistency levels, and support for the TinkerPop standard.
我这里的问题是Cosmos DB是如何实现图的全局分布和缩放的?图表是在多台机器上完全复制(如主从设置)还是被切割成有意义的部分并分片跨机器?
图表将在多台机器上进行分片 (物理分区)。随着图表大小的增长,分区将自动拆分。
图的分片方式将基于用户输入(又名分区键)。在创建图的过程中,可以选择一个顶点属性作为分区键,图节点将以此为基础进行分布。