younifyd
Menu

Apply replication scaling plan

Apply replication scaling plan

POST/v1/replication/scale

Use it in a workflow

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

Request

Request body

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

planIdstring (uuid)required

A unique identifier for this replication scaling plan, useful for tracking and auditing purposes.

collectionstringrequired

The name of the collection to which this replication scaling plan applies.

shardScaleActionsobjectrequired

A mapping of shard names to their corresponding scaling actions. Each key corresponds to a shard name, and its value defines which nodes should be removed and which should be added for that shard. If a source node listed for an addition is also in 'removeNodes' for the same shard, that addition is treated as a move operation. Such a node can appear only once as a source in that shard. Otherwise, if the source node is not being removed, it represents a copy operation and can be referenced multiple times as a source for additions.

json
{
  "planId": "00000000-0000-0000-0000-000000000000",
  "collection": "string",
  "shardScaleActions": {}
}

Response

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

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