CN-121984918-A - Dynamic regulation and control method, device, equipment and medium
Abstract
The invention relates to the technical field of operation and maintenance management, which can be applied to financial science and technology and medical health scenes and discloses a dynamic regulation method, a device, equipment and a medium, wherein the dynamic regulation method, the device, the equipment and the medium comprise the steps of calculating at least one behavior characteristic value of a request sequence from the same client, wherein the request sequence comprises a plurality of request behaviors sent by the client; and dynamically adjusting a current limiting threshold of the client according to the behavior entropy value, wherein the higher the behavior entropy value is, the lower the current limiting threshold is. The current limiting threshold can be adaptively adjusted to ensure the response speed of a real user and inhibit abnormal behaviors.
Inventors
- LIN YANYU
- TONG YAOYI
- XU WEI
- KONG XIANGCHENG
Assignees
- 平安科技(深圳)有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20260202
Claims (10)
- 1. The dynamic regulation and control method is characterized by being applied to a server and comprising the following steps: Calculating at least one behavior characteristic value of a request sequence from the same client, wherein the request sequence comprises a plurality of request behaviors sent by the client; calculating a behavior entropy value representing the randomness of the behavior of the client based on the behavior characteristic value; and dynamically adjusting the current limiting threshold of the client according to the behavior entropy value, wherein the higher the behavior entropy value is, the lower the current limiting threshold is.
- 2. The method according to claim 1, wherein the behavior feature values of the request sequence comprise at least any one of: The parameter repetition degree is used for representing the repeated submission proportion of the request parameter; Time interval variance, is used for representing the volatility of request initiation time interval; request path similarity, which is used for representing the similarity of access interface paths; and the retry rate is used for representing the frequency of retries after the request fails.
- 3. The method of claim 2, wherein the method of calculating the parameter repeatability comprises: Acquiring total request times and repeated submission times of the same parameters; and calculating the ratio of the repeated submission times to the total request times to obtain the parameter repeatability.
- 4. The method of claim 2, wherein the method of calculating the retry rate comprises: acquiring a total failed request quantity and retry times after failure; and calculating the ratio of the number of retries after failure to the total request quantity after failure to obtain the retry rate.
- 5. The method of claim 1, wherein the calculating a behavior entropy value characterizing the randomness of the behavior of the client based on the behavior feature value comprises: normalizing the behavior characteristic values; substituting the behavior characteristic value after normalization processing into a preset information entropy calculation formula to obtain the behavior entropy.
- 6. The method of claim 5, wherein the method further comprises: acquiring historical flow data; Training a preset classification model through the historical flow data to obtain dynamic weights of each behavior characteristic value; And updating the preset information entropy calculation formula according to the dynamic weight.
- 7. The method according to claim 1, wherein the method further comprises: And dynamically adjusting the request processing priority of the client according to the behavior entropy value, wherein the higher the behavior entropy value is, the lower the request processing priority is.
- 8. A dynamic regulation device, comprising: A first calculation module, configured to calculate, for a request sequence from the same client, at least one behavior feature value of the request sequence, where the request sequence includes a plurality of request behaviors sent by the client; The second calculation module is used for calculating a behavior entropy value representing the randomness of the behavior of the client based on the behavior characteristic value; and the adjusting module is used for dynamically adjusting the current limiting threshold of the client according to the behavior entropy value, wherein the higher the behavior entropy value is, the lower the current limiting threshold is.
- 9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the dynamic regulation method according to any one of claims 1 to 7 when the computer program is executed.
- 10. A computer-readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of the dynamic regulation method according to any one of claims 1 to 7.
Description
Dynamic regulation and control method, device, equipment and medium Technical Field The present invention relates to the field of operation and maintenance management technologies, and in particular, to a dynamic regulation method, a dynamic regulation device, a dynamic regulation equipment, and a dynamic regulation medium. Background With the deep digital transformation of enterprises, the business center becomes a core for supporting the flexible and innovative front-end business. In online business scenes of large enterprises, such as application trial calculation, quick underwriting and customer identity verification of financial scenes, or vital sign monitoring and online registration in medical scenes, the middle platform API bears massive requests every day. These flows are characterized by burstiness, concentrators, and unpredictability during active or peak periods, which pose a serious challenge to system stability. To prevent system overload, industry traditionally relies mainly on policies such as static current limiting, thread pool isolation, fuse degradation, etc. The inventor realizes that the existing schemes have obvious defects that current limits are carried out based on macroscopic indexes such as QPS (request per second), CPU utilization rate and the like, and high-quality effective user requests and low-quality/malicious abnormal requests cannot be distinguished. Meanwhile, the conventional current limiting threshold is generally statically configured, and cannot be adaptively adjusted according to the behavior pattern difference of the request source. Disclosure of Invention The invention provides a dynamic regulation and control method, a device, computer equipment and a medium, which are used for solving the technical problems that the prior art cannot accurately identify the behavior intention and adaptively adjust the current limiting threshold. In a first aspect, a dynamic regulation method is provided, applied to a server, and includes: Calculating at least one behavior characteristic value of a request sequence from the same client, wherein the request sequence comprises a plurality of request behaviors sent by the client; calculating a behavior entropy value representing the randomness of the behavior of the client based on the behavior characteristic value; and dynamically adjusting the current limiting threshold of the client according to the behavior entropy value, wherein the higher the behavior entropy value is, the lower the current limiting threshold is. In a second aspect, a dynamic regulation device is provided, including: A first calculation module, configured to calculate, for a request sequence from the same client, at least one behavior feature value of the request sequence, where the request sequence includes a plurality of request behaviors sent by the client; The second calculation module is used for calculating a behavior entropy value representing the randomness of the behavior of the client based on the behavior characteristic value; and the adjusting module is used for dynamically adjusting the current limiting threshold of the client according to the behavior entropy value, wherein the higher the behavior entropy value is, the lower the current limiting threshold is. In a third aspect, a computer device is provided, comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the dynamic regulation method described above when executing the computer program. In a fourth aspect, a computer readable storage medium is provided, the computer readable storage medium storing a computer program, which when executed by a processor, implements the steps of the dynamic regulation method described above. In the scheme realized by the dynamic regulation method, the device, the computer equipment and the storage medium, at least one behavior characteristic value of a request sequence is calculated for the request sequence from the same client, wherein the request sequence comprises a plurality of request behaviors sent by the client, a behavior entropy value representing the randomness of the behaviors of the client is calculated based on the behavior characteristic value, a current limiting threshold of the client is dynamically regulated according to the behavior entropy value, wherein the higher the behavior entropy value is, the lower the current limiting threshold is, the behavior characteristic value of the client can be calculated according to the request sequence of the client, the behavior entropy value is calculated through the behavior characteristic value, and finally the current limiting threshold is calculated according to the behavior entropy value, so that the request behaviors of the client can be associated with the current limiting threshold, the current limiting threshold can be adaptively regulated according to the request behaviors of the client, dynamic regul