*: Add dbSizeInUse to StatusResposne
Existing dbSize shows physically allocated DB size and the backend (boltdb) won't shrink it after a compaction until a user runs the defrag command. The new dbSizeInUse shows the DB size that excludes free pages created by compactions so that users can see the actual DB usage. dbSize >= dbSizeInUse is always true. Note that dbSizeInUse shows a page-based size and not byte level usage.
This commit is contained in:
@ -2164,7 +2164,12 @@
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"dbSize": {
|
||||
"description": "dbSize is the size of the backend database, in bytes, of the responding member.",
|
||||
"description": "dbSize is the size of the backend database physically allocated, in bytes, of the responding member.",
|
||||
"type": "string",
|
||||
"format": "int64"
|
||||
},
|
||||
"dbSizeInUse": {
|
||||
"description": "dbSizeInUse is the size of the backend database logically in use, in bytes, of the responding member.",
|
||||
"type": "string",
|
||||
"format": "int64"
|
||||
},
|
||||
|
Reference in New Issue
Block a user