[ 
https://issues.apache.org/jira/browse/HDDS-14018?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Attila Doroszlai updated HDDS-14018:
------------------------------------
    Description: 
Possible improvements for {{SCMNodeManager#getNodeStatistics}}:

- avoid repeated {{getAllNodes()}} calls, store and reuse the list
- avoid repeated iteration of nodes for {{nodeStateStatistics}} (by each 
{{get...NodeCount()}} method)
- {{nodeUsageStatistics}} may base its calculations on values aggregated by 
{{nodeSpaceStatistics}} instead of iterating storage reports itself

  was:
Possible improvements for {{SCMNodeManager#getNodeStatistics}}:

- avoid repeated {{getAllNodes()}} calls, store and reuse the list
- each {{get...NodeCount()}} method called by {{nodeStateStatistics}} 
separately iterates nodes, filtering for the specific state
- {{nodeUsageStatistics}} may base its calculations on values aggregated by 
{{nodeSpaceStatistics}} instead of iterating storage reports itself


> Avoid repeated operations in SCMNodeManager#getNodeStatistics
> -------------------------------------------------------------
>
>                 Key: HDDS-14018
>                 URL: https://issues.apache.org/jira/browse/HDDS-14018
>             Project: Apache Ozone
>          Issue Type: Improvement
>          Components: SCM
>            Reporter: Attila Doroszlai
>            Assignee: Attila Doroszlai
>            Priority: Major
>
> Possible improvements for {{SCMNodeManager#getNodeStatistics}}:
> - avoid repeated {{getAllNodes()}} calls, store and reuse the list
> - avoid repeated iteration of nodes for {{nodeStateStatistics}} (by each 
> {{get...NodeCount()}} method)
> - {{nodeUsageStatistics}} may base its calculations on values aggregated by 
> {{nodeSpaceStatistics}} instead of iterating storage reports itself



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to