Self-adaptive host node switching method and device

A master node, self-adaptive technology, applied in the computer field, can solve the problems of increasing system complexity and system overhead, reducing system performance, increasing labor costs, etc., achieving the effect of easy implementation, low system complexity, and reduced labor costs

Active Publication Date: 2018-06-29
BEIJING QIHOO TECH CO LTD
View PDF4 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, using the above-mentioned master node switching method requires the participation of manual or external components, thereby increasing the labor cost required for master node switching; moreover, the time for the current master node to stop processing data write requests during the master node switching process If it is too long, it will easily lead to the reduction of system performance; and, artificial or external components need to constantly exchange information with the master and slave nodes, which increases the complexity and system overhead of the system

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
  • Self-adaptive host node switching method and device
  • Self-adaptive host node switching method and device
  • Self-adaptive host node switching method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0027] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0028] figure 1 A schematic flowchart of an adaptive master node switching method provided according to an embodiment of the present invention is shown. Such as figure 1 As shown, the method includes:

[0029] Step S110, acquiring a master node switching request from the first node to the second node.

[0030] Wherein, the second node may be a slave node of the first node, or a node that has not currently established a master-sl...

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 invention discloses a self-adaptive host node switching method and device. The method comprises acquiring a host node switching request for switching from a first node to a second node; enabling the first node synchronizing a first log on a first node side to the second node according to the host node switching request so that the second node updates the second log on a second node side; whenthe first node detects that the log offset of the first log is consistent to that of the second log, adding a switching mark at the tail of the first log and synchronizing the switching mark to the second node; after receiving the switching mark, switching the second node into a host node. The self-adaptive host node switching method can achieve self-adaptive switching of the host node without manual intervention, thereby reducing the labor cost; meanwhile, the self-adaptive host node switching method is high in host node switching efficiency and low in system complexity.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to an adaptive master node switching method and device. Background technique [0002] The database system with master-slave structure has become a commonly used database structure because of its high data reliability, low service node load, separation of reading and writing, and high data reading and writing efficiency. [0003] In a database system with a master-slave structure, it is usually necessary to switch the master node to achieve database expansion, shrinkage, and / or master balance. In the existing technology, in order to realize the switching of the master node, the current master node needs to stop processing the data writing request, and obtain the log synchronization information of the master-slave node manually or through external components, and when the log synchronization offset of the master-slave node is consistent, The switch of the master node is realized by...

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
IPC IPC(8): G06F17/30
CPCG06F16/275
Inventor 王康
Owner BEIJING QIHOO 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