xichen01 opened a new pull request, #5644:
URL: https://github.com/apache/ozone/pull/5644
## What changes were proposed in this pull request?
Let the audit log record the detailed execution time
- Time-consuming interaction with OM: `metadataLatencyMs`/...
- Complete read and write elapsed time:
`createKeyLatencyMs`/`getKeyLatencyMs`/ `getBucketKeyCount`/...
- Read/write length, number of lists:
`putLength`/`getLength`/`copyLength`/...
Example:
```
2023-11-23 19:52:20,703 | INFO | S3GAudit | user=ozone |
ip=[0:0:0:0:0:0:0:1] | op=CREATE_KEY {bucket=[pony-bucket1], path=[15-2M.img]}
performance={metadataLatencyMs=37, putLength=52428800, createKeyLatencyMs=1744}
| ret=SUCCESS |
2023-11-23 19:52:32,020 | INFO | S3GAudit | user=ozone |
ip=[0:0:0:0:0:0:0:1] | op=GET_KEY {bucket=[pony-bucket1], path=[15-2M.img]}
performance={metadataLatencyMs=69, readLength=52428800, getKeyLatencyMs=1806} |
ret=SUCCESS |
2023-11-23 19:52:47,366 | INFO | S3GAudit | user=ozone |
ip=[0:0:0:0:0:0:0:1] | op=GET_BUCKET {bucket=[pony-bucket1], list-type=[2],
encoding-type=[url], prefix=[]} performance={getBucketKeyCount=1,
getBucketLatencyMs=67} | ret=SUCCESS |
```
## What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-9718
## How was this patch tested?
Manual test, Existing test
--
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]