You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by GitBox <gi...@apache.org> on 2021/10/21 18:17:17 UTC

[GitHub] [ozone] adoroszlai opened a new pull request #2758: HDDS-5848. Introduce more replication metrics

adoroszlai opened a new pull request #2758:
URL: https://github.com/apache/ozone/pull/2758


   ## What changes were proposed in this pull request?
   
   Capture few more metrics around replication.
   
   https://issues.apache.org/jira/browse/HDDS-5848
   
   ## How was this patch tested?
   
   Updated unit test.
   
   https://github.com/adoroszlai/hadoop-ozone/actions/runs/1368400919


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


[GitHub] [ozone] ayushtkn commented on a change in pull request #2758: HDDS-5848. Introduce more replication metrics

Posted by GitBox <gi...@apache.org>.
ayushtkn commented on a change in pull request #2758:
URL: https://github.com/apache/ozone/pull/2758#discussion_r735491178



##########
File path: hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/replication/MeasuredReplicator.java
##########
@@ -67,12 +73,15 @@ public void replicate(ReplicationTask task) {
         (Instant.now().getNano() - task.getQueued().getNano()) / 1_000_000;
     queueTime.incr(msInQueue);
     delegate.replicate(task);
+    long end = System.currentTimeMillis();
     if (task.getStatus() == Status.FAILED) {
       failure.incr();
+      failureBytes.incr(task.getTransferredBytes());
+      failureTime.incr(end - start);

Review comment:
       We are using ``System.currentTimeMillis();`` to calculate the time duration, Should we use ``Time.monotonicNow()``?




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


[GitHub] [ozone] adoroszlai commented on a change in pull request #2758: HDDS-5848. Introduce more replication metrics

Posted by GitBox <gi...@apache.org>.
adoroszlai commented on a change in pull request #2758:
URL: https://github.com/apache/ozone/pull/2758#discussion_r741066046



##########
File path: hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/replication/MeasuredReplicator.java
##########
@@ -67,12 +73,15 @@ public void replicate(ReplicationTask task) {
         (Instant.now().getNano() - task.getQueued().getNano()) / 1_000_000;
     queueTime.incr(msInQueue);
     delegate.replicate(task);
+    long end = System.currentTimeMillis();
     if (task.getStatus() == Status.FAILED) {
       failure.incr();
+      failureBytes.incr(task.getTransferredBytes());
+      failureTime.incr(end - start);

Review comment:
       Thanks @ayushtkn for the idea.  I have updated the patch.




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


[GitHub] [ozone] adoroszlai merged pull request #2758: HDDS-5848. Introduce more replication metrics

Posted by GitBox <gi...@apache.org>.
adoroszlai merged pull request #2758:
URL: https://github.com/apache/ozone/pull/2758


   


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


[GitHub] [ozone] adoroszlai commented on pull request #2758: HDDS-5848. Introduce more replication metrics

Posted by GitBox <gi...@apache.org>.
adoroszlai commented on pull request #2758:
URL: https://github.com/apache/ozone/pull/2758#issuecomment-971629733


   Thanks @ayushtkn and @guihecheng for the review.


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


[GitHub] [ozone] adoroszlai commented on a change in pull request #2758: HDDS-5848. Introduce more replication metrics

Posted by GitBox <gi...@apache.org>.
adoroszlai commented on a change in pull request #2758:
URL: https://github.com/apache/ozone/pull/2758#discussion_r741066046



##########
File path: hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/replication/MeasuredReplicator.java
##########
@@ -67,12 +73,15 @@ public void replicate(ReplicationTask task) {
         (Instant.now().getNano() - task.getQueued().getNano()) / 1_000_000;
     queueTime.incr(msInQueue);
     delegate.replicate(task);
+    long end = System.currentTimeMillis();
     if (task.getStatus() == Status.FAILED) {
       failure.incr();
+      failureBytes.incr(task.getTransferredBytes());
+      failureTime.incr(end - start);

Review comment:
       Thanks @ayushtkn for the idea.  I have updated the patch.




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


[GitHub] [ozone] guihecheng commented on pull request #2758: HDDS-5848. Introduce more replication metrics

Posted by GitBox <gi...@apache.org>.
guihecheng commented on pull request #2758:
URL: https://github.com/apache/ozone/pull/2758#issuecomment-950471195


   Thanks for adding these metrics, this is very useful for us, and the patch LGTM.


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


[GitHub] [ozone] adoroszlai commented on a change in pull request #2758: HDDS-5848. Introduce more replication metrics

Posted by GitBox <gi...@apache.org>.
adoroszlai commented on a change in pull request #2758:
URL: https://github.com/apache/ozone/pull/2758#discussion_r741066046



##########
File path: hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/replication/MeasuredReplicator.java
##########
@@ -67,12 +73,15 @@ public void replicate(ReplicationTask task) {
         (Instant.now().getNano() - task.getQueued().getNano()) / 1_000_000;
     queueTime.incr(msInQueue);
     delegate.replicate(task);
+    long end = System.currentTimeMillis();
     if (task.getStatus() == Status.FAILED) {
       failure.incr();
+      failureBytes.incr(task.getTransferredBytes());
+      failureTime.incr(end - start);

Review comment:
       Thanks @ayushtkn for the idea.  I have updated the patch.




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


[GitHub] [ozone] adoroszlai commented on pull request #2758: HDDS-5848. Introduce more replication metrics

Posted by GitBox <gi...@apache.org>.
adoroszlai commented on pull request #2758:
URL: https://github.com/apache/ozone/pull/2758#issuecomment-963345663


   @kerneltime Can you please take a look, too?


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