jackyfkc.github.io

教土豆学计算机

Sharded Cluster

Typically use key-based hash or range partitioning to assign data to nodes in the cluster.

A MongoDB sharded cluster consists of the following components:

MongoDB Cluster

Shard Key

A good shard key has

Note: When choosing a shard key for time series data, consider compound shard key {arbitrary value, incrementing value}

Further Readings