Type alias ClusterImbalanceInfo

ClusterImbalanceInfo: {
    leader: {
        imbalance: number;
        leaderDupl: number[];
        numberShards: number[];
        targetWeight: number[];
        totalShards: number;
        totalWeight: number;
        weightUsed: number[];
    };
    shards: {
        imbalance: number;
        numberShards: number[];
        sizeUsed: number[];
        targetSize: number[];
        totalShards: number;
        totalShardsFromSystemCollections: number;
        totalUsed: number;
    };
}

Information about a cluster imbalance.

Type declaration

  • leader: {
        imbalance: number;
        leaderDupl: number[];
        numberShards: number[];
        targetWeight: number[];
        totalShards: number;
        totalWeight: number;
        weightUsed: number[];
    }

    Information about the leader imbalance.

    • imbalance: number

      The measure of the total imbalance. A high value indicates a high imbalance.

    • leaderDupl: number[]

      The measure of the leader shard distribution. The higher the number, the worse the distribution.

    • numberShards: number[]

      The number of leader shards per DB-Server.

    • targetWeight: number[]

      The ideal weight of leader shards per DB-Server.

    • totalShards: number

      The sum of shards, counting leader shards only.

    • totalWeight: number

      The sum of all weights.

    • weightUsed: number[]

      The weight of leader shards per DB-Server. A leader has a weight of 1 by default but it is higher if collections can only be moved together because of distributeShardsLike.

  • shards: {
        imbalance: number;
        numberShards: number[];
        sizeUsed: number[];
        targetSize: number[];
        totalShards: number;
        totalShardsFromSystemCollections: number;
        totalUsed: number;
    }

    Information about the shard imbalance.

    • imbalance: number

      The measure of the total imbalance. A high value indicates a high imbalance.

    • numberShards: number[]

      The number of leader and follower shards per DB-Server.

    • sizeUsed: number[]

      The size of shards per DB-Server.

    • targetSize: number[]

      The ideal size of shards per DB-Server.

    • totalShards: number

      The sum of shards, counting leader and follower shards.

    • totalShardsFromSystemCollections: number

      The sum of system collection shards, counting leader shards only.

    • totalUsed: number

      The sum of the sizes.

Generated using TypeDoc