Skip to content

tsdb: add Head.SetFloatChunkEncoding setter#19036

Open
roidelapluie wants to merge 1 commit into
prometheus:mainfrom
roidelapluie:roidelapluie/head-set-float-chunk-encoding
Open

tsdb: add Head.SetFloatChunkEncoding setter#19036
roidelapluie wants to merge 1 commit into
prometheus:mainfrom
roidelapluie:roidelapluie/head-set-float-chunk-encoding

Conversation

@roidelapluie

@roidelapluie roidelapluie commented Jun 29, 2026

Copy link
Copy Markdown
Member

Allow updating the float chunk encoding for new chunks on a running Head without a restart. The encoding is stored as an atomic in HeadOptions, so this mirrors SetOutOfOrderTimeWindow and lets callers (e.g. multi-tenant setups switching a tenant between xor and xor2) change the encoding at runtime rather than only at startup or via ApplyConfig.

Which issue(s) does the PR fix:

Release notes for end users (ALL commits must be considered).

Reviewers should verify clarity and quality.

NONE

Allow updating the float chunk encoding for new chunks on a running Head
without a restart. The encoding is stored as an atomic in HeadOptions, so
this mirrors SetOutOfOrderTimeWindow and lets callers (e.g. multi-tenant
setups switching a tenant between xor and xor2) change the encoding at
runtime rather than only at startup or via ApplyConfig.

Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant