simplify db

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
2023-04-20 20:43:05 +00:00
parent 109f9993cc
commit c3160f760f
4 changed files with 58 additions and 22 deletions

42
localdb.json.template Normal file
View File

@@ -0,0 +1,42 @@
{
"resources": {
"cores": {
"type": "numeric",
"multiplier": 1,
"compact": false,
"unit": "Cores"
},
"memory": {
"type": "numeric",
"multiplier": 1048576,
"compact": true,
"unit": "B"
},
"local": {
"type": "storage",
"multiplier": 1,
"compact": true,
"unit": "B",
"disks": ["rootfs", "mp", "sata", "unused"]
},
"cephpl": {
"type": "storage",
"multiplier": 1,
"compact": true,
"unit": "B",
"disks": ["rootfs", "mp", "sata", "unused"]
}
},
"users": {
"exampleuser@realm": {
"resources": {
"max": {
"cores": 128,
"memory": 131072,
"local": 1099511627776,
"cephpl": 1099511627776
}
}
}
}
}