CN-121984840-A - Master-slave control method and device for high-availability system of communication equipment and electronic equipment
Abstract
The invention provides a master and slave control method, a device and an electronic device of a high-availability system of a communication device, and relates to the technical field of communication device control. The method comprises the steps of identifying a main and standby architecture of a high-availability system of the communication equipment according to a system detection message, determining an identification result, determining a main and standby optimal matching strategy of the main and standby architecture of the high-availability system of the communication equipment according to the identification result, and controlling the main and standby architecture of the high-availability system of the communication equipment according to the main and standby optimal matching strategy. According to the technical scheme, under the condition that all application programs of the high-availability system of the communication equipment are monitored, the main-standby optimal matching strategy of the main-standby architecture is determined, the main-standby architecture of the high-availability system of the communication equipment is controlled according to the main-standby optimal matching strategy, and the service quality and the operation and maintenance efficiency are improved.
Inventors
- Xue Quankuan
- SU XIQING
- LI YAN
- FANG SHUAI
Assignees
- 北京华环电子股份有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20251218
Claims (10)
- 1. A master-slave control method of a high availability system of a communication device, comprising: under the condition that all application programs of a high-availability system of the communication equipment are completely registered, acquiring a system detection message of the high-availability system of the communication equipment; The main and standby architecture of the high availability system of the communication equipment is identified according to the system detection message, and an identification result is determined; determining a main-standby optimal matching strategy of the main-standby architecture of the communication equipment high-availability system according to the identification result; and controlling the main-standby architecture of the communication equipment high-availability system according to the main-standby optimal matching strategy.
- 2. The master-slave control method of the communication device high availability system according to claim 1, wherein determining that all application programs of the communication device high availability system are all registered is completed comprises: Acquiring an application program registration request in a preset time under the condition that the high availability program of the high availability system of the communication equipment is started, wherein the application program registration request carries application program configuration tables corresponding to all application programs; registering each application program according to the application program configuration tables corresponding to all the application programs carried by the application program registration request, and determining a registration result; Determining whether all the application programs are registered according to the registration result; and under the condition that all the application programs are determined to be registered, continuing to execute the step of acquiring the system detection message of the high-availability system of the communication equipment.
- 3. The master-slave control method of the communication device high availability system according to claim 2, further comprising: And under the condition that all application programs are determined to be not completed, continuing to execute the application program configuration table corresponding to all application programs carried according to the application program registration request to register each application program, and determining a registration result.
- 4. The master-slave control method of the communication device high availability system according to claim 2, further comprising: And under the condition that the application program registration request is not acquired within the preset time, forcing the communication equipment high availability system to restart, and continuously executing the step of acquiring the application program registration request within the preset time under the condition that the high availability program of the communication equipment high availability system is determined to be started.
- 5. The master-slave control method of the communication device high availability system according to claim 2, further comprising, after determining that all the application programs are registered, the steps of: determining whether registered heartbeat messages corresponding to the application programs are acquired within a preset time threshold; and under the condition that the registered heartbeat messages corresponding to the application programs are acquired within the preset time threshold, updating the state of the application programs according to the registered heartbeat messages.
- 6. The master-slave control method of the high availability system of the communication device according to claim 5, further comprising: and determining that the application program is offline under the condition that the registered heartbeat messages corresponding to the application programs are not acquired within the preset time threshold.
- 7. The master-slave control method of the high availability system of any one of claims 1-6, wherein the determining a master-slave optimal matching policy of the master-slave architecture of the high availability system of the communication device according to the identification result includes: determining the architecture type of the main and standby architectures of the high-availability system of the communication equipment according to the identification result; and determining the main and standby optimal matching strategy according to the architecture type and the architecture control logic corresponding to the architecture type.
- 8. A master/slave control device for a high availability system of a communication apparatus, comprising: The message acquisition module is used for acquiring a system detection message of the high-availability system of the communication equipment under the condition that all application programs of the high-availability system of the communication equipment are determined to be completely registered; the result determining module is used for identifying the main and standby architecture of the high-availability system of the communication equipment according to the system detection message and determining an identification result; The policy determining module is used for determining a main-standby optimal matching policy of the main-standby architecture of the communication equipment high-availability system according to the identification result; and the main and standby control module is used for controlling the main and standby architecture of the communication equipment high-availability system according to the main and standby optimal matching strategy.
- 9. An electronic device comprising a memory, a processor and a computer program stored on the memory and running on the processor, characterized in that the processor implements a master-slave control method of a high availability system of a communication device according to any one of claims 1 to 7 when executing the computer program.
- 10. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the computer program, when executed by a processor, implements a master-slave control method of a communication device high availability system according to any of claims 1 to 7.
Description
Master-slave control method and device for high-availability system of communication equipment and electronic equipment Technical Field The present invention relates to the field of communications device control technologies, and in particular, to a method and an apparatus for active/standby control of a high availability system of a communications device, and an electronic device. Background In the operation process of the communication equipment high-availability system, when the traditional communication equipment high-availability system faces equipment faults, program anomalies or data loading problems, service interruption conditions easily occur, and the communication quality and user experience are seriously affected, so that the continuous and stable operation of the communication equipment high-availability system is important. At present, in the prior art, the existing part of active-standby control schemes of the high-availability system of the communication equipment have the problems of unclear role decision logic, imperfect active-standby switching mechanism, insufficient Application (APP) supervision and the like, cannot effectively cope with complex scenes under a multi-master architecture of the high-availability system of the communication equipment, and have defects in the aspects of switching suitability of a single master and multi-master architecture of the high-availability system of the communication equipment, recovery capability of the high-availability system of the communication equipment under abnormal conditions and the like, so that the requirements of the high-availability (High Availability, HA) of the high-availability system of the communication equipment are difficult to meet. Therefore, there is a need for a master-slave control method of a high-availability system of a communication device, which can implement adaptive adaptation of a single/multiple master control architecture of the high-availability system of the communication device under the condition of supervising all application programs of the high-availability system of the communication device, so as to improve service quality and operation and maintenance efficiency of the high-availability system of the communication device. Disclosure of Invention The invention provides a master-slave control method, a master-slave control device and electronic equipment of a high-availability system of communication equipment, which are used for solving the problems that in the prior art, complex scenes under a multi-master architecture of the high-availability system of the communication equipment cannot be effectively processed, defects exist in the aspects of single master control and multi-master architecture switching suitability of the high-availability system of the communication equipment, recovery capacity of the high-availability system of the communication equipment under abnormal conditions and the like, and the requirement of the high-availability system of the communication equipment is difficult to meet. The invention provides a master-slave control method of a high-availability system of communication equipment, which comprises the following steps. Under the condition that all application programs of the high-availability system of the communication equipment are completely registered, acquiring a system detection message of the high-availability system of the communication equipment; The method comprises the steps of identifying a main and standby architecture of a high-availability system of the communication equipment according to a system detection message, and determining an identification result; determining a main-standby optimal matching strategy of a main-standby architecture of a high-availability system of the communication equipment according to the identification result; And controlling the main-standby architecture of the high-availability system of the communication equipment according to the main-standby optimal matching strategy. According to the master-slave control method of the high availability system of the communication equipment provided by the invention, all application programs of the high availability system of the communication equipment are determined to be completely registered, and the master-slave control method comprises the following steps: Acquiring an application program registration request in a preset time under the condition that the high availability program of the high availability system of the communication equipment is started, wherein the application program registration request carries application program configuration tables corresponding to all application programs; registering each application program according to application program configuration tables corresponding to all the application programs carried by the application program registration request, and determining a registration result; determining whether all application programs are registered acco