Improvements
Network scaling with dynamic topology changes
Meilisearch Enterprise Edition now supports modifying the number of participants in a sharded network without restarting or migrating to a new cluster. You can scale up by adding new remotes or scale down by removing existing ones. Setting up the initial network:-
Designate a leader machine that will receive all write operations. Any write request to a non-leader machine will return a
not_a_leadererror. -
Configure your network topology by calling
PATCH /networkon the leader:
- The network configuration is automatically propagated to all members.
- Send documents and settings only to the leader, they will be distributed across all network participants with automatic sharding.
PATCH /network on the leader with the new remote’s information:
networkTopologyChange task will automatically rebalance documents across all remotes, including the new one.
Removing a remote:
Call PATCH /network on the leader and set the remote to null:
networkTopologyChange task will automatically redistribute documents from the removed remote to the remaining participants.
macOS binary availability restored
Themeilisearch-enterprise-macos-amd64 and meilisearch-macos-amd64 binaries are now available again after being unavailable in v1.29.
Improved task handling during index operations
Tasks are now properly attributed during index swaps to prevent cross-index task loss.Search stability improvement
Fixed an issue that could cause search requests to fail with an internal error about missing field weights. The system now logs a warning instead of crashing when encountering incomplete field weight mappings.Other
Breaking changes for network sharding users
These changes only affect Enterprise Edition users with automatic sharding enabled (network.leader set). Standard feature users are not affected.
Network object structure changes:
- The
shardingboolean field has been removed - A new
leaderfield (optional string) has been added to designate the cluster leader - A new
versionfield (UUID) has been added to track network state
not_a_leader error when called on non-leader machines:
POST /indexesPATCHorDELETE /indexes/{indexUid}POST,PUT, orDELETE /indexes/{indexUid}/documentsPOST /indexes/{indexUid}/documents/deletePOST /indexes/{indexUid}/documents/delete-batchPOST /indexes/{indexUid}/documents/editPATCHorDELETE /indexes/{indexUid}/settingsand related settings routesPATCH /network(when changing the leader)POST /swap-indexes
PATCH /network now returns a NetworkTopologyChange task summary instead of the network object itself.
Dump import behavior:
When importing dumps, the self and leader fields are dropped from the network configuration.
Network topology change task cancellation:
NetworkTopologyChange tasks can be cancelled. When cancelled, documents that have already been moved remain in their new locations, while the network topology reverts to its previous state.
Find more information on GitHub