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

[BUG] Option in NodesStatsRequest to return per-shard stats in response #14507

Open
rajiv-kv opened this issue Jun 22, 2024 · 1 comment
Open
Labels
bug Something isn't working Cluster Manager v2.16.0 Issues and PRs related to version 2.16.0

Comments

@rajiv-kv
Copy link
Contributor

rajiv-kv commented Jun 22, 2024

Describe the bug

NodesStats contains per-shard stats information from the node (NodeStats#indices). Admin API /_cat/nodes make broadcast calls to all nodes in cluster using TransportNodesStatsAction to retrieve stats information from nodes. However the per-shard Stats information returned by Transport action is never consumed .

In large clusters, the per-shards information lead to memory allocations there-by triggering GC activity which consumes CPU cycles.

Memory Allocation Profile for /_cat/nodes API where the allocations are for IndexShardStats
Screenshot 2024-06-13 at 1 46 31 AM

This also causes increase in the latency of API as the per-shard stats is accumulated on the co-ordinator node after retrieving it from all the nodes in cluster.

Related component

Cluster Manager

To Reproduce

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

Introduce option in NodeStatsRequest which specifies if per-shard stats information needs to be returned in response by TransportNodesStatsAction. We could unset the attribute in usecases which do not require per-shard stats there-by avoiding memory allocations.

Additional Details

Plugins
Please list all plugins currently enabled.

Screenshots
If applicable, add screenshots to help explain your problem.

Host/Environment (please complete the following information):

  • OS: [e.g. iOS]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@rajiv-kv rajiv-kv added bug Something isn't working untriaged labels Jun 22, 2024
@rwali-aws rwali-aws added v2.16.0 Issues and PRs related to version 2.16.0 and removed untriaged labels Jul 4, 2024
@rwali-aws rwali-aws moved this from 🆕 New to Now(This Quarter) in Cluster Manager Project Board Jul 4, 2024
@rwali-aws
Copy link

[Triage - attendees 1 2 3 4 5 6]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Cluster Manager v2.16.0 Issues and PRs related to version 2.16.0
Projects
Status: Now(This Quarter)
Development

No branches or pull requests

2 participants