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
Embodiment 1
[0042] Such as figure 1 Shown is a flow chart of a specific embodiment of a cluster election method in 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 a candidate server, and a voting request is sent to the remaining servers to be selected as the master server.
[0044] Usually, when the system starts or the master server goes offline, the slave server cannot obtain the heartbeat of the master server. At this time, you can give the slave server time to wait for the heartbeat of the master server by presetting a certain time threshold or the number of times the heartbeat of the master server cannot be obtained. When the slave server still cannot obtain the heartbeat of the master server after exceeding a certain time threshold or exceeding a certain number of times (such as...
Embodiment 2
[0052] The 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, it is an architecture diagram of a cluster election system in this specific embodiment. see figure 2 In this specific 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 state change module 110 is used to change the state to a candidate server when the server cannot obtain the heartbeat of the master server; the original state of the server is the state of the slave server, and when the system starts or the master server goes offline, the slave server cannot obtain the heartbeat of the master server ...
PUM
![No PUM](https://static-eureka.patsnap.com/ssr/23.2.0/_nuxt/noPUMSmall.5c5f49c7.png)
Abstract
Description
Claims
Application Information
![application no application](https://static-eureka.patsnap.com/ssr/23.2.0/_nuxt/application.06fe782c.png)
- 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