Skip to content

Commit be1c8db

Browse files
committed
rbd: move qos parameters from sc to vac
storageclass is no longer used as the qos parameters carrier for RBD volumes; these parameters are now defined in volumeattribetesclass. Signed-off-by: Yite Gu <guyite@bytedance.com>
1 parent 76ada5e commit be1c8db

File tree

2 files changed

+52
-60
lines changed

2 files changed

+52
-60
lines changed

examples/rbd/storageclass.yaml

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -197,58 +197,6 @@ parameters:
197197
# stripeCount: <>
198198
# (optional) The object size in bytes.
199199
# objectSize: <>
200-
201-
# rbd volume QoS.
202-
# QoS provides settings for rbd volume read/write iops
203-
# and read/write bandwidth. There are 4 base qos parameters
204-
# among them, when users apply for a volume capacity equal
205-
# to or less than BaseVolSizebytes, use base qos limit.
206-
# For the portion of capacity exceeding BaseVolSizebytes,
207-
# QoS will be increased in steps set per GiB. If the step
208-
# size parameter per GiB is not provided, only base QoS limit
209-
# will be used and not associated with capacity size.
210-
#
211-
# note: currently supports rbd-nbd mounter.
212-
#
213-
# For more details
214-
# (optional) the base limit of operations per second.
215-
# baseIops: <>
216-
# (optional) the max limit of operations per second.
217-
# maxIops: <>
218-
# (optional) the base limit of read operations per second.
219-
# baseReadIops: <>
220-
# (optional) the max limit of read operations per second.
221-
# maxReadIops: <>
222-
# (optional) the base limit of write operations per second.
223-
# baseWriteIops: <>
224-
# (optional) the max limit of write operations per second.
225-
# maxWriteIops: <>
226-
# (optional) the base limit of bytes per second.
227-
# baseBps: <>
228-
# (optional) the max limit of bytes per second.
229-
# maxBps: <>
230-
# (optional) the base limit of read bytes per second.
231-
# baseReadBps: <>
232-
# (optional) the max limit of read bytes per second.
233-
# maxReadBps: <>
234-
# (optional) the base limit of write bytes per second.
235-
# baseWriteBps: <>
236-
# (optional) the max limit of write bytes per second.
237-
# maxWriteBps: <>
238-
# (optional) the limit of operations per GiB.
239-
# iopsPerGiB: <>
240-
# (optional) the limit of read operations per GiB.
241-
# readIopsPerGiB: <>
242-
# (optional) the limit of write operations per GiB.
243-
# writeIopsPerGiB: <>
244-
# (optional) the limit of bytes per GiB.
245-
# bpsPerGiB: <>
246-
# (optional) the limit of read bytes per GiB.
247-
# readBpsPerGiB: <>
248-
# (optional) the limit of write bytes per GiB.
249-
# writeBpsPerGiB: <>
250-
# (optional) min size of volume what use to calc qos beased on capacity.
251-
# baseVolSizeBytes:<>
252200
reclaimPolicy: Delete
253201
allowVolumeExpansion: true
254202

examples/rbd/volumeattributesclass.yaml

Lines changed: 52 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,57 @@
22
apiVersion: storage.k8s.io/v1
33
kind: VolumeAttributesClass
44
metadata:
5-
name: flex
5+
name: qos-vac
66
driverName: rbd.csi.ceph.com
77
parameters:
8-
baseIops: "1800"
9-
maxIops: "10000"
10-
baseBps: "104857600"
11-
maxBps: "188743680"
12-
iopsPerGiB: "12"
13-
bpsPerGiB: "209715"
14-
baseVolSizeBytes: "21474836480"
8+
# rbd volume QoS.
9+
# QoS provides settings for rbd volume read/write iops
10+
# and read/write bandwidth. There are 6 base qos parameters
11+
# among them, when users apply for a volume capacity equal
12+
# to or less than BaseVolSizebytes, use base qos limit.
13+
# For the portion of capacity exceeding BaseVolSizebytes,
14+
# QoS will be increased in steps set per GiB. If the step
15+
# size parameter per GiB is not provided, only base QoS limit
16+
# will be used and not associated with capacity size.
17+
#
18+
# note: currently supports rbd-nbd mounter.
19+
#
20+
# For more details
21+
# (optional) the base limit of operations per second.
22+
baseIops: 1000
23+
# (optional) the max limit of operations per second.
24+
# maxIops: <>
25+
# (optional) the base limit of read operations per second.
26+
# baseReadIops: <>
27+
# (optional) the max limit of read operations per second.
28+
# maxReadIops: <>
29+
# (optional) the base limit of write operations per second.
30+
# baseWriteIops: <>
31+
# (optional) the max limit of write operations per second.
32+
# maxWriteIops: <>
33+
# (optional) the base limit of bytes per second.
34+
# baseBps: <>
35+
# (optional) the max limit of bytes per second.
36+
# maxBps: <>
37+
# (optional) the base limit of read bytes per second.
38+
# baseReadBps: <>
39+
# (optional) the max limit of read bytes per second.
40+
# maxReadBps: <>
41+
# (optional) the base limit of write bytes per second.
42+
# baseWriteBps: <>
43+
# (optional) the max limit of write bytes per second.
44+
# maxWriteBps: <>
45+
# (optional) the limit of operations per GiB.
46+
# iopsPerGiB: <>
47+
# (optional) the limit of read operations per GiB.
48+
# readIopsPerGiB: <>
49+
# (optional) the limit of write operations per GiB.
50+
# writeIopsPerGiB: <>
51+
# (optional) the limit of bytes per GiB.
52+
# bpsPerGiB: <>
53+
# (optional) the limit of read bytes per GiB.
54+
# readBpsPerGiB: <>
55+
# (optional) the limit of write bytes per GiB.
56+
# writeBpsPerGiB: <>
57+
# (optional) min size of volume what use to calc qos beased on capacity.
58+
# baseVolSizeBytes:<>

0 commit comments

Comments
 (0)