Is NFS Supported for ElasticSearch Storage in OpenShift?

Solution Verified - Updated

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 3.3+
    • 4
  • Red Hat OpenShift Logging (RHOL)
    • 5
  • Elasticsearch

Issue

  • Why does ElasticSearch do not support NFS as backend storage?

Resolution

As per the documentation for OpenShift 3 and OpenShift 4, using NFS storage is not supported for Elasticsearch storage.

If NFS is configured as backend storage for Elasticsearch and issues related to corruption data or performance are present, it will be required to change to a supported storage provider.

Root Cause

The caution against using NFS as a backend for ElasticSearch is due to its low performance in a large-scale environment and also data corruption problems since NFS is not POSIX compliance.

Due to the way in which ElasticSearch writes to storage, there are instabilities when using with NFS. It is recommended to use block storage.

Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.