You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "jianghuazhu (via GitHub)" <gi...@apache.org> on 2024/09/07 07:23:58 UTC

[PR] HDDS-11429. Add lifeline to improve heartbeat report [ozone]

jianghuazhu opened a new pull request, #7173:
URL: https://github.com/apache/ozone/pull/7173

   ## What changes were proposed in this pull request?
   In some cases, Datanode will be blocked from reporting heartbeats to SCM, which is very unfriendly. A lifeline mechanism should be designed here to improve the heartbeat reporting between Datanode and SCM, and Datanode and Recon.
   
   ## What is the link to the Apache JIRA
   https://issues.apache.org/jira/browse/HDDS-11429
   
   ## How was this patch tested?
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org


Re: [PR] HDDS-11429. Add lifeline to improve heartbeat report [ozone]

Posted by "kerneltime (via GitHub)" <gi...@apache.org>.
kerneltime commented on PR #7173:
URL: https://github.com/apache/ozone/pull/7173#issuecomment-2338552267

   Side note: When posting logs using a single ` does not format multiline tests. Instead use ``` to format as markdown. Ref: https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#quoting-code


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org


Re: [PR] HDDS-11429. Add lifeline to improve heartbeat report [ozone]

Posted by "Tejaskriya (via GitHub)" <gi...@apache.org>.
Tejaskriya commented on code in PR #7173:
URL: https://github.com/apache/ozone/pull/7173#discussion_r1749622656


##########
hadoop-hdds/common/src/main/resources/ozone-default.xml:
##########
@@ -1577,6 +1577,15 @@
       executed since last report. Unit could be defined with
       postfix (ns,ms,s,m,h,d)</description>
   </property>
+  <property>
+    <name>hdds.lifeline.report.enable</name>
+    <value>false</value>
+    <tag>OZONE, DATANODE, MANAGEMENT</tag>
+    <description>
+      Whether to enable Datanode to send lifeline to SCM and Recon.
+      The default value is false.

Review Comment:
   ```suggestion
         It specifies whether Datanode will send lifeline 
         to SCM and Recon. The default value is false.
   ```



##########
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/protocolPB/StorageContainerDatanodeProtocolClientSideTranslatorPB.java:
##########
@@ -179,4 +181,17 @@ public SCMRegisteredResponseProto register(
         (builder) -> builder.setRegisterRequest(req))
         .getRegisterResponse();
   }
+
+  /**
+   * Send by datanode to SCM.
+   * @param lifelineRequest Lifeline request containing the message body.
+   * @return Lifeline Response.
+   */

Review Comment:
   This API doc can be removed to avoid duplication. (as it inherits the doc by default from the implemented interface StorageContainerDatanodeProtocol). We should keep implementation-specific details, but in this case it doesn't seem like there are any.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org


Re: [PR] HDDS-11429. Add lifeline to improve heartbeat report [ozone]

Posted by "jianghuazhu (via GitHub)" <gi...@apache.org>.
jianghuazhu commented on PR #7173:
URL: https://github.com/apache/ozone/pull/7173#issuecomment-2342597884

   Ok, I understand.
   Thanks to @szetszwo  for the comment and suggestion.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org


Re: [PR] HDDS-11429. Add lifeline to improve heartbeat report [ozone]

Posted by "adoroszlai (via GitHub)" <gi...@apache.org>.
adoroszlai commented on PR #7173:
URL: https://github.com/apache/ozone/pull/7173#issuecomment-2409059136

   Thanks @jianghuazhu for the patch, @kerneltime, @sodonnel, @szetszwo, @Tejaskriya for the review.  Closed based on discussion.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org


Re: [PR] HDDS-11429. Add lifeline to improve heartbeat report [ozone]

Posted by "jianghuazhu (via GitHub)" <gi...@apache.org>.
jianghuazhu commented on PR #7173:
URL: https://github.com/apache/ozone/pull/7173#issuecomment-2335108796

   ci: https://github.com/jianghuazhu/ozone/actions/runs/10740043260
   @szetszwo , can you help review this PR?
   Thanks.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org


