Cluster election method and system
A clustered, unavailable technology, applied in the field of big data computing, which can solve problems such as inconsistent algorithms, IP conflicts, and failure to consider high-availability cluster processing solutions.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Example Embodiment
[0041] Example 1
[0042] Such as figure 1 Shown is a flowchart of a specific embodiment of a cluster election method of the present invention. See figure 1 , The specific steps of a cluster election method in this specific embodiment include:
[0043] S1. When the slave server cannot obtain the heartbeat of the master server, the status of all slave servers is changed to candidate servers, and a voting request is sent to the remaining servers to be selected as the master server.
[0044] Usually when the system is started or the master server is offline, the slave server cannot obtain the heartbeat of the master server. At this time, the slave server can be given time to wait for the heartbeat of the master server by presetting a certain time threshold or the number of times the master server cannot obtain the heartbeat. When the heartbeat of the master server cannot be obtained after a certain time threshold or more than a certain number of times (for example, the heartbeat of the...
Example Embodiment
[0051] Example 2
[0052] The present invention also provides a cluster election system to realize the high-availability scheme of the non-high-availability system.
[0053] Such as figure 2 As shown, this specific embodiment is a structural diagram of a cluster election system. See figure 2 In this embodiment, a cluster election system specifically includes a server. The server can determine the master server and the slave server through selection or election. When the master server stops the server, the system of the present invention can be used to flush and elect the master server. Provide services. Specifically, the server includes:
[0054] The status change module 110 is used to change the status to a candidate server when the server cannot obtain the heartbeat of the master server; the original status of the server is the status of the slave server, and the slave server cannot get the heartbeat of the master server when the system is started or the master server is offl...
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.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap