Repository navigation
perf(hubble): discover PD members without scanning partitions - #842
Merged
imbajin merged 5 commits intoOct 23, 2026
Merged
Conversation
added 4 commits
October 23, 2026 14:19
MrJs133
previously approved these changes
Oct 23, 2026
MrJs133
approved these changes
Oct 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Before ➡️ After
Before: Routine PD discovery uses the cluster-summary endpoint, which can scan every partition.
After: Read members, leader, versions and cluster state from the existing lightweight members endpoint. Preserve discovery failures without falling back to the heavy scan. Missing aggregate fields stay unavailable, not zero; Store counts and capacity still come from the stores endpoint.
Why
Keep node discovery proportional to discovery needs instead of coupling page refreshes to graph-partition summaries.
Validation boundary
The source author reports local HTTP fixtures and mounted UI checks, including no heavy-endpoint request on success or failure. Live distributed-cluster behavior, measured production impact and complete current-head CI remain unverified. This branch includes the shared canvas foundation from 🔗 apache/hugegraph-toolchain#840, preserving its original history rather than duplicating the fix.
Source proposal: 🔗 hugegraph/hugegraph-toolchain#94.
Visual overview
PD discovery uses lightweight member metadata without falling back to partition summaries; Store statistics remain separate. Mechanism illustration, not production performance or CI acceptance.