All Questions
Elasticsearch hard

Elasticsearch allows 'Force Merging' an index to a single segment (`max_num_segments=1`). Why is this operation strictly prohibited for indices that are still actively receiving writes?

  1. A It will cause the Master node to lose contact with the Data nodes due to CPU starvation.
  2. B Segment Explosion: It creates one massive immutable segment. New writes will create tiny new segments. Since merging logic favors segments of similar size, the massive segment will likely never be merged again, effectively 'locking in' thousands of deleted documents that can never be physically removed.
  3. C It voids the AWS/Elastic support agreement for that specific cluster.
  4. D It forces all searchable data into the JVM Heap, causing immediate OOM.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions