Skip to content

Distributor HA tracker ring should allow inmemory as a KV store #5145

Open
@mehta-ankit

Description

@mehta-ankit

Describe the bug
V1.14.1 for cortex throws an error when using distributor HA tracker with inmemoery ring and stops them from running.

error validating config: invalid distributor config: invalid HATracker KV store type: inmemory

I believe the error comes from this PR: #4881

To Reproduce
Steps to reproduce the behavior:

  1. Start Cortex v1.14.1
  2. Have configuration for distributor as follows:
distributor:
  ha_tracker:
    enable_ha_tracker: true
    kvstore:
      store: inmemory

Expected behavior
Since docs mention inmemory as an option for the HAtracker store: https://cortexmetrics.io/docs/configuration/arguments/#ringha-tracker-store
https://cortexmetrics.io/docs/configuration/configuration-file/#distributor_config
It should not be validating against it and this list should accept consul, etcd or inmemory as valid values.
https://github.com/cortexproject/cortex/blob/v1.14.1/pkg/distributor/ha_tracker.go#L92

Environment:

  • Infrastructure: Kubernetes v1.23
  • Deployment tool: Helm

Additional Context
We were running v1.11.1 with this configuration and it was working fine. I do not see any changelog mentioning breaking change where inmemory would not be supported so this seems like regression and bad validation in my opinion. But please correct me if i am not understanding it correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions