Server Cluster Standby Pool Switching for Data Loss Prevention
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
In server clusters with high security and stability requirements, standby redundancy fails when both the master and standby machines malfunction, leading to system instability and data loss upon restart.
Innovation Solution
A method and apparatus for detecting abnormal servers, starting additional servers to maintain a predetermined number in standby mode, and selecting a new master server from standby servers to continue service, ensuring data backup and recovery.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Device complexity
If standby redundancy mode is used with only one standby server, then system complexity is reduced, but system reliability deteriorates when both master and standby fail
Solution Approach 1:
The system performs preliminary actions by maintaining a pool of standby servers that are pre-configured and ready to take over. When the master server fails, the system automatically selects a standby server from the pool before the failure is fully processed, ensuring continuous operation. This preliminary preparation of multiple standby servers resolves the contradiction by ensuring reliability without requiring complex manual intervention.
Solution Approach 2:
The system changes the parameter of standby server quantity from a fixed single standby to a dynamic pool of standby servers. By adjusting this parameter based on system state and failure detection, the system achieves higher reliability while maintaining manageable complexity through automated selection algorithms.
2Reliability
If servers are restarted to solve abnormal quits, then system reliability improves, but data loss occurs and productivity deteriorates
Solution Approach 1:
The system uses copying by maintaining data copies on multiple standby servers simultaneously. Instead of restarting the master server and risking data loss, the standby servers already hold copies of the data. When the master fails, one of the standby servers with intact data copies takes over, ensuring both reliability and productivity without data loss.
Solution Approach 2:
The system performs preliminary data synchronization to standby servers before the master server fails. This preliminary action ensures that when failure occurs, the standby server can immediately take over with complete data, avoiding the need for post-failure restarts and data recovery operations that would disrupt productivity.
3Reliability
If multiple standby servers are maintained, then system reliability improves, but device complexity increases
Solution Approach 1:
The system implements self-service through automated detection and selection mechanisms. When the master server fails, the system automatically detects the failure, selects an appropriate standby server from the pool based on predefined criteria, and initiates the switchover process without manual intervention. This automation manages the complexity of multiple standby servers through intelligent self-management.
Solution Approach 2:
The system uses feedback mechanisms to continuously monitor server status, detect failures, and adjust the standby server pool accordingly. By implementing feedback loops that track server health and performance, the system can dynamically manage multiple standby servers, selecting the most suitable candidate based on real-time status information, thus maintaining reliability while controlling complexity through informed automation.
Data Source
AI summary
The present application discloses a method and apparatus for switching between servers in a server cluster. The server cluster includes at least one server for implementing a given service. A specific implementation of the method includes: detecting a number of servers in a standby state in the server cluster; starting at least one server in the server cluster so that the number of servers in the standby state reaches a predetermined number, in response to detecting the number of servers in the standby state being less than the predetermined number; monitoring a master server for providing a service in the server cluster; and selecting a server from the servers in the standby state as a master server to continue to provide the service, in response to detecting the master server being abnormal. This implementation solves the data loss problem caused by an abnormal termination or restart of the master server.


