Skip to content

Shard scaling v2 feature flag - #6890

Open
nadav-govari wants to merge 1 commit into
nadav/pr3from
nadav/pr4
Open

nadav-govari wants to merge 1 commit into
nadav/pr3from
nadav/pr4

Conversation

@nadav-govari

Copy link
Copy Markdown
Collaborator

Description

Shard scaling v2 flag, gossiped, available as an env var. Helper that checks that the whole cluster has it enabled, which will be used to gate the features. Modeled after the compaction planner checker. Refactors the compaction planner checker to use a shared helper so that this type of logic is centralized.

How was this PR tested?

Unit tests.

@nadav-govari
nadav-govari added this pull request to stack #6888 October 8, 2026 20:59
@nadav-govari
nadav-govari requested a review from a team as a code owner October 8, 2026 20:59
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-08T21:03:53.712549Z bbecb30 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bbecb309da

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +219 to +220
#[serde(default)]
enable_shard_scaling_v2: ConfigValue<bool, QW_ENABLE_SHARD_SCALING_V2>,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Document the shard-scaling configuration switch

Document the new enable_shard_scaling_v2 property and QW_ENABLE_SHARD_SCALING_V2 override in the node-configuration reference. A repo-wide search shows that neither name appears outside the implementation and tests, so operators cannot discover the supported value, default, or rollout expectations for this newly exposed configuration.

AGENTS.md reference: AGENTS.md:L23-L24

Useful? React with 👍 / 👎.

.into_iter()
.filter(|node| node.is_service_enabled(service))
.collect();
!service_nodes.is_empty() && service_nodes.iter().all(predicate)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Document the empty-service-set result

Document that this helper returns false when no live node provides the requested service. That non-vacuous behavior differs from the usual semantics implied by all_*_satisfy, and callers using it as a rollout gate can otherwise wait indefinitely when the role is intentionally absent; the unit test records the behavior but does not expose this hidden API contract to callers.

AGENTS.md reference: AGENTS.md:L123-L126

Useful? React with 👍 / 👎.

This branch has not been deployed

No deployments
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