Configuring persistent storage
You can configure a persistent storage class and size for the Elasticsearch cluster using the storage class name and size parameters. The Cluster Logging Operator creates a Persistent Volume Claim for each data node in the Elasticsearch cluster based on these parameters.
The following example specifies that each data node in the cluster will be bound to a Persistent
Volume Claim that requests
200GiB
of ocs-storagecluster-ceph-rbd
storage. Each primary shard will be backed by a single replica. A copy of the shard is replicated
across all the nodes and are always available and the copy can be recovered if at least two nodes
exist due to the single redundancy policy. For information about Elasticsearch replication policies,
see Logging within Red Hat OpenShift Container Platform product documentation.spec:
logStore:
type: "elasticsearch"
elasticsearch:
nodeCount: 3
storage:
storageClassName: "ocs-storagecluster-ceph-rbd”
size: "200G"
Note: Omission of the storage block will result in a deployment
backed by default storage. For example:
spec:
logStore:
type: "elasticsearch"
elasticsearch:
nodeCount: 3
storage: {}