-
Notifications
You must be signed in to change notification settings - Fork 8.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HDDS-1750. Add block allocation metrics for pipelines in SCM #1047
Conversation
💔 -1 overall
This message was automatically generated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this @lokeshj1703. The patch generally looks good to me.
@@ -152,6 +152,7 @@ public synchronized Pipeline createPipeline( | |||
stateManager.addPipeline(pipeline); | |||
nodeManager.addPipeline(pipeline); | |||
metrics.incNumPipelineCreated(); | |||
metrics.createNumBlocksAllocatedMetric(pipeline); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can line 154 and 155 be done in one state to pipelineMetrics ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be named as createPerPipelineMetrics or something like that :)
@@ -362,6 +364,7 @@ private void finalizePipeline(PipelineID pipelineId) throws IOException { | |||
for (ContainerID containerID : containerIDs) { | |||
eventPublisher.fireEvent(SCMEvents.CLOSE_CONTAINER, containerID); | |||
} | |||
metrics.clearMetrics(pipelineId); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets rename this to removePipelineMetrics
@mukul1987 Thanks for reviewing the PR! I have addresses the review commits in the latest commit. |
💔 -1 overall
This message was automatically generated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1, the changes looks good to me.
…uted by Lokesh Jain. (apache#1047)
… doing reflection (apache#1047) * SAMZA-2210: Initial majority migration for injecting classloader when doing reflection * apply reordering of arguments for ReflectionUtil methods * rename test method * fixing issues after merge * use buildContainerAllocator in ContainerProcessManager after merge * clean up variables and naming according to PR comments
…uted by Lokesh Jain. (apache#1047)
This Jira aims to add block allocation metrics for pipelines in SCM. This would help in determining the distribution of block allocations among various pipelines in SCM.