Bird
Raised Fist0

Which combination of Elasticsearch settings best balances indexing throughput and search freshness for a rapidly growing dataset with frequent writes and queries?

hard🚀 Application Q8 of Q15
Elasticsearch - Performance and Scaling
Which combination of Elasticsearch settings best balances indexing throughput and search freshness for a rapidly growing dataset with frequent writes and queries?
ASet <code>refresh_interval</code> to -1 and increase <code>number_of_replicas</code> to 2
BSet <code>refresh_interval</code> to 0 and disable replicas
CSet <code>refresh_interval</code> to 5s and enable <code>index.translog.durability</code> to 'async'
DSet <code>refresh_interval</code> to 1s and disable translog
Step-by-Step Solution
Solution:
  1. Step 1: Understand refresh_interval impact

    A moderate refresh interval (e.g., 5s) reduces refresh overhead while keeping search results reasonably fresh.
  2. Step 2: Translog durability setting

    Setting translog durability to 'async' improves indexing throughput by batching fsync operations.
  3. Step 3: Evaluate other options

    Immediate refresh (0) hurts indexing speed; disabling replicas reduces fault tolerance; disabling translog risks data loss.
  4. Final Answer:

    Set refresh_interval to 5s and enable index.translog.durability to 'async' -> Option C
  5. Quick Check:

    Balance refresh and durability for throughput and freshness [OK]
Quick Trick: Moderate refresh + async translog balances speed and freshness [OK]
Common Mistakes:
MISTAKES
  • Setting refresh_interval to 0 causing slow indexing
  • Disabling replicas risking data loss
  • Disabling translog risking durability

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Elasticsearch Quizzes