Add device class tiers to Ceph pools

Allows specifying a particular device class ("tier") for a given pool,
for instance SSD-only or NVMe-only. This is implemented with Crush
rules on the Ceph side, and via an additional new key in the pool
Zookeeper schema which is defaulted to "default".
This commit is contained in:
2021-12-28 20:39:50 -05:00
parent 58d57d7037
commit 25fe45dd28
8 changed files with 139 additions and 47 deletions

View File

@ -729,6 +729,10 @@
},
"type": "object"
},
"tier": {
"description": "The device class/tier of the pool",
"type": "string"
},
"volume_count": {
"description": "The number of volumes in the pool",
"type": "integer"
@ -5272,6 +5276,12 @@
"name": "replcfg",
"required": true,
"type": "string"
},
{
"description": "The device tier for the pool (hdd, ssd, nvme, or default)",
"in": "query",
"name": "tier",
"required": false
}
],
"responses": {
@ -5368,6 +5378,12 @@
"name": "replcfg",
"required": true,
"type": "string"
},
{
"description": "The device tier for the pool (hdd, ssd, nvme, or default)",
"in": "query",
"name": "tier",
"required": false
}
],
"responses": {