Method and device for starting a cluster
A start-up method and cluster technology, which is applied in the field of network communication, can solve the problems of PXC clusters that are prone to restart failures, and achieve the effect of improving success rate and efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0066] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present invention, and to make the above-mentioned purposes, features and advantages of the embodiments of the present invention more obvious and understandable, the following describes the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings For further detailed explanation.
[0067] See figure 1 ,为本发明实施例提供的一种集群启动方法的流程示意图,其中,该集群启动方式可以应用于PXC集群中的任一集群节点(本文中称为目标集群节点),如 figure 1 所示,该集群启动方法可以包括以下步骤:
[0068] 步骤101、当目标集群节点非首次启动,且确定PXC集群中不存在已经完成启动的其他集群节点时,确定自身的安全自举标记是否为第一值。若是,则转至步骤102;否则,转至步骤103。
[0069] 本发明实施例中,当目标集群节点启动时,目标集群节点可以通过判断是否存在状态文件grastate.dat的方式确定目标集群节点是否为首次启动。
[0070] 其中,当不存在状态文件grastate.dat时,确定目标集群节点为首次启动;当存在状态文件grastate.dat时,确定目标集群节点为非首次启动。
[0071] 需要说明的是,在本发明实施例中,当目标集群节点首次启动时,其启动处理流程可以参见现有PXC集群启动方案中的相关描述,本发明实施例在此不做赘述。
[0072] 本发明实施例中,考虑到PXC集群中可能会存在集群节点由于人工干预等原因先于其他集群节点启动的情况,在该情况下,之后...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


