[Optimization] AsyncShardFetch response contains DiscoveryNode which takes GBs of memory #7861
Labels
bug
Something isn't working
Cluster Manager
distributed framework
Performance
This is for any performance related enhancements or bugs
Describe the bug
This issue is a subtask to the project #5098 where we are trying to revamp the flow for AsyncShardFetch, as that takes GBs in memory and impacts cluster manager with JVM spikes.
After analyzing the heap dump carefully, we found that DiscoveryNode object is maintained in memory for 1.5 million times though we know these nodes are limited in cluster like 100 only. As part of this optimization we need to understand the reasoning behind it and improve the current objects so DiscoveryNode is maintained in memory for a limited number of times not in order of number of shards etc.
To Reproduce
Step of repro were same as here: #5098 (comment)
Expected behavior
DiscoveryNode objects should be limited and not take memory in GBs.
The text was updated successfully, but these errors were encountered: