Master-slave cluster switching method and device

A main cluster and cluster technology, applied in the computer field, can solve problems such as multiple resources, high maintenance costs, and service unavailability

Active Publication Date: 2019-01-18
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF8 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Restarting the client means the service is unavailable, which is often intolerable for online businesses
[0005] (2) Time-consuming
When the client scale is thousands or even larger, it takes a very long time to restart the client
[0006] (3) High cost
The active-active solution means more resources are consumed and higher maintenance costs are required

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
  • Master-slave cluster switching method and device
  • Master-slave cluster switching method and device
  • Master-slave cluster switching method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] Exemplary embodiments of the present invention are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding, and they should be regarded as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.

[0038] figure 1 is a schematic diagram of main steps of a master-slave cluster switching method according to an embodiment of the present invention. Such as figure 1 As shown, the method for master-slave cluster switching in the embodiment of the present invention mainly includes the following steps:

[0039] Step S101: Create a data node, and write the configuration in...

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 embodiment of the invention provides a master-slave cluster switching method and device, and relates to the technical field of computers. According to the embodiment of the invention, the method comprises the steps: creating data nodes, and writing the configuration information of a master cluster into a node value of a corresponding data node; modifying the node value of the data node into the configuration information of a slave cluster to be switched during the switching of the master-slave clusters; monitoring whether the node value of the data node changes or not: obtaining the configuration information of the slave cluster to be switched when the node value is monitored to change, and modifying the link, pointing to the cluster, of a client according to the obtained configurationinformation, thereby achieving the switching of the master-slave clusters. According to the embodiment of the invention, the configuration information is written into the node value of the data node.When the client monitors that the node value of the data node changes, the configuration information of the slave cluster is obtained after the node value is monitored to change, and the link from the client to the cluster is modified, thereby achieving the online switching of the master-slave clusters.

Description

technical field [0001] The invention relates to the field of computers, in particular to a method and device for master-slave cluster switching. Background technique [0002] At present, more and more Internet companies have begun to use large-scale clusters to support their business. In order to ensure the high availability of clusters, many companies have adopted master-slave clusters for disaster recovery across computer rooms as a solution. At present, there are two main switching schemes for the master-slave cluster: scheme 1: modify the configuration and restart. The client prepares two sets of configurations, one set points to the master cluster, and the other set points to the slave cluster. When the master cluster fails, the client restarts the application and modifies the configuration to point to the slave cluster. Solution 2: active-active. Run two sets of clients at the same time, one client accesses the master cluster, and the other client accesses the slave ...

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/24H04L12/26H04L29/08
CPCH04L41/0663H04L41/0886H04L43/10H04L67/1044
Inventor 温帮彭兴勃王彦明
Owner BEIJING JINGDONG SHANGKE INFORMATION 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