The invention relates to the technical field of communication, in particular to a flow fine control method and
system.The method comprises the steps that firstly, flow data of a
system are collected in real time, the flow data comprise request frequency,
response time, CPU
utilization rate, memory
utilization rate and
thread pool utilization rate indexes, and then the token
generation rate is dynamically adjusted based on a flow
trend analysis result; generating tokens at regular time according to the adjusted rate, storing the tokens in a
token bucket, and checking the state of the
token bucket when a request is received: if available tokens exist, consuming the tokens and
processing the request, otherwise, refusing or delaying the request, and when the
system load exceeds a preset threshold value, triggering a fusing mechanism and pausing a non-key request; according to the method, the request number, the
response time, the CPU utilization rate, the memory utilization rate and the
thread pool utilization rate are collected in real time, and a mechanism for dynamically adjusting the token
generation rate is combined, so that the load change of the system can be accurately sensed, and the problem of dynamic response
lag is effectively solved.