| CPC G06F 3/061 (2013.01) [G06F 3/0655 (2013.01); G06F 3/0679 (2013.01)] | 20 Claims |

|
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.
|