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

JiangHua Zhu updated HDDS-11083:
--------------------------------
    Description: 
In DN, it is a regular operation to send heartbeats to SCM/Recon.
When DatanodeStates=RUNNING, some objects are repeatedly created every time a 
heartbeat occurs: RunningDatanodeState, VersionEndpointTask, 
RegisterEndpointTask, HeartbeatEndpointTask. If these objects are created every 
time, additional resources will be consumed. The best way is to reuse them once 
they are created successfully.
 !screenshot-1.png! 
 !screenshot-2.png! 

  was:
In DN, it is a regular operation to send heartbeats to SCM/Recon.
When DatanodeStates=RUNNING, some objects are repeatedly created every time a 
heartbeat occurs: RunningDatanodeState, VersionEndpointTask, 
RegisterEndpointTask, HeartbeatEndpointTask. If these objects are created every 
time, additional resources will be consumed. The best way is to reuse them once 
they are created successfully.


> Avoid duplicate creation of RunningDatanodeState
> ------------------------------------------------
>
>                 Key: HDDS-11083
>                 URL: https://issues.apache.org/jira/browse/HDDS-11083
>             Project: Apache Ozone
>          Issue Type: Improvement
>          Components: DN
>    Affects Versions: 1.4.0
>            Reporter: JiangHua Zhu
>            Assignee: JiangHua Zhu
>            Priority: Major
>         Attachments: screenshot-1.png, screenshot-2.png
>
>
> In DN, it is a regular operation to send heartbeats to SCM/Recon.
> When DatanodeStates=RUNNING, some objects are repeatedly created every time a 
> heartbeat occurs: RunningDatanodeState, VersionEndpointTask, 
> RegisterEndpointTask, HeartbeatEndpointTask. If these objects are created 
> every time, additional resources will be consumed. The best way is to reuse 
> them once they are created successfully.
>  !screenshot-1.png! 
>  !screenshot-2.png! 



--
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