HDDS-8840. Add metrics to Container Balancer#4998
Conversation
|
Changes LGTM. I had originally thought we should expose a metrics for the number of entries pending in the moveManager. I guess these new perIteration metrics cover it, as each iteration should start with everything from the last timed out or completed. There may be a small chance that something goes wrong and allows entries to build up in the moveManager pending table, but perhaps adding a metric for that is not needed. What do you think? |
|
Thanks @siddhantsangwan for the patch, @sodonnel for the review.
We can add more metrics in another task, if needed. |
Yes, |
What changes were proposed in this pull request?
Added metrics for number of moves that were scheduled in the latest iteration and in total. Included all
MoveResultfailure cases under existing metric for failures,numContainerMovesFailed. ExceptREPLICATION_FAIL_TIME_OUTandDELETION_FAIL_TIME_OUT, which are considered time outs and counted innumContainerMovesTimeout.What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-8840
How was this patch tested?
Added assertions to an existing unit test.