0

Hi I have a Elastic search cluster which is having 11 shards. Each of the shard has around 70 segments each, and many of the segments are larger than 5 GB (max_merged_segment). They also have lot of deleted documents in them which is causing a lot of slowness in the search query.

Therefore I did a forcemerge on the index with max_num_segment=21 and it returned immediately. Then I went I checked the number of deleted documents and they still are the same even after 24 hours.

Then I did the forcemerge once again after 24 hours this time the results were the same. So, I am not sure is there a way to check why the forcemerge is not happening.

Please, let me know if there is any document or log that I can check to find this out.

Also, in none of the docs its mentioned that Elasticsearch 7.x has a limit on the size of segments that can be merged with the forcemerge API. Is there any limit while doing a forceMerge, which means that segments larger than 5GB will not be merged when forcemerge is called ??? Please let me know if my statement is right?

Thanks

Invictus
  • 2,653
  • 8
  • 31
  • 50
  • Are there write operations on the index or is it read-only? If you're still writing to the index, probably don't forcemerge and read https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-forcemerge.html#forcemerge-api-desc – xeraa Feb 26 '23 at 13:41

0 Answers0