Skip to content

Expose the search-cluster node name on NodeInfo#26705

Draft
patrickmann wants to merge 2 commits into
search-cluster-health-reportersfrom
expose-node-name-on-nodeinfo
Draft

Expose the search-cluster node name on NodeInfo#26705
patrickmann wants to merge 2 commits into
search-cluster-health-reportersfrom
expose-node-name-on-nodeinfo

Conversation

@patrickmann

@patrickmann patrickmann commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

/nocl
/prd Graylog2/graylog-plugin-enterprise#14917

Description

The node stats adapter already fetches each search-cluster node's name from the _nodes response but dropped it: NodeInfo carried only version, OS, roles, and heap, keyed by node id.

The System Overview health panel's shard_count check (Graylog2/graylog-plugin-enterprise#14658) needs to join per-node shard counts (keyed by node name, from _cat/allocation) with per-node heap (keyed by node id, from _nodes). The only existing id-to-name bridge, ClusterAdapter.nodeIdToName(), is a per-node round-trip. This change exposes the node name on NodeInfo so a single _nodes read carries it, populated in the OpenSearch 2/3 and Elasticsearch 7 adapters.

Additive field on a serialize-only DTO, no behavior change on its own. Independent of other health-panel work and can merge standalone.

Dependencies

Based on #26625 - that PR needs to be merged first.

How Tested

  • Exercised end to end by the enterprise ShardCountHealthReporter unit tests in Graylog2/graylog-plugin-enterprise#14658, which join shard allocation to heap on this field.

The node stats adapter already fetches each node's name from the _nodes
response but dropped it: NodeInfo carried only version, OS, roles, and heap,
keyed by node id. The System Overview health panel's shard-count check needs
to join per-node shard counts (keyed by node name, from _cat/allocation) with
per-node heap (keyed by node id, from _nodes), and the only existing id-to-name
bridge is a per-node round-trip. Populate the node name in the OpenSearch 2/3
and Elasticsearch 7 adapters so a single _nodes read carries it.

Enables Graylog2/graylog-plugin-enterprise#14658.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@patrickmann
patrickmann force-pushed the expose-node-name-on-nodeinfo branch from bfb8809 to 27b6ad0 Compare July 20, 2026 15:49
@patrickmann
patrickmann changed the base branch from master to search-cluster-health-reporters July 20, 2026 15:49
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.

1 participant