Giter Club home page Giter Club logo

Comments (6)

dimitarvdimitrov avatar dimitarvdimitrov commented on July 22, 2024

the compactor can be configured to mount extra volumes via compactor.extraVolumes and compactor.extraVolumeMounts and disable the conventional storage via compactor.persistentVolume.enabled. Does this not work for you?

Worth noting that for compactors and store-gateways doing this will not result in any data loss. Merely more work to do for the compactor and longer startup time for store-gateways (but also see #8166)

However, doing this for ingesters is very likely to result in data loss. One way to work around this is to set -blocks-storage.tsdb.flush-blocks-on-shutdown, which only incurs temporary data loss until the compactor, store-gateway, and querier discover the flushed blocks. But an ungraceful shutdown of an ingester will lead to permanently losing data for the zone.

from mimir.

panatamann avatar panatamann commented on July 22, 2024

@dimitarvdimitrov I see no option to disable persistent storage fully. Options are PVC or emptyDir. Quote from chart values:

  persistentVolume:
    # If true compactor will create/use a Persistent Volume Claim
    # If false, use emptyDir
    #
    enabled: true

from mimir.

dimitarvdimitrov avatar dimitarvdimitrov commented on July 22, 2024

you can still mount a memory-based volume and configure the compactor to use it as a working volume: set mimir.structuredConfig.compactor.data_dir to the directory of the mount from compactor.extraVolumeMounts. The emptyDir will be mounted by unused.

from mimir.

panatamann avatar panatamann commented on July 22, 2024

Can you provide an example how to mount a memory-based volume? I could not find any info about such type of k8s volumes. And I suspect that additional rights may be needed, is it really possible in rootless environment?
Nevertheless I guess some additional rows in helm templates and values would be more usable solution.

from mimir.

dimitarvdimitrov avatar dimitarvdimitrov commented on July 22, 2024

these are the helm values I was thinking of. Haven't ran it in a bigger cluster, but seems to work ok in k3d.

compactor:
    extraVolumes:
        - emptyDir:
              medium: Memory
          name: in-memory-data
    extraVolumeMounts:
        - mountPath: /volatile-data
          name: in-memory-data
mimir:
    structuredConfig:
        compactor:
            data_dir: /volatile-data

from mimir.

dimitarvdimitrov avatar dimitarvdimitrov commented on July 22, 2024

running ingesters with in-memory PVC is dangerous, so I don't think the chart should support this natively. Doing this for store-gateways and compactors see like less of an issue; I'm not opposed to it

from mimir.

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.