Cluster expansion method and device

A cluster and unified technology, applied in the computer field, can solve problems such as the ratio cannot reach the preset ratio, the number of master nodes is too large, and the slave nodes cannot be upgraded, so as to achieve the effect of ensuring availability

CN107786365AActive Publication Date: 2018-03-09BEIJING KINGSOFT CLOUD NETWORK TECH CO LTD +1
6 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Publication Date
2018-03-09

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The embodiment of the invention discloses a cluster expansion method and device. The method comprises the steps of obtaining the target node group number of nodes in a cluster after transverse expansion is carried out; determining the maximum group number of the nodes contained in the same physical machine after the transverse expansion is carried out, according to the target node group number anda preset proportion; determining the physical machine of which group number of the currently contained nodes is smaller than the maximum group number as a target physical machine; determining the first node group number of currently to-be-allocated nodes based on the first group number of the nodes contained in a first physical machine and the maximum group number; allocating the nodes containedin the node groups of the first node group number within the target physical machine until the transverse expansion of the cluster is finished, otherwise, returning to perform the step of determiningthe physical machine of which group number of the currently contained nodes is smaller than the maximum group number as the target physical machine. Through application of the scheme, it is ensured that after the transverse expansion of the cluster is carried out, when all nodes contained in any physical machine crash due to a fault occurring in the physical machine of the cluster, the whole cluster still can work normally.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention relates to the field of computer technology, in particular to a cluster expansion method and device. Background technique

[0002] Cluster expansion methods include vertical expansion and horizontal expansion. Vertical expansion refers to increasing the capacity of some existing master nodes in the cluster; horizontal expansion refers to adding new master nodes to increase the capacity of the entire cluster. For redis (an open source Key-Value database) clusters and other non-central node clusters, in order to ensure high availability of data, a master-slave mode is set, that is, each master node is a slave node for the application, so when expanding horizontally, adding a new master node at the same time , it is also necessary to establish a corresponding slave node for the newly added master node. In the prior art, when a cloud computing management platform such as openstack (an open source cloud computing management platform project) ...

Examples

Embodiment Construction

[0061] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0062] Below, first briefly introduce the technical terms involved in this application document.

[0063] Cluster: A cluster is a group of independent computers interconnected by a high-speed network that form a group and are managed as a single system. When a client interacts with the cluster, the cluster is like an independent server, providing unified services externally.

[0064] It should be emphasized that the cluster involved in this application is a cluste...