Selection method, device and equipment for master node

The invention discloses a selection method, device and equipment for a master node. The method comprises the steps of receiving selection requests sent by each candidate master node of a distributed cluster; performing operation of obtaining operation data of the candidate master nodes and comparing...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
1. Verfasser: BI JINGQIANG
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 selection method, device and equipment for a master node. The method comprises the steps of receiving selection requests sent by each candidate master node of a distributed cluster; performing operation of obtaining operation data of the candidate master nodes and comparing the operation data of the candidate master nodes with the operation data of a to-be-determined master node currently selected by a first node after the selection requests are received; preferentially selecting a node from the candidate master nodes and the to-be-determined master node as an updatedto-be-determined master node, wherein the first node determines the selected to-be-determined master node as a first candidate master node by default; and determining the master node of the distributed cluster according to the finally updated to-be-determined master node. According to the method, the comparison times is effectively prevented from being increased, the problem that a selection period is unfixed is solved,