This application discloses a flow control method, apparatus, device, and medium for input / output requests, relating to the field of
computer technology. The method includes: responding to an input / output request corresponding to a
disk array, obtaining the request type of the input / output request, wherein the request type is an access request or a maintenance request, where an access request is used to enable an external device to perform
data access operations on the
disk array, and a maintenance request is used to enable internal maintenance operations on the
disk array; if the request type is an access request, determining the
request queue corresponding to the input / output request as a
token bucket queue; or, if the request type is a maintenance request, determining the
request queue corresponding to the input / output request as a
leaky bucket queue; and adding the input / output request to the
request queue corresponding to the input / output request. This application combines the
token bucket and
leaky bucket mechanisms, balancing the
burstiness of access requests with the stability of maintenance requests.