Backup Server Cluster Master Selection for Communication Reliability
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
In control systems with multiple servers or controllers, the failure of the master server leads to system collapse and data loss, as existing redundancy methods do not ensure stable communication and data integrity.
Innovation Solution
A method and device that form a backup server cluster, select a backup server as a new master based on communication information, and establish communication connections with controlled equipment, including heartbeat monitoring and data backup to ensure system stability and data integrity.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If standby redundancy mode is used with master server, then system security and stability are improved, but the system becomes vulnerable to collapse when master server fails and causes data loss
Solution Approach 1:
The system segments the server cluster into multiple independent backup servers, each capable of becoming a master server. This segmentation eliminates the single point of failure in traditional master-slave redundancy, as any backup server can take over master functions, preventing system collapse and data loss when the original master fails.
Solution Approach 2:
The system performs preliminary actions by pre-establishing multiple backup servers with synchronized data before failure occurs. These backup servers are ready in advance to assume master server roles, ensuring continuous operation and preventing data loss without requiring system restart after failure.
2Stability of the object's composition
If traditional standby redundancy is implemented, then system stability is improved, but communication reliability deteriorates when master server becomes unavailable
Solution Approach 1:
Each backup server is designed with multi-functionality, capable of performing both backup functions and master server functions. When a failure occurs, any backup server can universally assume the master server role, maintaining communication reliability without disrupting system stability, as the architecture supports role switching among multiple servers.
3Duration of action of stationary object
If master server restart is performed after abnormal shutdown, then system operation is restored, but data loss occurs and system cannot operate normally
Solution Approach 1:
The system creates and maintains real-time copies of master server data across multiple backup servers. When the master server restarts after abnormal shutdown, the backup servers already possess complete data copies, eliminating data loss and allowing immediate system operation without waiting for data re-synchronization.
4Ease of operation
If all controlled equipment must obtain communication parameters from master server, then communication control is centralized, but system becomes vulnerable to single point of failure
Solution Approach 1:
The system implements dynamic role assignment where any backup server can become the master server based on operational needs and failure conditions. This dynamic flexibility maintains ease of communication control while eliminating the single point of failure vulnerability, as the system can adaptively reassign master server functions to any available backup server.
Data Source
AI summary
The present application discloses a method and device for establishing communication connection. An embodiment of the method includes: selecting a predetermined number of servers from a server cluster to form a backup server cluster, the server cluster including at least one server adapted to implement a given service; obtaining communication information of each backup server in the backup server cluster, and selecting a backup server from the backup server cluster as a master server based on the communication information of the backup server; and sending the communication information of the master server to controlled equipment controlled by the server cluster to establish communication connection between the master server and the controlled equipment. The embodiment solves a problem of reliability raised when main server abnormally quits or restarts during the operation of a system.


