Unlock instant, AI-driven research and patent intelligence for your innovation.

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

Active Publication Date: 2022-03-25
XINHUASAN INFORMATION TECH CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The present invention provides a cluster startup method and device to solve the problem that the PXC cluster in the existing PXC cluster startup scheme is prone to restart failure due to abnormal restart

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for starting a cluster
  • Method and device for starting a cluster
  • Method and device for starting a cluster

Examples

Experimental program
Comparison scheme
Effect test

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集群中可能会存在集群节点由于人工干预等原因先于其他集群节点启动的情况,在该情况下,之后...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The present invention provides a method and device for starting a cluster. The method includes: when the target cluster node is not started for the first time and it is determined that there are no other cluster nodes that have been started in the PXC cluster, determine whether its own security bootstrap flag is the first value; if it is not the first value, obtain the security bootstrap flags of other cluster nodes in the PXC cluster; The first global transaction sequence number and the second global transaction sequence numbers of other cluster nodes in the PXC cluster determine their own startup mode, and start according to the determined startup mode. Applying the embodiment of the present invention can improve the success rate and efficiency of restarting the PXC cluster.

Description

technical field [0001] The present invention relates to the technical field of network communication, in particular to a method and device for starting a cluster. Background technique [0002] PXC (Percona XtraDB Cluster, a database cluster) cluster is a highly available database cluster developed based on MYSQL (a relational database management system), which can implement rolling upgrade and repair when the PXC cluster is running, that is, the database service is not interrupted during the upgrade. [0003] There are two roles involved in the startup of PXC cluster nodes (referred to as cluster nodes in this article), one is a cluster node started by Bootstrap, called a contributor (Donor) node, and the other is a participant (Joiner) ) node, where the contributor node is used to provide data to the participant node, and the participant node needs to obtain data from the contributor node to realize data synchronization. [0004] For a cluster node that is not started for ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): H04L41/0654H04L67/1042H04L1/16
Inventor 于青崧
Owner XINHUASAN INFORMATION TECH CO LTD