/ShardEqualizer

Primary LanguageC#GNU General Public License v3.0GPL-3.0

NuGet Version NuGet Downloads

ShardEqualizer

Console utility for aligning the size of stored data between shards of the MongoDB cluster.

Install

.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

Description of utility commands

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

Initialize

Run command config-init to create standard configuration files for your sharded MongoDB cluster.

dotnet ShardEqualizer config-init --config=myCluster.xml --hosts=localhost

Creating a starting data distribution

dotnet ShardEqualizer presplit --config=myCluster.xml

Chunks to be moved

dotnet ShardEqualizer balancer --config=myCluster.xml

Data size reports on shards

dotnet ShardEqualizer deviation --config=myCluster.xml

Aligning

dotnet ShardEqualizer equalize --config=myCluster.xml