Master-Backup Server State Management for High Availability
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
In application scenarios where a single server is deployed, insufficient server business processing performance often occurs, leading to the need for offloading application service and storage functions, resulting in management servers handling non-application services and data storage, while application servers focus on services and storage, but this setup lacks effective high availability mechanisms for uninterrupted service in case of failures.
Innovation Solution
A state management method that involves querying the connection state of a hot-backup connection between a master and backup application server, updating recorded states based on inconsistencies, and controlling switching between the two servers to ensure continuous service, including detecting failures, updating states, and reestablishing connections to maintain data integrity and availability.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Device complexity
If a single server is deployed, then device complexity is reduced, but server business processing performance becomes insufficient
Solution Approach 1:
The patent segments the server system into a management server and multiple application servers (master and backup). The management server handles non-application services and data storage, while application servers handle application services and data storage, thereby improving business processing performance without excessive complexity
Solution Approach 2:
The patent combines the management server with application servers in a coordinated system where the management server manages configuration and monitors states, while application servers provide services. This merging allows centralized management with distributed service delivery, improving both performance and manageability
2Reliability
If master-backup switching is implemented, then high availability is improved, but device complexity increases
Solution Approach 1:
The management server continuously monitors the connection states of hot-backup connections between master and backup application servers. When state changes are detected (e.g., master fails, backup becomes active), the management server automatically triggers switching operations, eliminating the need for complex manual configuration while ensuring high availability
Solution Approach 2:
The system implements automatic state management where the management server autonomously detects connection states, determines inconsistencies, and executes switching operations without human intervention. This self-service mechanism reduces operational complexity while maintaining reliability
3Ease of operation
If state management is automated, then ease of operation is improved, but loss of information may increase due to state synchronization delays
Solution Approach 1:
The management server implements continuous feedback by periodically querying connection states of hot-backup connections. When state inconsistencies are detected (e.g., backup state differs from recorded state), the system immediately updates the recorded state, ensuring information consistency while maintaining automated operation
Solution Approach 2:
The system performs preliminary state recording and monitoring before failures occur. The management server maintains recorded states of backup application servers and proactively detects inconsistencies, ensuring that state information is current and consistent before switching is needed, preventing information loss
Data Source
AI summary
The present disclosure provides a state management method, a method for switching between a master application server and a backup application server, and an electronic device. In present disclosure, the management server updates the recorded backup application server state in time by querying for the connection state of the hot-backup connection between the master application server and the backup application server, and when the master application server is in failure, instead of immediately controlling the master application server and the backup application server to perform switching between the master and backup application servers, the management server controls the master application server and the backup application server to perform master-backup switching between the application servers according to the recorded backup application server state.


