Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Host node switching method, device, electronic device, and computer storage medium

A technology of master node and metadata node, applied in the Internet field, can solve the problem of incompatibility and low version client with judgment logic, etc., and achieve the effect of compatibility

Inactive Publication Date: 2018-12-28
BEIJING QIHOO TECH CO LTD
View PDF4 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The purpose of this application is to at least solve one of the above-mentioned technical defects, especially the technical defects that cannot be compatible with low-version clients that do not have judgment logic

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
  • Host node switching method, device, electronic device, and computer storage medium
  • Host node switching method, device, electronic device, and computer storage medium
  • Host node switching method, device, electronic device, and computer storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0050] The embodiment of the present application provides a master node switching method, such as figure 1 Shown, including:

[0051] Step S110: When the first faulty controller detects that the current master node has failed, it sends a competition request to the coordination service center. The competition request is used to request the coordination service center to determine the metadata node corresponding to the first faulty controller as the target master. node.

[0052] Specifically, the fault controller in the embodiment of the present application may be ZKFC (ZooKeeper FailOverController, distributed application coordination service fault controller), and the coordination service center may be ZooKeeper (distributed application coordination service). Taking ZKFC and the coordination service center as ZooKeeper as an example, the embodiments of this application are described:

[0053] With the continuous development and update of technology, on the basis of the 1.0 version o...

Embodiment 2

[0064] The embodiment of the present application provides another possible implementation manner. On the basis of the first embodiment, it also includes the method shown in the second embodiment, wherein:

[0065] Before step S110, it also includes step S100 (not marked in the figure): the first fault controller monitors whether the current master node is faulty, and step S100 specifically includes step S1001 (not marked in the figure) and step S1002 (not marked in the figure), among them,

[0066] Step S1001: Send a fault query request to the coordination service center at a preset time interval, where the fault query request is used to request detection of whether there is fault information that the current master node has failed in the coordination service center.

[0067] Step S1002: If the confirmation message returned by the coordination service center is received, it is determined that the current master node is faulty.

[0068] Among them, the fault information is the fault in...

Embodiment 3

[0074] The embodiment of the present application provides another possible implementation manner. On the basis of the second embodiment, it also includes the method shown in the third embodiment, wherein:

[0075] Step S120 specifically includes: unbinding the VIP and the failed master node, and establishing a binding relationship between the VIP and the metadata node corresponding to the first faulty controller, so as to use the metadata corresponding to the first faulty controller The node is switched to the target master node.

[0076] Before step S120, step S111 (not marked in the figure) is also included: isolating the failed master node from the target master node.

[0077] After step S120, it further includes step S121 (not marked in the figure): switching the metadata node corresponding to the first faulty controller from the inactive state to the active state, so as to switch the metadata node corresponding to the first faulty controller as the target Master node.

[0078] S...

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 application relates to the field of Internet technology, and discloses a host node switching method, a device, an electronic device, and a computer storage medium. The master node switching method comprises the following steps: when the first fault controller detects that the current master node fails, sending a contention request to the coordination service center, wherein the contention request is used for requesting the coordination service center to determine the metadata node corresponding to the first fault controller as the target master node; then, when receiving the acknowledgement information from the coordination service center, the metadata node corresponding to the first failure controller is switched to the target master node through the virtual Internet protocolVIP. The method of the embodiment of the present application enables the existing low-version client to normally access the switched master node even if the master-standby handover of the metadata node occurs, thereby achieving compatibility for the low-version client to access the master node.

Description

Technical field [0001] This application relates to the field of Internet technology. Specifically, this application relates to a master node switching method, device, electronic equipment, and computer storage medium. Background technique [0002] In the current large-scale distributed storage system, in order to achieve centralized authority authentication and quota control, a centralized metadata management method is mainly adopted, that is, the metadata of all data in the entire system is stored in a number of metadata nodes (Name Node )in. [0003] In such an architecture, the metadata node as the master node provides services such as data query and update to the corresponding client. At this time, the availability of the metadata node is directly related to the availability of the entire system, so in a distributed storage system The availability of metadata nodes is usually improved through redundancy. At present, the method to improve the availability of metadata nodes is ...

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): G06F3/06
CPCG06F3/0614G06F3/0631G06F3/067
Inventor 王锋
Owner BEIJING QIHOO TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products