Bird
Raised Fist0

You have this Elasticsearch setting in your config:

medium📝 Debug Q14 of Q15
Elasticsearch - Performance and Scaling
You have this Elasticsearch setting in your config:
index.refresh_interval: 1s
But your indexing speed is slow. What is the best fix?
AIncrease <code>index.number_of_replicas</code> to 2 for faster writes.
BChange <code>index.refresh_interval</code> to <code>-1</code> during bulk indexing.
CSet <code>index.refresh_interval</code> to <code>0</code> to refresh immediately.
DDelete old indices to free space.
Step-by-Step Solution
Solution:
  1. Step 1: Understand refresh interval impact

    Frequent refreshes slow indexing because Elasticsearch makes data searchable often.
  2. Step 2: Apply best practice for bulk indexing

    Setting refresh_interval to -1 disables automatic refresh, speeding bulk indexing.
  3. Final Answer:

    Change index.refresh_interval to -1 during bulk indexing. -> Option B
  4. Quick Check:

    Disable refresh during bulk = faster indexing [OK]
Quick Trick: Disable refresh during bulk indexing for speed [OK]
Common Mistakes:
MISTAKES
  • Setting refresh_interval to 0 causes overhead
  • Increasing replicas slows writes
  • Deleting indices unrelated to refresh issue

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Elasticsearch Quizzes