Skip to content

cmd/prometheus: switch PROMPP_FEATURES defaults on (block-manager, instant-query, shrink-copier) - #439

Open
vporoshok wants to merge 2 commits into
ppfrom
chore/block-manager-default
Open

cmd/prometheus: switch PROMPP_FEATURES defaults on (block-manager, instant-query, shrink-copier)#439
vporoshok wants to merge 2 commits into
ppfrom
chore/block-manager-default

Conversation

@vporoshok

Copy link
Copy Markdown
Collaborator

Summary

Flip several PROMPP_FEATURES toggles to their production-preferred defaults and replace the enable-only flags with inverse disable_* toggles.

  • Block-manager historical storage is now the default. Disable via PROMPP_FEATURES=disable_block_manager (falls back to the pre-PR-377 tsdb.DB reader). The redundant enable_block_manager case is removed. In both schemes the PP head manager + adapter remain the write path; only the persisted-block reader changes.
  • Instant-query optimization is on by default. Disable via PROMPP_FEATURES=disable_instant_query_feature.
  • Shrink shard copier is on by default. Disable via PROMPP_FEATURES=disable_shrink_shard_copier.
  • Removed the disable_unload_data_storage toggle. DataStorage unloading stays enabled unconditionally (the pre-existing default).

Notes

  • No CHANGELOG.md change here — per project convention the changelog is assembled at release time. These default flips should be captured in the v0.9.0 release notes.

Test plan

  • Build in devcontainer (make build).
  • Verify PROMPP_FEATURES=disable_block_manager falls back to the TSDB reader.
  • Verify disable_instant_query_feature / disable_shrink_shard_copier turn the respective features off.
  • Stage rollout with defaults on.

Made with Cursor

@vporoshok vporoshok added this to the v0.9.0 milestone Jul 22, 2026
@vporoshok vporoshok self-assigned this Jul 22, 2026
@vporoshok
vporoshok requested a review from u-veles-a July 22, 2026 17:14
…nt-query, shrink-copier)

Flip several PROMPP_FEATURES defaults to their production-preferred state and
provide inverse toggles instead of enable-only ones:

- Block-manager historical storage is now the default; disable it with
  PROMPP_FEATURES=disable_block_manager (the enable_block_manager toggle is
  removed as redundant). The PP head manager + adapter remain the write path
  in both schemes; only the persisted-block reader changes.
- Instant-query optimization is on by default; disable with
  PROMPP_FEATURES=disable_instant_query_feature.
- Shrink shard copier is on by default; disable with
  PROMPP_FEATURES=disable_shrink_shard_copier.

Also drop the disable_unload_data_storage toggle; DataStorage unloading stays
enabled unconditionally (the pre-existing default).

Co-authored-by: Cursor <cursoragent@cursor.com>
@vporoshok
vporoshok force-pushed the chore/block-manager-default branch from 90a02dc to 65378ac Compare July 22, 2026 17:19
The disable_unload_data_storage toggle was removed, so UnloadDataStorage is
always true. Drop the variable and always use DefaultUnloadDataStorageInterval
for DataStorage unloading.

Co-authored-by: Cursor <cursoragent@cursor.com>
@vporoshok
vporoshok enabled auto-merge (squash) July 23, 2026 07:22
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.

2 participants