Setting up Linux systems
If you are using a Linux system (generally in a production environment), you need to manage an extra setup to improve performance or to resolve production problems with many indices.
This recipe covers the following two common errors that happen in production:
- Too many open files that can corrupt your indices and your data
- Slow performance in search and indexing due to the garbage collector
Big problems arise when you run out of disk space. In this scenario, some files can become corrupted. To prevent your indices from corruption and possible data loss, it is best to monitor the storage spaces. Default settings prevent index writing and block the cluster if your storage is over 95% full.
Getting ready
As we described in the Downloading and installing Elasticsearch recipe in this chapter, you need a working Elasticsearch installation and a simple text editor to change configuration files.
How to do it…
To improve...