Self-adaptive dynamic flow limiting method and device

The invention discloses a self-adaptive dynamic current limiting method and device, and the method comprises the steps: receiving a request, respectively recording the information of an application and an interface, and calculating the load and the utilization rate of a CPU (Central Processing Unit)...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: YANG ZHENYU, KANG RUOFAN, ZHAO LINGYUAN, LU WANG, CHEN FEI
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention discloses a self-adaptive dynamic current limiting method and device, and the method comprises the steps: receiving a request, respectively recording the information of an application and an interface, and calculating the load and the utilization rate of a CPU (Central Processing Unit) by adopting a moving average method; when the load of the CPU is larger than or equal to a load threshold value or the utilization rate of the CPU is larger than or equal to a utilization rate threshold value, QPS is calculated according to the request starting time in the interface information, and the optimal concurrency of the interface is calculated; in response to the condition that the number of currently processed requests of the interface is greater than the optimal concurrency of the interface, opening current limiting of the interface; and after a second duration after the interface current limiting is started or after the load of the CPU is greater than or equal to a load threshold value and the duratio