Load balancing method and device applicable to distributed database and server
The invention relates to a load balancing method and device applicable to a distributed database and a server. The method comprises the steps of: completing a distributed management node initializingstage of carrying out election of a distributed management node and metadata management and a load ba...
Gespeichert in:
Hauptverfasser: | , , , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention relates to a load balancing method and device applicable to a distributed database and a server. The method comprises the steps of: completing a distributed management node initializingstage of carrying out election of a distributed management node and metadata management and a load balancing stage of selecting proper distributed database nodes for a client, sending metadata to thedistributed management node when each distributed database node is started up, enabling the distributed management node to carry out sorting according to a weight value of each distributed database node, arranging the metadata of all the distributed database nodes into a metadata array, and storing the metadata array in the distributed management node and each distributed database node; and simultaneously, storing current load state information of all the distributed database nodes into each corresponding distributed database node. Therefore, when a current distributed management node is off-line, a proper next distrib |
---|