Master-Backup Server State Management for High Availability

Resolve Bottlenecks,
Find Innovative Solutions
Generate 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

VSEngineering Contradiction Analysis

1Device complexity

If a single server is deployed, then device complexity is reduced, but server business processing performance becomes insufficient

Engineering Contradiction:
Improveserver deployment complexityVSAvoidbusiness processing performance
Core Design Contradiction:
Device complexityVSProductivity

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

Inventive Principle:
Principle #1Segmentation

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

Inventive Principle:
Principle #5Merging (Combining)

2Reliability

If master-backup switching is implemented, then high availability is improved, but device complexity increases

Engineering Contradiction:
Improvehigh availabilityVSAvoidsystem configuration complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

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

Inventive Principle:
Principle #23Feedback

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

Inventive Principle:
Principle #25Self-service

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

Engineering Contradiction:
Improvestate management operationVSAvoidstate consistency
Core Design Contradiction:
Ease of operationVSLoss of information

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

Inventive Principle:
Principle #23Feedback

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

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS11892922B2State management methods, methods for switching between master application server and backup application server, and electronic devices
Publication Date: 2024.02.06 HANGZHOU HIKVISION DIGITAL TECHNOLOGY CO LTD
  • US11892922B2 patent drawing
  • US11892922B2 patent drawing
  • US11892922B2 patent drawing

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.