Add pool PGs count modification

Allows an administrator to adjust the PG count of a given pool. This can
be used to increase the PGs (for example after adding more OSDs) or
decrease it (to remove OSDs, reduce CPU load, etc.).
This commit is contained in:
2021-12-28 21:41:41 -05:00
parent bbfad340a1
commit 1142454934
6 changed files with 184 additions and 3 deletions

View File

@ -5414,6 +5414,42 @@
"tags": [
"storage / ceph"
]
},
"put": {
"description": "",
"parameters": [
{
"description": "The new number of placement groups (PGs) for the pool",
"in": "query",
"name": "pgs",
"required": true,
"type": "integer"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/Message"
}
},
"400": {
"description": "Bad request",
"schema": {
"$ref": "#/definitions/Message"
}
},
"404": {
"description": "Not found",
"schema": {
"$ref": "#/definitions/Message"
}
}
},
"summary": "Adjust Ceph pool {pool}'s placement group count",
"tags": [
"storage / ceph"
]
}
},
"/api/v1/storage/ceph/snapshot": {