Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
alex-shef opened this issue Aug 12, 2024 · 2 comments
Open

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

alex-shef opened this issue Aug 12, 2024 · 2 comments
Labels
type/docs Issues related to technical documentation; the Docs Squad uses this label across many repositories

Comments

@alex-shef
Copy link

alex-shef commented Aug 12, 2024

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.

@chaudum
Copy link
Contributor

chaudum commented Aug 26, 2024

📔 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).

@alex-shef
Copy link
Author

@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?

@JStickler JStickler added the type/docs Issues related to technical documentation; the Docs Squad uses this label across many repositories label Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/docs Issues related to technical documentation; the Docs Squad uses this label across many repositories
Projects
None yet
Development

No branches or pull requests

3 participants