Skip to content

Possible gaps when querying ingesters and -distributor.shard-by-all-labels is disabled #3322

Closed
@pracucci

Description

@pracucci

Describe the bug
This is not a bug we experienced (because we run Cortex with -distributor.shard-by-all-labels=true) but while working on #3252 I realised this could be an issue for specific Cortex setups.

When Cortex is running with WAL enabled (chunks and blocks storage) and transfers on shutdown are disabled during ingesters rollout and -distributor.shard-by-all-labels=false (default) there may be gaps when querying series/samples from ingesters because:

  1. There will be series spillover during rollout
  2. Queriers always query ingesters currently holding the tokens, but some series/samples may be in different ingesters due to the spillover

A similar scenario may occur during ingesters scale up even if transfers on shutdown are enabled. Generally speaking, this issue could occur whenever there's a ring topology change.

Storage Engine

  • Blocks
  • Chunks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions