xinglin opened a new pull request, #5730:
URL: https://github.com/apache/hadoop/pull/5730

   ### Description of PR
   Add two new types of metrics to the existing NN 
RpcMetrics/RpcDetailedMetrics. These two metrics can then be used as part of 
SLA/SLO for the HDFS service.
   
   - RpcCallSuccesses: it measures the number of RPC requests where they are 
successfully processed by a NN (e.g., with a response with an RpcStatus 
RpcStatusProto.SUCCESS). Then, together with RpcQueueNumOps (which refers the 
total number of RPC requests), we can derive the RpcErrorRate for our NN, as 
(RpcQueueNumOps - RpcCallSuccesses) / RpcQueueNumOps. 
   
   - OverallRpcProcessingTime for each RPC method: this metric measures the 
overall RPC processing time for each RPC method at the NN. It covers the time 
from when a request arrives at the NN to when a response is sent back. We are 
already emitting processingTime for each RPC method today in 
RpcDetailedMetrics. We want to extend it to emit overallRpcProcessingTime for 
each RPC method, which includes enqueueTime, queueTime, processingTime, 
responseTime, and handlerTime.
   
   ### How was this patch tested?
   ```
   mvn test -Dtest="TestRPC#testOverallRpcProcessingTimeMetric"
   [INFO] -------------------------------------------------------
   [INFO]  T E S T S
   [INFO] -------------------------------------------------------
   [INFO] Running org.apache.hadoop.ipc.TestRPC
   [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.014 
s - in org.apache.hadoop.ipc.TestRPC
   [INFO]
   [INFO] Results:
   [INFO]
   [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
   
   mvn test -Dtest="TestRPC#testRpcCallSuccessesMetric"
   [INFO] -------------------------------------------------------
   [INFO]  T E S T S
   [INFO] -------------------------------------------------------
   [INFO] Running org.apache.hadoop.ipc.TestRPC
   [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.004 
s - in org.apache.hadoop.ipc.TestRPC
   [INFO]
   [INFO] Results:
   [INFO]
   [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
   ```
   
   ### For code changes:
   
   - [ ] Does the title or this PR starts with the corresponding JIRA issue id 
(e.g. 'HADOOP-17799. Your PR title ...')?
   - [ ] Object storage: have the integration tests been executed and the 
endpoint declared according to the connector-specific documentation?
   - [ ] If adding new dependencies to the code, are these dependencies 
licensed in a way that is compatible for inclusion under [ASF 
2.0](http://www.apache.org/legal/resolved.html#category-a)?
   - [ ] If applicable, have you updated the `LICENSE`, `LICENSE-binary`, 
`NOTICE-binary` files?
   
   


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

Reply via email to