Coder Social home page Coder Social logo

Comments (4)

grzegdl avatar grzegdl commented on May 26, 2024 8

Same went for store-gateway. It had an error:
level=warn ts=2021-01-12T11:07:50.560293065Z caller=bucket_stores.go:127 msg="failed to synchronize TSDB blocks" err="mkdir tsdb-sync: read-only file system"

I fixed it by specifying it's data dir:

  blocks_storage:
    bucket_store:
      sync_dir: "data"

Assuming that's how it should be configured it would be good to add it to the helm chart.

from cortex-helm-chart.

MartinHell avatar MartinHell commented on May 26, 2024 5

I think this is related to the fact that the tsdb configuration defaults to the directory "tsdb". Have a look here https://cortexmetrics.io/docs/configuration/configuration-file/#blocks_storage_config and scroll down to the tsdb section.

I've also noticed that when using blocks_storage the /data directory is not being used. My guess is /data is used for chunks storage and therefore the helm chart mounts that as a pvc (if you're running the ingester as a statefulset).

If that is true then I think the tsdb should be stored in /data as well. To do that all you'd need to set is the following:

  blocks_storage:
    backend: s3
    tsdb:
      dir: "/data"

Also if you're using the WAL you can't have the tsdb located in an emptyDir since the WAL would be located alongside it IIRC (so the wal would be lost on pod failures/restarts).

If the above is correct then I think the documentation needs to be updated.

from cortex-helm-chart.

sbaier1 avatar sbaier1 commented on May 26, 2024 1

For the record this can be worked around by setting these properties in the values.yaml, even with the current version:

ingester:
  extraVolumes:
    - name: tsdb
      emptyDir: {}
  extraVolumeMounts:
    - name: tsdb
      mountPath: /tsdb

from cortex-helm-chart.

rubycut avatar rubycut commented on May 26, 2024 1

Why is this issue closed if it is not fixed? The workaround doesn't mean that issue is fixed.

from cortex-helm-chart.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.