loki icon indicating copy to clipboard operation
loki copied to clipboard

Documentation feedback: /docs/sources/configure/storage.md

Open alex-shef opened this issue 1 year ago • 1 comments

Working variant:

  storageConfig:
    tsdb_shipper:
      active_index_directory: var/loki/index
      cache_location: var/loki/index_cache
      cache_ttl: 24h

Without 'var' we need to mount emptyDir.

alex-shef avatar Aug 12 '24 17:08 alex-shef

:notebook_with_decorative_cover: Assuming a context where Loki is deployed using Docker containers in Kubernetes, due to the mention of emptyDir.

Changing the absolute path to a relative path would cause data to be written into the overlay filesystem of the container, which should never be done.

The documentation should explain that any data directories referenced in the config should always be mounted persistent volumes. emptyDir may be suitable for certain cases, but should be used with caution, because it's ephemeral storage and may be limited in size (especially when backed by memory).

chaudum avatar Aug 26 '24 09:08 chaudum

@chaudum, but how does it work if we use cloud storage? Loki already has PV by default. Do we need extra volumes in any case?

alex-shef avatar Aug 31 '24 17:08 alex-shef