Skip to content

When reporting health for a node use the {node.name}{node.id} as the key #89664

@andreidan

Description

@andreidan

The health API currently reports the cluster formation view of different nodes
keyed by the node.id
e.g.

"cluster_formation": {
          "0oN5vgNOTYSD2e2NLWcMpA": "master not discovered yet: have discovered [{node_t2}{0oN5vgNOTYSD2e2NLWcMpA}{FG_hf0jaTuihP9P-YwQY7g}{node_t2}{127.0.0.1}{127.0.0.1:13422}{d}]; discovery will continue using [127.0.0.1:13421] from hosts providers and [{node_t0}{V82Zl-CUS_ah7O0-JIBhfQ}{McMwzFMoRui2n4y2rUif6g}{node_t0}{127.0.0.1}{127.0.0.1:13421}{m}] from last-known cluster state; node term 1, last-accepted version 7 in term 1"
}

This proposes we change the key to be a combination of node.name and node.id for ease of use:
i.e.

"cluster_formation": {
          "{node_t2}{0oN5vgNOTYSD2e2NLWcMpA}": "master not discovered yet: have discovered [{node_t2}{0oN5vgNOTYSD2e2NLWcMpA}{FG_hf0jaTuihP9P-YwQY7g}{node_t2}{127.0.0.1}{127.0.0.1:13422}{d}]; discovery will continue using [127.0.0.1:13421] from hosts providers and [{node_t0}{V82Zl-CUS_ah7O0-JIBhfQ}{McMwzFMoRui2n4y2rUif6g}{node_t0}{127.0.0.1}{127.0.0.1:13421}{m}] from last-known cluster state; node term 1, last-accepted version 7 in term 1"
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions