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

Allow setting the node id in the influx cli program #9184

Merged
merged 1 commit into from Jan 2, 2018

Conversation

jsternberg
Copy link
Contributor

@jsternberg jsternberg commented Nov 30, 2017

The string node <n> can be used to specify which data node the data
should be retrieved from. This uses the node_id=X query parameter that
is supported, but wasn't exposed anywhere in the client library.

We use this feature enough internally when attempting to find
inconsistencies or network errors that it is easier if this is just
supported. Otherwise, I continue having to recompile the CLI program
every time I need to do this.

To clear a previously set node, you can use node 0 or node clear.

  • Rebased/mergable
  • Tests pass
  • CHANGELOG.md updated
  • Update man page when modifying a command

Copy link
Contributor

@mark-rushakoff mark-rushakoff left a comment

Choose a reason for hiding this comment

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

The code change LGTM. @rbetts is this change okay for the OSS CLI?

The string `node <n>` can be used to specify which data node the data
should be retrieved from. This uses the `node_id=X` query parameter that
is supported, but wasn't exposed anywhere in the client library.

We use this feature enough internally when attempting to find
inconsistencies or network errors that it is easier if this is just
supported. Otherwise, I continue having to recompile the CLI program
every time I need to do this.

To clear a previously set node, you can use `node 0` or `node clear`.
@jsternberg jsternberg merged commit da9774f into master Jan 2, 2018
@jsternberg jsternberg deleted the js-influx-node-id-option branch January 2, 2018 20:34
@ghost ghost removed the review label Jan 2, 2018
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

2 participants