Incorrent clone size in metadata
Goal
- CloneSize -> CloneDiffSize in API (console, database lab, update specification)
- Are we sure that data size is correct?
Following the tutorial, when you do psql ... -c '\l+'
, it shows correct size, as expected (~1.5 GiB), but when you do dblab clone list
, it shows weird size something like ~200,000:
"metadata": {
"cloneSize": 217088,
"cloningTime": 1.344037454,
"maxIdleMinutes": 20
},
cloneSize
seems to be diff size, needs renaming
Current values:
- CLI:
"cloneSize": 218112
, - GUI:
Data size: 2.504 GiB
, - psql is correct:
1503 MB
$ zfs list -po name,used,mountpoint,compressratio,available,type,origin,creation,referenced,logicalreferenced,logicalused,dblab:datastateat -S dblab:datastateat -S creation -t filesystem
NAME USED MOUNTPOINT RATIO AVAIL TYPE ORIGIN CREATION REFER LREFER LUSED DBLAB:DATASTATEAT
dblab_pool/dblab_clone_6000 440320 /var/lib/dblab/clones/dblab_clone_6000 2.10 33532292608 filesystem dblab_pool@initdb 1587380790 532452352 2688620544 592384 -
dblab_pool 533844480 /var/lib/dblab/data 5.17 33532292608 filesystem - 1587325346 532447232 2688612864 2689524224 -
TODO / How to implement
Fix clone size in CLI, GUI and Database Lab API response
Data size is correct:
/var/lib/dblab/data# du -h --apparent-size | sort -rh | head -10
2.5G .
1.5G ./base/16384
1.5G ./base
1.1G ./pg_wal
7.8M ./base/13423
7.7M ./base/13422
7.7M ./base/1
623K ./global
17K ./pg_multixact
14K ./pg_stat
Acceptance criteria
Edited by Artyom Kartasov