15 Performance and troubleshooting

This chapter covers

  • Understanding the reasons for slow searches and indexing queries
  • Tuning and improving the performance of slow queries and indexing
  • Troubleshooting unstable clusters

Once the Elasticsearch cluster is ready for production, umpteen things can go wrong, from users complaining about slow searches to unstable nodes, network problems, over-sharding troubles, memory problems, and more. Maintaining the cluster’s health in a GREEN (healthy) state is paramount. Constantly keeping an eye on the cluster’s health and performance is one of the primary jobs of an administrator.

Troubleshooting an unstable cluster requires a good understanding of the inner workings of Elasticsearch, networking concepts, ...

Get Elasticsearch in Action, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.