Console utility for aligning the size of stored data between shards of the MongoDB cluster.
.NET Core tool - ShardEqualizer nuget package. You can install it as a global or local dotnet tool:
dotnet tool install -g ShardEqualizer --version 1.0.0-beta2
or local dotnet tool:
dotnet new tool-manifest
dotnet tool install ShardEqualizer --version 1.0.0-beta2
To display a list of commands, run
dotnet ShardEqualizer --help
To display a list of command options, run
dotnet ShardEqualizer [command] --help
here [command]
is the name of the command
Run command config-init
to create standard configuration files for your sharded MongoDB cluster.
dotnet ShardEqualizer config-init --config=myCluster.xml --hosts=localhost
dotnet ShardEqualizer presplit --config=myCluster.xml
dotnet ShardEqualizer balancer --config=myCluster.xml
dotnet ShardEqualizer deviation --config=myCluster.xml
dotnet ShardEqualizer equalize --config=myCluster.xml