首页>
外国专利>
MASTER NODE SELECTION METHOD AND APPARATUS, ELECTRONIC DEVICE, AND STORAGE MEDIUM
MASTER NODE SELECTION METHOD AND APPARATUS, ELECTRONIC DEVICE, AND STORAGE MEDIUM
展开▼
机译:主节点选择方法和装置,电子设备和存储介质
展开▼
页面导航
摘要
著录项
相似文献
摘要
The present application relates to the technical field of computers, and disclosed are a master node selection method and apparatus, an electronic device, and a storage medium. The method comprises: creating multiple temporary nodes in a zookeeper cluster, and determining a master node and a slave node from the multiple temporary nodes; controlling the master node to send a keepalive message to the slave node; and when the keepalive message sent from the master node is not received by the slave node, taking the slave node as a current master node. According to the master node selection method and apparatus, the electronic device, and the storage medium provided in embodiments of the present application, a master node is controlled to send a leepalive message to a slave node, and when the master node stops the service, the slave node can immediately sense the information to be quickly upgraded as a current master node, so that the service continuity and availability of a system are improved.
展开▼