Cluster expansion method and apparatus thereof

A cluster and unified technology, applied in the computer field, can solve the problems of unreachable, the slave node can no longer be upgraded to the master node, the cluster is unavailable, etc., to achieve the effect of ensuring availability

Active Publication Date: 2018-01-30
BEIJING KINGSOFT CLOUD NETWORK TECH CO LTD +1
View PDF5 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, when the cluster expands horizontally, the number of master nodes contained in a certain physical machine is too large, so that the ratio of the number of master nodes in the cluster to the total number of master nodes in the cluster does not exceed For the above preset ratio, if a failure of the physical machine causes all the master nodes on it to go down, the ratio of the number of normally working master nodes in the current cluster to the total number of master nodes in the current cluster cannot reach the above preset ratio after the failure occurs Ratio, so that the slave node corresponding to the downtime master node can no longer be upgraded to the master node, which leads to the unavailability of the entire cluster

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
  • Cluster expansion method and apparatus thereof
  • Cluster expansion method and apparatus thereof
  • Cluster expansion method and apparatus thereof

Examples

Experimental program
Comparison scheme
Effect test

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...

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

An embodiment of the invention discloses a cluster expansion method and an apparatus thereof. The method comprises the following steps of acquiring a target number of main nodes after expansion; according to the target number and a preset proportion, determining a maximum number of the main nodes contained by a same physical machine after expansion; determining the current physical machine containing the number of the main nodes to be a target physical machine, wherein the number of main nodes is less than the maximum number; based on a first number of the main nodes contained by a first physical machine and the maximum number, determining a second number of the main nodes which need to be distributed currently; distributing the second number of main nodes in the target physical machine; determining whether to complete cluster expansion; and if the cluster expansion is not completed, returning to an execution step and determining the current physical machine to be the target physical machine, wherein the number of the main nodes contained by the current physical machine is less than the maximum number. By using the scheme in the invention, after transverse expansion of a cluster isperformed, the whole cluster can still work normally when any one physical machine in the cluster generates a fault so that all the main nodes contained by the physical machine go down.

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. In the prior art, when a cloud computing management platform such as openstack (an open source cloud computing management platform project) management platform is used to horizontally expand the cluster, it will determine which host node the new master node is assigned to based on the storage load on each physical machine. on the physical machine. [0003] For clusters without central nodes, such as redis (an open source Key-Value database) cluster, in order to ensure high availability of data, such clusters set up a master-slave mod...

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 Applications(China)
IPC IPC(8): H04L12/24
Inventor 申航
Owner BEIJING KINGSOFT CLOUD NETWORK TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products