A method and device for switching between active and standby servers
A technology of server switching and main server, which is applied in the field of main-standby server switching method and device, can solve the problems of unable to switch between main and standby machines, unable to stop network bridge service, etc., and achieves the effect of simple implementation
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0032] refer to figure 1 , which shows a flow chart of the steps of a method for switching between active and standby servers provided by an embodiment of the present invention. The method for switching between active and standby servers can be applied to the main server, and may specifically include the following steps:
[0033] Step 101: Start the first Keepalived service.
[0034] In this embodiment of the present invention, the first Keepalived service refers to the Keepalived service on the main server side.
[0035] The self-inspection function can be added in advance in the Keepalived service configuration item of the main server. This self-inspection function can be used to check the status file of the local bridge later, so as to facilitate the master-standby switchover when the bridge status is abnormal.
[0036] After starting the first Keepalived service on the main server side, the first Keepalived service can be used to host the main server, so as to monitor the...
Embodiment 2
[0085] refer to figure 2 , which shows a flow chart of the steps of a method for switching between active and standby servers provided by an embodiment of the present invention. The method for switching between active and standby servers can be applied to a standby server, and may specifically include the following steps:
[0086] Step 201: Start the second Keepalived service.
[0087] The embodiments of the present invention can be applied to standby servers.
[0088] The second Keepalived service refers to the Keepalived service on the standby service side.
[0089] After starting the second Keepalived service and hosting the standby server, step 202 is executed.
[0090] Step 202: Start the second active / standby communication thread.
[0091] The second active-standby communication thread refers to the thread used for communication between the standby server and the main server. Through the second active-standby communication thread, the standby server and the main serv...
Embodiment 3
[0116] refer to image 3 , which shows a schematic structural diagram of an active / standby server switching device provided by an embodiment of the present invention. The active / standby server switching device can be applied to a primary server, and can specifically include:
[0117] The first Keepalived starting module 310 is used to start the first Keepalived service; the first network bridge state judgment module 320 is used to start the first network bridge service to judge the first network bridge state of the local network bridge; the first network bridge The thread starting module 330 is used to start the first network bridge inspection thread when the state of the first network bridge is in the working state; the first network bridge file generation module 340 is used to utilize the first network bridge inspection thread Check the second network bridge state of the local network bridge, generate the first network bridge state file; the first network bridge file inspect...
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