Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-5305 Ozone Namespace Summaries in Recon
  3. HDDS-5541

Namespace summary endpoint can carry basic information on the entity as well.

    XMLWordPrintableJSON

Details

    Description

      Currently, the /namsepace/summary endpoint carries only count data. Since it is a summary endpoint at the path level, we could make it more useful with other information as well.

      Sample volume and bucket summary API responses

      For volumes, we can add fields in OzoneVolume:

      {
      	"path": "/s3v",
      	"type": "VOLUME",
      	"counts": {
      		"volumes": 0,
      		"buckets": 1,
      		"directories": 3,
      		"object-store-prefixes": 0,
      		"keys": 2
      	},
      	"dbinfo": {
      		"metadata": {},
      		"name": "s3v",
      		"admin": "hadoop",
      		"owner": "hadoop",
      		"quotaInBytes": -1,
      		"quotaInNamespace": -1,
      		"usedNamespace": 1,
      		"creationTime": "2021-07-27T18:21:40.251Z",
      		"modificationTime": "2021-07-27T18:21:40.251Z",
      		"acls": []
      	},
      	"status": "OK"
      }
      

      For buckets, we can add fields in OzoneBucket:

      {
      	"path": "/s3v/s3bucket",
      	"type": "BUCKET",
      	"counts": {
      		"volumes": 0,
      		"buckets": 0,
      		"directories": 3,
      		"object-store-prefixes": 0,
      		"keys": 20
      	},
      	"dbinfo": {
      		"metadata": {
      			"ozone.om.metadata.layout": "PREFIX",
      			"ozone.om.enable.filesystem.paths": "true"
      		},
      		"volumeName": "s3v",
      		"name": "s3bucket",
      		"storageType": "DISK",
      		"versioning": false,
      		"usedBytes": 536870912,
      		"usedNamespace": 2,
      		"creationTime": "2021-07-27T19:33:54.574Z",
      		"modificationTime": "2021-07-27T19:33:54.574Z",
      		"encryptionKeyName": null,
      		"sourceVolume": null,
      		"sourceBucket": null,
      		"quotaInBytes": -1,
      		"quotaInNamespace": -1
      	},
      	"status": "OK"
      }
      

      For keys, we can add fields in OzoneKey

      Attachments

        Issue Links

          Activity

            People

              deveshsingh Devesh Kumar Singh
              avijayan Aravindan Vijayan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: