Learn how to reindex Elasticsearch more efficiently and improve Elasticsearch reindexing performance by following these tips:
- Disable Replicas
- Disable Refresh Interval
Disable refresh interval again. It can be changed once re-indexing has been completed.
- Use Bulk API
- Increase Buffer Size
Increase index buffer size and use Opster’s detailed documentation to fine-tune it.
- Use Reindex API
- Disable Merge Throttling
Disable merge throttling by changing the setting `indices.store.throttle.type` to none. If you have a massive write-heavy index, then you can make it permanent.
- Ensure Optimal Scalability Settings
Choosing the optimal number of primary shards is crucial for scalability, which can’t be changed later on. Refer to Opster’s guide to shards and replicas to understand more. Also, make sure you don’t end up creating “hotspots” in the cluster.