Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add raft query parameter to /jsz to include raft group info #3914

Merged
merged 1 commit into from Feb 27, 2023

Conversation

wallyqs
Copy link
Member

@wallyqs wallyqs commented Feb 27, 2023

This adds a new raft query parameter to be able to map a stream/consumer name with its active raft group:

/jsz?consumers=1&raft=1
 "stream_raft_group": "S-R3F-8Qml10Ei",
"consumer_raft_groups": [
  {
    "name": "1",
    "raft_group": "C-R3F-5c87s2aq"
  },
  {
    "name": "10",
    "raft_group": "C-R3F-PF8WWIue"
  },
  {
    "name": "100",
    "raft_group": "C-R3F-r58xhrRe"
  },
  {
    "name": "12",
    "raft_group": "C-R3F-faSs9EY1"
  },

Signed-off-by: Waldemar Quevedo <wally@nats.io>
@derekcollison
Copy link
Member

Very cool, ping me when ready for review!

@wallyqs wallyqs marked this pull request as ready for review February 27, 2023 15:22
@wallyqs wallyqs requested a review from a team as a code owner February 27, 2023 15:22
Copy link
Member

@neilalexander neilalexander left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Member

@derekcollison derekcollison left a comment

Choose a reason for hiding this comment

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

LGTM!

@ripienaar we can add this into CLI.

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.

None yet

3 participants