What is the storage that Loki needs in RHOCP 4?

Solution Verified - Updated

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4
  • Red Hat OpenShift Logging (RHOL)
    • 5
  • LokiStack
  • Loki

Issue

  • Is the LokiStack needing block and object storage?
  • Why is LokiStack asking for block storage?
  • Is it supported to use Filesystem (NAS: NFS, SMB, etc) as storage?

Resolution

Disclaimer: Links contained herein to external website(s) are provided for convenience only. Red Hat has not reviewed the links and is not responsible for the content or its availability. The inclusion of any link to an external website does not imply endorsement by Red Hat of the website or their entities, products or services. You agree that Red Hat is not responsible or liable for any loss or expenses that may result due to your use of (or reliance on) the external site or content.

The LokiStack requires two different kind of storage:

  • Permanent storage: it must be S3 compatible Object storage. See Loki object storage documentation for configuring it.

  • Temporary storage: the recommended is Block, but it could be used Filesystem. Using Filesystem as storage will cause a negative impact in the performance, in the case that detected performance issues, it will be requested to move to Block. The Total disk request in the Loki deployment sizing documentation section reflects the total size needed for this temporary storage. For individual components requirements, refer to Content from github.com is not included.the source code (change the version in the URL according to the version of the Logging operator used).

It could be also of interest the article "What object storage is supported and the permissions needed for Loki in RHOCP 4?".

Root Cause

Loki stores the permanent data in a S3 compatible Object storage. At the same time, it is also needed Block (recommended) or Filesystem storage for storing the temporary data as for instance, the WAL (Write Ahead Log).

Components

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.