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

Node attributes in _cat/nodes #8000

Closed
suyograo opened this issue Oct 6, 2014 · 3 comments
Closed

Node attributes in _cat/nodes #8000

suyograo opened this issue Oct 6, 2014 · 3 comments
Assignees
Labels

Comments

@suyograo
Copy link
Contributor

suyograo commented Oct 6, 2014

It would be useful if _cat/nodes can output node attributes like rack_id, aws_zone and other user defined attributes. If users have a large cluster with nodes in multiple AZ's or racks, it would be great to have this info in _cat/nodes to understand the topology.

Even if not displayed by default, we could allow users to pass in nodes?h=rack_id

Example:

host                     ip          heap.percent ram.percent load node.role master name rack_id
Suyogs-MacBook-Pro.local 192.168.1.6            0                  d         *      Jann rack_1
Suyogs-MacBook-Pro.local 192.168.1.6            0                  d         *      Hoder rack_2
@drewr
Copy link
Contributor

drewr commented Jul 29, 2015

Sorry to just be noticing this, but I caught the email from @metadave's PR.

This has a similar problem to _cat/fielddata that #10249 is meant to address, namely that column names should never be dynamic. We always denormalize instead. See _cat/shards or _cat/segments for example.

In this case, since node attributes are such a small part of a node identity, I wonder if it doesn't make sense to have a new API, _cat/nodeattrs or somesuch?

% GET /_cat/nodeattrs
node    attr.name     attr.value
n1      zone          zone2323
n2      zone          zone8282

The default could have more info, maybe host and port.

@bookshelfdave
Copy link
Contributor

+1, I like how your GET /_cat/nodeattrs example looks

@bookshelfdave
Copy link
Contributor

Node attributes are available in _cat/nodeattrs via #12534

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants