Giter Club home page Giter Club logo

Comments (4)

rknightion avatar rknightion commented on May 29, 2024 1

Adding

ingester:
  extraArgs:
    ingester.ring.tokens-file-path: ""
    ingester.ring.token-generation-strategy: spread-minimizing
    ingester.ring.spread-minimizing-zones: 1a,1b,1c
    ingester.ring.spread-minimizing-join-ring-in-order: true

Has done the trick for us!

from mimir.

dimitarvdimitrov avatar dimitarvdimitrov commented on May 29, 2024

reply from @davidkohr:

My guess is that the issue is when you enable zone awareness for ingesters, it does this by injecting this runtime config to each ingester:

# ingesters in zone-a:
    - args:
        - '-ingester.ring.instance-availability-zone=zone-a'

# ingesters in zone-b:
    - args:
        - '-ingester.ring.instance-availability-zone=zone-b'

Because this is being dynamically handled by the chart, you aren't the one configuring this in structuredConfig. Because of this, all of your Mimir components, at least upon init, think that the value of ingester.ring.instance-availability-zone is empty, hence the error message zone is not valid (notice the 2 spaces after zone).

Again, this is my guess, and I would love someone to verify this.

To get around this, we had to use Kustomize to inject runtime configs to each zone to enable spread-min token generation. This feels very hacky, so I'm looking forward to this being fixed in the chart, unless there's already a better way.

from mimir.

dimitarvdimitrov avatar dimitarvdimitrov commented on May 29, 2024

this looks reasonable @davidkohr. This looks more like a bug in the distributor code than a bug in the helm chart. The distributor shouldn't try to validate the ingester config.

A workaround would be to set the four config options to enable spread-minimizing tokens as CLI flags to the ingester statefulset: ingester.extraArgs in the values.yaml. This way the distributor wouldn't see this config and wouldn't try to validate the ingester config.

from mimir.

dimitarvdimitrov avatar dimitarvdimitrov commented on May 29, 2024

duplicate of #7822

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.