Sharding requires the Meilisearch Enterprise Edition v1.37 or later.
Step 1: Start your instances
Start three Meilisearch instances, each with a master key:--experimental-allowed-ip-networks flag:
Step 2: Enable the network feature
Enable the experimental network feature on each instance:ms-01 and ms-02 with their respective URLs and master keys.
Step 3: Configure the network topology
Send a singlePATCH /network request to the leader instance (ms-00). The leader propagates the configuration to all other remotes automatically. For initial setup, define self, leader, remotes, and shards together:
This setup has no replication. If a remote becomes unavailable, its shards are missing from search results. Meilisearch does not yet automatically fall back to another instance. See Configure replication for a high-availability setup.
Step 4: Index documents
Send documents to the leader instance (ms-00). The leader distributes them across shards automatically:
Step 5: Search across the cluster
Search requests can be sent to any instance in the network, not just the leader.useNetwork defaults to true when a network topology is defined:
Verify the topology
Check the current network configuration at any time:Next steps
Manage the network
Add and remove remotes dynamically without reconfiguring the entire topology.
Replication and sharding overview
Understand the concepts behind sharding, replication, and network search.
Data backup
Configure snapshots and dumps for your cluster.