Re: [PR] HDDS-11429. Add lifeline to improve heartbeat report [ozone]

Posted by "jianghuazhu (via GitHub)" <gi...@apache.org>.
jianghuazhu commented on PR #7173:
URL: https://github.com/apache/ozone/pull/7173#issuecomment-2338339851

   Thanks @sodonnel  for your comments and review.
   I understand your suggestion. This PR will be converted to a draft first.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org


Re: [PR] HDDS-11429. Add lifeline to improve heartbeat report [ozone]

Posted by "sodonnel (via GitHub)" <gi...@apache.org>.
sodonnel commented on PR #7173:
URL: https://github.com/apache/ozone/pull/7173#issuecomment-2337612901

   > In some cases, Datanode will be blocked from reporting heartbeats to SCM,
   
   Why is the DN blocked? What is the thread that is supposed to service the heartbeat doing to block it for such a long time?
   
   IMO it would be better to try to fix the issues causing the heartbeat to be blocked, than adding another lifeline protocol which may not be needed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org


Re: [PR] HDDS-11429. Add lifeline to improve heartbeat report [ozone]

Posted by "jianghuazhu (via GitHub)" <gi...@apache.org>.
jianghuazhu commented on PR #7173:
URL: https://github.com/apache/ozone/pull/7173#issuecomment-2337698752

   Thanks to @sodonnel  for the comment.
   The Datanode was unable to report heartbeats to the SCM for a long time, which was first documented in HDDS-11331. The inability to report heartbeats to the SCM was due to StateContext#pipelineActions being blocked, which was addressed in HDDS-11331. The addition of the lifeline feature was also mentioned in the comments of HDDS-11331 as an aid to solving this problem.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org


Re: [PR] HDDS-11429. Add lifeline to improve heartbeat report [ozone]

Posted by "szetszwo (via GitHub)" <gi...@apache.org>.
szetszwo commented on PR #7173:
URL: https://github.com/apache/ozone/pull/7173#issuecomment-2342387216

   @jianghuazhu , thanks for working this!
   
   The change is quite large.  In such case, we should have a design and more discussion first.
   
   > With the lifeline, it is possible to make a DN appear healthy, but if it cannot heartbeat or process commands, its certainly in a degraded state. The lifeline hides that.
   
   In HDFS, lifelines is to prevent the namenode getting too busy so it won't be able to process datanode heartbeats on time.  In Ozone, if SCM can get too busy, then lifelines become useful.   Lifeline is for SCM but not datanodes. 
   
   However, SCM currently does not have such problem.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org


Re: [PR] HDDS-11429. Add lifeline to improve heartbeat report [ozone]

Posted by "adoroszlai (via GitHub)" <gi...@apache.org>.
adoroszlai closed pull request #7173: HDDS-11429. Add lifeline to improve heartbeat report
URL: https://github.com/apache/ozone/pull/7173


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org


Re: [PR] HDDS-11429. Add lifeline to improve heartbeat report [ozone]

Posted by "sodonnel (via GitHub)" <gi...@apache.org>.
sodonnel commented on PR #7173:
URL: https://github.com/apache/ozone/pull/7173#issuecomment-2337943950

   Now that [HDDS-11331](https://issues.apache.org/jira/browse/HDDS-11331) is resolved, and the DN command processing should be off the main thread, this sort of problem should not happen.
   
   I think we should avoid complicating things with the lifeline protocol and instead look to address such issues with the DN to keep it responsive.
   
   With the lifeline, it is possible to make a DN appear healthy, but if it cannot heartbeat or process commands, its certainly in a degraded state. The lifeline hides that.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org


Re: [PR] HDDS-11429. Add lifeline to improve heartbeat report [ozone]

Posted by "jianghuazhu (via GitHub)" <gi...@apache.org>.
jianghuazhu commented on PR #7173:
URL: https://github.com/apache/ozone/pull/7173#issuecomment-2339538247

   Thanks @kerneltime  for the comment.
   I think I learned something new.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org