yuangu002 opened a new pull request #2489:
URL: https://github.com/apache/ozone/pull/2489


   ## What changes were proposed in this pull request?
   
   In addition to actual key size, Recon 'du' should also return the replicated 
size of a key.
   For example, for a 3 way replicated key of size = 1MB, Recon 'du' should 
return '1MB' as the size of the key, and '3MB' as the replicated size if the 
key is fully replicated.
   
   [Refactoring]
   1. DU response now shows a "structure"
   2. DU key response shouldn't have subpaths
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-5449
   
   ## How was this patch tested?
   
   Since this is an improvement/refactoring feature on top of HDDS-5378, no 
additional unit test is implemented. I tested remotely on the cluster endpoint 
with the following configs:
   ![Screen Shot 2021-08-03 at 1 46 36 
PM](https://user-images.githubusercontent.com/53324985/128062467-ff763bc6-07a0-4a5a-9eab-857b8643523a.png)
   All keys are three-way replicated except `key3`
   
   [Root DU]
   http://localhost:9888/api/v1/namespace/du?path=/&replica=true
   ![root du 
-rep](https://user-images.githubusercontent.com/53324985/128065104-1e4fdbdd-9b84-4c75-9b14-cf70fb7ea5c7.png)
   
   [Volume DU]
   http://localhost:9888/api/v1/namespace/du?path=/vol&replica=true
   ![vol du 
-rep](https://user-images.githubusercontent.com/53324985/128065167-758ffd63-e89f-4120-a03b-3f7acea11715.png)
   
   [Bucket DU] `&files=true` enabled
   
http://localhost:9888/api/v1/namespace/du?path=/vol/bucket&files=true&replica=true
   ![bucket du 
-rep](https://user-images.githubusercontent.com/53324985/128065213-9049b519-27a6-443c-b387-450b9b9f2993.png)
   
   [Directory DU] `&files=true` enabled
   
http://localhost:9888/api/v1/namespace/du?path=/vol/bucket/dir1&files=true&replica=true
   ![dir1 du 
-rep](https://user-images.githubusercontent.com/53324985/128065242-e6b9efbd-532d-42e7-b2ac-9d913b8e8cff.png)
   (Key3 is one-way replicated.)
   
   [Nested Directory DU]
   
http://localhost:9888/api/v1/namespace/du?path=/vol/bucket/dir1/dir2&files=true&replica=true
   ![dir2 du 
-rep](https://user-images.githubusercontent.com/53324985/128065272-15b0af28-b79e-4f98-9666-f4c22ec9bf53.png)
   
   [Key DU]
   
http://localhost:9888/api/v1/namespace/du?path=/vol/bucket/dir1/dir2/dir3/key6&files=true&replica=true
   ![key du 
-rep](https://user-images.githubusercontent.com/53324985/128065331-8f0f3023-f50a-47a7-84f1-65774524708d.png)


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