Skip to content
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-9626. [Recon] Disk Usage page with high number of key/bucket/volume #6535

Merged
merged 8 commits into from
Jun 10, 2024
Original file line number Diff line number Diff line change
Expand Up @@ -1396,37 +1396,222 @@
"root": {
"status": "OK",
"path": "/",
"size": 100000,
"sizeWithReplica": 300000,
"subPathCount": 5,
"size": 1709108,
"sizeWithReplica": -1,
"subPathCount": 30,
"subPaths": [
{
"key": false,
"path": "/vol-0-30461",
"size": 33096,
"sizeWithReplica": -1,
"isKey": false
},
{
"key": false,
"path": "/vol-1-82078",
"size": 33096,
"sizeWithReplica": -1,
"isKey": false
},
{
"key": false,
"path": "/vol-2-96509",
"size": 330496,
"sizeWithReplica": -1,
"isKey": false
},
{
"key": false,
"path": "/vol-3-75124",
"size": 330496,
"sizeWithReplica": -1,
"isKey": false
},
{
"key": false,
"path": "/vol-4-53147",
"size": 330240,
"sizeWithReplica": -1,
"isKey": false
},
{
"key": false,
"path": "/vol1",
"size": 50000,
"sizeWithReplica": 150000
"size": 12204,
"sizeWithReplica": -1,
"isKey": false
},
{
"path": "/vol2",
"size": 20000,
"sizeWithReplica": 60000
"key": false,
"path": "/vol17",
"size": 8136,
"sizeWithReplica": -1,
"isKey": false
},
{
"path": "/vol3",
"size": 10000,
"sizeWithReplica": 30000
"key": false,
"path": "/vol21",
"size": 8136,
"sizeWithReplica": -1,
"isKey": false
},
{
"key": false,
"path": "/vol22",
"size": 8136,
"sizeWithReplica": -1,
"isKey": false
},
{
"key": false,
"path": "/vol4",
"size": 10000,
"sizeWithReplica": 30000
"size": 8136,
"sizeWithReplica": -1,
"isKey": false
},
{
"key": false,
"path": "/vol18",
"size": 4068,
"sizeWithReplica": -1,
"isKey": false
},
{
"key": false,
"path": "/vol19",
"size": 4068,
"sizeWithReplica": -1,
"isKey": false
},
{
"key": false,
"path": "/s3v",
"size": 0,
"sizeWithReplica": -1,
"isKey": false
},
{
"key": false,
"path": "/vol10",
"size": 0,
"sizeWithReplica": -1,
"isKey": false
},
{
"key": false,
"path": "/vol11",
"size": 0,
"sizeWithReplica": -1,
"isKey": false
},
{
"key": false,
"path": "/vol12",
"size": 0,
"sizeWithReplica": -1,
"isKey": false
},
{
"key": false,
"path": "/vol13",
"size": 0,
"sizeWithReplica": -1,
"isKey": false
},
{
"key": false,
"path": "/vol14",
"size": 0,
"sizeWithReplica": -1,
"isKey": false
},
{
"key": false,
"path": "/vol15",
"size": 0,
"sizeWithReplica": -1,
"isKey": false
},
{
"key": false,
"path": "/vol16",
"size": 0,
"sizeWithReplica": -1,
"isKey": false
},
{
"key": false,
"path": "/vol2",
"size": 0,
"sizeWithReplica": -1,
"isKey": false
},
{
"key": false,
"path": "/vol20",
"size": 0,
"sizeWithReplica": -1,
"isKey": false
},
{
"key": false,
"path": "/vol3",
"size": 0,
"sizeWithReplica": -1,
"isKey": false
},
{
"key": false,
"path": "/vol5",
"size": 10000,
"sizeWithReplica": 30000
"size": 0,
"sizeWithReplica": -1,
"isKey": false
},
{
"key": false,
"path": "/vol6",
"size": 0,
"sizeWithReplica": -1,
"isKey": false
},
{
"key": false,
"path": "/vol7",
"size": 0,
"sizeWithReplica": -1,
"isKey": false
},
{
"key": false,
"path": "/vol8",
"size": 0,
"sizeWithReplica": -1,
"isKey": false
},
{
"key": false,
"path": "/vol9",
"size": 0,
"sizeWithReplica": -1,
"isKey": false
},
{
"key": false,
"path": "/vol10",
"size": 10,
"sizeWithReplica": -1,
"isKey": false
},
{
"key": false,
"path": "/vol11",
"size": 20,
"sizeWithReplica": -1,
"isKey": false
}
],
"sizeDirectKey": 0
"sizeDirectKey": -1
},
"volume": {
"status": "OK",
Expand Down Expand Up @@ -1517,37 +1702,41 @@
},
"dir": {
"status": "OK",
"path": "/dummyVolume/dummyBucket/dummyDir",
"size": 200000,
"path": "/volumetest/buckettest/dir1",
"size": 111010000,
"sizeWithReplica": -1,
"subPathCount": 5,
"subPathCount": 4,
"subPaths": [
{
"path": "/dummyVolume/dummyBucket/dummyDir/key1",
"size": 100000,
"key": true,
"path": "/volumetest/buckettest/dir1/key100MB",
"size": 100000000,
"sizeWithReplica": -1,
"isKey": true
},
{
"path": "/dummyVolume/dummyBucket/dummyDir/key2",
"size": 30000,
"key": true,
"path": "/volumetest/buckettest/dir1/key10mb",
"size": 10000000,
"sizeWithReplica": -1,
"isKey": true
},
{
"path": "/dummyVolume/dummyBucket/dummyDir/key3",
"size": 30000,
"key": true,
"path": "/volumetest/buckettest/dir1/key1MB",
"size": 1000000,
"sizeWithReplica": -1,
"isKey": true
},
{
"path": "/dummyVolume/dummyBucket/dummyDir/key4",
"size": 40000,
"key": true,
"path": "/volumetest/buckettest/dir1/key10kb",
"size": 10000,
"sizeWithReplica": -1,
"isKey": true
}
],
"sizeDirectKey": 50000
"sizeDirectKey": 111010000
},
"empty": {
"status": "OK",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,24 @@
"/containers/:id/keys": "/keys",
"/utilization/fileCount": "/fileSizeCounts",
"/utilization/containerCount": "/containerCount",
"/namespace/du?path=/&files=true": "/root",
"/namespace/du?path=/vol:id&files=true": "/volume",
"/namespace/du?path=/vol:id/&files=true": "/volume",
"/namespace/du?path=/dummyVolume&files=true": "/volume",
"/namespace/du?path=/vol:id/bucket:id&files=true": "/bucket",
"/namespace/du?path=/dummyVolume/bucket:id&files=true": "/bucket",
"/namespace/du?path=/dummyVolume/bucket:id/&files=true": "/bucket",
"/namespace/du?path=/dummyVolume/dummyBucket&files=true": "/bucket",
"/namespace/du?path=/vol:id/bucket:id/dir:id*&files=true": "/dir",
"/namespace/du?path=/dummyVolume/dummyBucket/dir:id&files=true": "/dir",
"/namespace/du?path=/dummyVolume/dummyBucket/dir:id/&files=true": "/dir",
"/namespace/du?path=/dummyVolume/dummyBucket/dummyDir&files=true": "/dir",
"/namespace/du?path=/&files=true&sortSubpaths=true": "/root",
"/namespace/du?path=/vol:id&files=true&sortSubpaths=true": "/volume",
"/namespace/du?path=/vol:id/&files=true&sortSubPaths=true": "/volume",
"/namespace/du?path=/dummyVolume&files=true&sortSubPaths=true": "/volume",
"/namespace/du?path=/vol:id/bucket:id&files=true&sortSubPaths=true": "/bucket",
"/namespace/du?path=/dummyVolume/bucket:id&files=true&sortSubPaths=true": "/bucket",
"/namespace/du?path=/dummyVolume/bucket:id/&files=true&sortSubPaths=true": "/bucket",
"/namespace/du?path=/dummyVolume/dummyBucket&files=true&sortSubPaths=true": "/bucket",
"/namespace/du?path=/vol:id/bucket:id/dir:id*&files=true&sortSubPaths=true": "/dir",
"/namespace/du?path=/dummyVolume/dummyBucket/dir:id&files=true&sortSubPaths=true": "/dir",
"/namespace/du?path=/dummyVolume/dummyBucket/dir:id/&files=true&sortSubPaths=true": "/dir",
"/namespace/du?path=/dummyVolume/dummyBucket/dummyDir&files=true&sortSubPaths=true": "/dir",
"/namespace/du?path=/vol:id/bucket:id/dir:id/key:id*": "/key",
"/namespace/du?path=/dummyVolume/dummyBucket/dummyDir/key:id*": "/key",
"/namespace/du?path=/vol:id/bucket:id/key:id*": "/key",
"/namespace/du?path=/dummyVolume/dummyBucket/key:id*": "/key",
"/namespace/du?path=/vol1/bucket1/empty&files=true": "/empty",
"/namespace/du?path=/clunky&files=true": "/clunky",
"/namespace/du?path=/vol1/bucket1/empty&files=true&sortSubPaths=true": "/empty",
"/namespace/du?path=/clunky&files=true&sortSubpaths=true": "/clunky",
"/namespace/summary?path=*": "/metadata",
"/namespace/quota?path=*": "/quota",
"/task/status": "/taskStatus",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ export class DetailPanel extends React.Component<IRightDrawerProps> {
<Drawer
title={`Metadata Summary for ${path}`}
placement='right'
width='40%'
closable={false}
width='25%'
closable={true}
visible={visible}
getContainer={false}
style={{position: 'absolute'}}
Expand Down
Loading