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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com