US 12,277,321 B1
Method and apparatus for supporting IOPS burst, electronic device, and medium
Donghe Chen, Jiangsu (CN); Peng Zhao, Jiangsu (CN); and Ruipeng Feng, Jiangsu (CN)
Assigned to SUZHOU METABRAIN INTELLIGENT TECHNOLOGY CO., LTD., Jiangsu (CN)
Appl. No. 18/865,255
Filed by SUZHOU METABRAIN INTELLIGENT TECHNOLOGY CO., LTD., Jiangsu (CN)
PCT Filed May 25, 2023, PCT No. PCT/CN2023/096159
§ 371(c)(1), (2) Date Nov. 12, 2024,
PCT Pub. No. WO2024/113716, PCT Pub. Date Jun. 6, 2024.
Claims priority of application No. 202211498305.0 (CN), filed on Nov. 28, 2022.
Int. Cl. G06F 3/06 (2006.01)
CPC G06F 3/061 (2013.01) [G06F 3/0655 (2013.01); G06F 3/0679 (2013.01)] 20 Claims
OG exemplary drawing
 
1. A method for supporting an input/output operations per second (IOPS) burst, applied to a storage cluster comprising one or more storage volumes and a token bucket, the method comprises:
in response to an input/output (I/O) read/write operation for each of the storage volumes, recording a current I/O read/write time and an I/O quantity of the I/O read/write operation;
calculating a time difference between the current I/O read/write time and a previous I/O read/write time, and updating a capacity of a storage volume primary bucket and a capacity of a storage volume burst rate bucket according to the time difference and a preset token inflow bucket rate, wherein the storage volume primary bucket is used to control a maximum IOPS of the storage volumes and the storage volume burst rate bucket is used to control an IOPS burst rate of the storage volumes;
determining a state of I/O in the I/O read/write operation according to the I/O quantity and a size relationship among an updated capacity of the storage volume primary bucket, an updated capacity of the storage volume burst rate bucket and a capacity of a storage volume burst capacity bucket, wherein the storage volume burst capacity bucket is used to control an IOPS burst duration of the storage volumes and the state of the I/O is used to reflect a state of IOPS; and
performing the I/O read/write operation according to the state of the I/O,
wherein the token bucket comprises a plurality of tokens, and the token bucket comprises the storage volume primary bucket, the storage volume burst rate bucket and the storage volume burst capacity bucket.