xichen01 commented on code in PR #10946:
URL: https://github.com/apache/ozone/pull/10946#discussion_r3777350598
##########
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/server/SCMBlockProtocolServer.java:
##########
@@ -197,6 +200,8 @@ public List<AllocatedBlock> allocateBlock(
auditMap.put("replication", replicationConfig.toString());
auditMap.put("owner", owner);
auditMap.put("client", clientMachine);
+ auditMap.put("storagePolicy", storagePolicy.toString());
+ auditMap.put("allowFallbackStoragePolicy",
String.valueOf(allowFallbackStoragePolicy));
Review Comment:
Yes, the current storage policy has very few metrics. We should add some
metrics, If you're interested, you can help implement them.
##########
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/server/SCMBlockProtocolServer.java:
##########
@@ -197,6 +200,8 @@ public List<AllocatedBlock> allocateBlock(
auditMap.put("replication", replicationConfig.toString());
auditMap.put("owner", owner);
auditMap.put("client", clientMachine);
+ auditMap.put("storagePolicy", storagePolicy.toString());
+ auditMap.put("allowFallbackStoragePolicy",
String.valueOf(allowFallbackStoragePolicy));
Review Comment:
Yes, the current storage policy has very few metrics. We should add some
metrics, If you're interested, you can help implement them.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]