The setAllowRebalanceExistingSegments() GraphQL mutation is used to allow moving existing segments between nodes to achieve a better data distribution.

Syntax

Below is the syntax for setAllowRebalanceExistingSegments():

graphql
setAllowRebalanceExistingSegments(
      allowRebalanceExistingSegments: boolean!
   ): boolean!

The mutation field has no special datatypes. It uses boolean for both the input and the return datatype. For the given data, enter true if the cluster should allow moving existing segments between nodes to achieve a better data distribution.