dataiotech Labs
dbaguidedbaguideDBAdataxtoolsdataopsphere
Home/Glossary/Chunk Migration & Balancer
Chunk Migration & BalancerSharding & High Availability

Sharded Cluster Chunk Migration & Balancer Window

The background orchestration process in sharded clusters that routes and migrates contiguous data chunks across shards to ensure uniform storage and I/O distribution.

Internal Architecture Breakdown

Sharded cluster data is organized into chunks bounded by shard key ranges. The Balancer background thread monitors shard chunk counts and initiates live migrations when thresholds deviate.

Migrations incur substantial network bandwidth and disk I/O overhead; production clusters should restrict balancer execution to low-traffic off-peak maintenance windows.

Production Inspection Queries

MongoDB
sh.status();
sh.getBalancerState();
db.adminCommand({ balancerStatus: 1 });