younifyd
Menu

Create a rebalance plan

Create a rebalance plan

POST/v1/replication/rebalance

Use it in a workflow

  1. Add a step and choose the Weaviate connector.
  2. Pick the Create a rebalance plan action (under replication).
  3. Fill in the fields below, then reference the result from later steps as {{createARebalancePlan.response.data}}.

Request

Request body

Enter the body as JSON in the step's Body field.

sourceNodesarray<string>

The names of the nodes that replicas move away from. The list must be non-empty, must not repeat a node, and must not share a node with `targetNodes`.

targetNodesarray<string>

The names of the nodes that replicas move to. The list must be non-empty, must not repeat a node, and must not share a node with `sourceNodes`.

collectionsarray<string>

The names of the collections the plan covers. The value is stored with the plan and does not yet affect planning.

json
{
  "sourceNodes": [
    "string"
  ],
  "targetNodes": [
    "string"
  ],
  "collections": [
    "string"
  ]
}

Response

Returns 202 with a any. Read it in later steps with {{createARebalancePlan.response.data.<field>}}.

Need more? See the Weaviate guide for connection setup and behaviour shared by every action.