Cloud native micro-service flow control method and server

The invention discloses a cloud native micro-service flow control method and a server. According to the invention, through a watch mechanism of a registration center, when it is monitored that the number of service instances registered by the registration center changes, a notification is sent to ea...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: LI QIN, CHEN HONG, LIU DEJIAN, LAN CHENGJIAN
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 cloud native micro-service flow control method and a server. According to the invention, through a watch mechanism of a registration center, when it is monitored that the number of service instances registered by the registration center changes, a notification is sent to each service instance; after receiving the notification, the service instance acquires the current TPS number and the service processing capability corresponding to a service flow threshold from a configuration center; according to the number of the current service instances, the service processing capacity and the TPS number, calculating the number of threads which should be distributed to each service instance, and updating the number of threads in a thread pool based on the number of threads which should be distributed to each service instance; according to the technical scheme, when it is monitored that the number of the service instances changes, the number of threads which should be distributed to each service