Repository navigation
Expose shard keys in telemetry - #5522
Merged
Merged
Conversation
ffuugoo
approved these changes
Nov 26, 2024
91 tasks done
Member
Does it mean the resharding process queries the telemetry endpoint? |
Member
we can't disable endpoint, only the data collection |
Member
Author
We discussed it in our daily, but for formality: CM already depends on telemetry as it fetches all the details about the peer/cluster state from it. It therefore makes sense the resharding key is exposed there as well. The alternative would be to make a separate request to cluster info along side it. |
coszio
pushed a commit
that referenced
this pull request
Dec 2, 2024
* Add shard key to replica set * Expose shard key in replica set telemetry * Update OpenAPI specification * Fix two spelling errors
timvisee
added a commit
that referenced
this pull request
Dec 9, 2024
* Add shard key to replica set * Expose shard key in replica set telemetry * Update OpenAPI specification * Fix two spelling errors
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.
Expose shard keys for each shard in telemetry. This is necessary for resharding.
Rather than listing the key mapping, this lists the assigned key in each shard instead. I think that is a better interface to work with. Because of it I've copied the shard key into the replica set struct.
See
"key": "test":{ "collections": { "number_of_collections": 1, "collections": [ { "id": "benchmark", "init_time_ms": 800, "config": { ... }, "shards": [ { "id": 1, "key": "test", "local": { ... }, "remote": [], "replicate_states": { "6469369128247073": "Active" } } ], "transfers": [], "resharding": [] } ] } }All Submissions:
devbranch. Did you create your branch fromdev?New Feature Submissions:
cargo +nightly fmt --allcommand prior to submission?cargo clippy --all --all-featurescommand?