-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 unique_tag to JetStreamConfig for varz/jsz visibility #3617
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add a test that verifies they are there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - If you could fix indentation real quick that would be great.
server/monitor_test.go
Outdated
} | ||
cluster { | ||
name: cluster_name | ||
listen: 127.0.0.1:%d | ||
routes: [nats-route://127.0.0.1:%d] | ||
} | ||
server_name: server_%d `, test.port, test.mport, tmpDir, test.cport, test.routed, test.port))) | ||
server_name: server_%d | ||
server_tags: [ "az:%d" ] `, test.port, test.mport, tmpDir, test.cport, test.routed, test.port, test.port))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indentation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm. Not showing in my editor. I cloned the branch from origin to a fresh directory and also not showing. Will research further.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tabs vs spaces
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
copy tabs from line above and paste.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Surface unique_tag (if set as a JetStream option on a server) in varz and jsz. This provides an operational debugging and configuration validation data point (e.g. unique_tag MUST be uniform across all servers in a SuperCluster).
/cc @nats-io/core