[BUG] Optimising hashmap.get call inside AwarenessAllocationDecider #15112
Labels
bug
Something isn't working
Indexing:Replication
Issues and PRs related to core replication framework eg segrep
untriaged
Describe the bug
Description
HashMap.get function call for a hash map where key is String is a relatively costly operation. AwarenessAllocationDecider makes multiple HashMap.get to
This makes HashMap.get function calls as most costly operation in AwarenessAllocationDecider which itself takes about 20% of total time for initialising 225k shards on 500 nodes.
Related component
Indexing:Replication
To Reproduce
Create 500k shards on a setup with 1000 data nodes and 3 master nodes.
Expected behavior
Optimises AwarenessAllocationDecider by reducing HashMap.get and HashMap.merge function calls.
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):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: