首页> 外国专利> 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.
机译:本申请涉及计算机技术领域,并且公开了是主节点选择方法和装置,电子设备和存储介质。该方法包括:在zookeeper群集中创建多个临时节点,并从多个临时节点确定主节点和从节点;控制主节点以向从节点发送keepalive消息;当从属节点未接收到从主节点发送的keepalive消息时,将从节点拍摄作为当前主节点。根据主节点选择方法和装置,电子设备和在本申请的实施例中提供的存储介质,控制主节点以向从节点发送Leepalive消息,并且当主节点停止服务时,从节点可以立即感测要快速升级为当前主节点的信息,以便改进了系统的服务连续性和可用性。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号