younifyd
Menu

Configure network topology

Configure network topology

PATCH/network

Use it in a workflow

  1. Add a step and choose the Meilisearch connector.
  2. Pick the Configure network topology action (under Experimental features).
  3. Fill in the fields below, then reference the result from later steps as {{configureNetworkTopology.response.data}}.

Request

Request body

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

remotesobject | null

Map of remote instance names to their configurations - Pass `null` as a value for a remote to remove it from the configuration. - Removing a remote will also remove it from all shards. - Remotes that don't appear in this list will be unmodified by the network call.

shardsobject | null

Map of shard names to their configurations. - Pass `null` as a value for a shard to remove it from the configuration. - Shards that don't appear in this list will be unmodified by the network call.

previousShardsobject | null

Previous shard configurations This field should not be passed by end-users. It is used in internal communications between Meilisearch instances

selfstring | null

Name of this instance in the network

leaderstring | null

Name of the leader instance in the network

previousRemotesobject | null

Previous remote configurations This field should not be passed by end-users. It is used in internal communications between Meilisearch instances

json
{
  "remotes": {
    "ms-00": {
      "url": "http://localhost:7700"
    },
    "ms-01": {
      "url": "http://localhost:7701"
    }
  },
  "shards": {
    "shard-00": {
      "remotes": [
        "ms-00",
        "ms-01"
      ]
    }
  },
  "previousShards": {
    "shard-00": {
      "remotes": [
        "ms-00",
        "ms-01"
      ]
    }
  },
  "self": "ms-00",
  "leader": "ms-00",
  "previousRemotes": {
    "ms-00": {
      "url": "http://localhost:7700"
    },
    "ms-01": {
      "url": "http://localhost:7701"
    }
  }
}

Response

Returns 200 with an object. Read it in later steps with {{configureNetworkTopology.response.data.<field>}}.

remotesobject | null

Map of remote instance names to their configurations - Pass `null` as a value for a remote to remove it from the configuration. - Removing a remote will also remove it from all shards. - Remotes that don't appear in this list will be unmodified by the network call.

shardsobject | null

Map of shard names to their configurations. - Pass `null` as a value for a shard to remove it from the configuration. - Shards that don't appear in this list will be unmodified by the network call.

previousShardsobject | null

Previous shard configurations This field should not be passed by end-users. It is used in internal communications between Meilisearch instances

selfstring | null

Name of this instance in the network

leaderstring | null

Name of the leader instance in the network

previousRemotesobject | null

Previous remote configurations This field should not be passed by end-users. It is used in internal communications between Meilisearch instances

json
{
  "remotes": {
    "ms-00": {
      "url": "http://localhost:7700"
    },
    "ms-01": {
      "url": "http://localhost:7701"
    }
  },
  "shards": {
    "shard-00": {
      "remotes": [
        "ms-00",
        "ms-01"
      ]
    }
  },
  "previousShards": {
    "shard-00": {
      "remotes": [
        "ms-00",
        "ms-01"
      ]
    }
  },
  "self": "ms-00",
  "leader": "ms-00",
  "previousRemotes": {
    "ms-00": {
      "url": "http://localhost:7700"
    },
    "ms-01": {
      "url": "http://localhost:7701"
    }
  }
}

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