Skip to content

Conversation

piotrsulkowski-elastic
Copy link
Contributor

Cat nodes REST action will return an extra field:
available_processors. It is now also part of all responses which contain Os Stats.

Closes #134692

@elasticsearchmachine elasticsearchmachine added v9.3.0 needs:triage Requires assignment of a team area label labels Oct 3, 2025
@piotrsulkowski-elastic
Copy link
Contributor Author

update to client docs will follow soon (I'll link it here before merging)

@piotrsulkowski-elastic piotrsulkowski-elastic added >feature Team:Security Meta label for security team :Data Management/CAT APIs Text APIs behind /_cat >enhancement and removed >feature labels Oct 3, 2025
@elasticsearchmachine elasticsearchmachine added Team:Data Management Meta label for data/management team and removed Team:Security Meta label for security team needs:triage Requires assignment of a team area label labels Oct 3, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-data-management (Team:Data Management)

@elasticsearchmachine
Copy link
Collaborator

Hi @piotrsulkowski-elastic, I've created a changelog YAML for you.

@piotrsulkowski-elastic piotrsulkowski-elastic force-pushed the available-processors-in-cat-nodes branch from 31c85f0 to 76b9bf8 Compare October 7, 2025 08:50
@piotrsulkowski-elastic piotrsulkowski-elastic requested a review from a team as a code owner October 7, 2025 08:50
@piotrsulkowski-elastic piotrsulkowski-elastic force-pushed the available-processors-in-cat-nodes branch 2 times, most recently from 9aa7eb2 to d7b8f64 Compare October 7, 2025 23:51
@piotrsulkowski-elastic piotrsulkowski-elastic force-pushed the available-processors-in-cat-nodes branch 2 times, most recently from 41aa94d to a162172 Compare October 8, 2025 10:22
@piotrsulkowski-elastic piotrsulkowski-elastic force-pushed the available-processors-in-cat-nodes branch 7 times, most recently from 5820018 to 7d847d5 Compare October 8, 2025 23:06
Copy link
Contributor

@lukewhiting lukewhiting left a comment

Choose a reason for hiding this comment

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

One small change to the TransportVersion declaration but otherwise looks like a good change 👍🏻

} else {
this.loadAverage = null;
}
this.availableProcessors = in.getTransportVersion().supports(TransportVersion.fromName(AVAILABLE_PROCESSORS_TRANSPORT_VERSION))
Copy link
Contributor

Choose a reason for hiding this comment

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

This TransportVersion should be a static field so it's only called once and can be used in other places if required.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks, fixed

@piotrsulkowski-elastic piotrsulkowski-elastic force-pushed the available-processors-in-cat-nodes branch from 7d847d5 to 8b20f88 Compare October 9, 2025 10:29
Copy link
Contributor

@lukewhiting lukewhiting left a comment

Choose a reason for hiding this comment

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

Changes LGTM 👍🏻

@piotrsulkowski-elastic piotrsulkowski-elastic force-pushed the available-processors-in-cat-nodes branch 7 times, most recently from d228a30 to 9c82443 Compare October 10, 2025 13:35
Cat nodes REST action will return an extra field:
available_processors. It is now also part of all responses
which contain Os Stats.

Closes elastic#134692
@piotrsulkowski-elastic piotrsulkowski-elastic force-pushed the available-processors-in-cat-nodes branch from 9c82443 to 0c6e765 Compare October 10, 2025 15:13
@piotrsulkowski-elastic piotrsulkowski-elastic merged commit 33743c1 into elastic:main Oct 10, 2025
34 checks passed
jfreden pushed a commit to jfreden/elasticsearch that referenced this pull request Oct 13, 2025
Cat nodes REST action will return an extra field:
available_processors. It is now also part of all responses
which contain Os Stats.

Closes elastic#134692
@piotrsulkowski-elastic piotrsulkowski-elastic deleted the available-processors-in-cat-nodes branch October 13, 2025 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Data Management/CAT APIs Text APIs behind /_cat >enhancement Team:Data Management Meta label for data/management team v9.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CAT Nodes | report allocated CPU

3 participants