CN110895469A - Method and device for upgrading dual-computer hot standby system, electronic equipment and storage medium - Google Patents

Method and device for upgrading dual-computer hot standby system, electronic equipment and storage medium Download PDF

Info

Publication number
CN110895469A
CN110895469A CN201911205742.7A CN201911205742A CN110895469A CN 110895469 A CN110895469 A CN 110895469A CN 201911205742 A CN201911205742 A CN 201911205742A CN 110895469 A CN110895469 A CN 110895469A
Authority
CN
China
Prior art keywords
standby
computer
host
machine
upgrading
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911205742.7A
Other languages
Chinese (zh)
Inventor
王瑞芹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sangfor Technologies Co Ltd
Original Assignee
Sangfor Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sangfor Technologies Co Ltd filed Critical Sangfor Technologies Co Ltd
Priority to CN201911205742.7A priority Critical patent/CN110895469A/en
Publication of CN110895469A publication Critical patent/CN110895469A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/656Updates while running

Abstract

The application discloses a method and a device for upgrading a dual-computer hot standby system, an electronic device and a computer readable storage medium, wherein the method comprises the following steps: setting the working mode of the dual-computer hot standby system as a main standby mode; the dual-computer hot-standby system comprises a host and a standby computer, and the host provides service in the primary and standby modes; sending an upgrading command to the standby machine and the host machine so as to set the host machine and the standby machine in an upgrading state; upgrading the standby machine, and sending a main-standby switching command to the host machine and the upgraded standby machine after upgrading is finished so that the upgraded standby machine serves as the current host machine; and upgrading the host, and adding the upgraded host into the dual-computer hot standby system as the current standby machine after upgrading is finished. Therefore, the method for upgrading the dual-computer hot-standby system simplifies the operation and maintenance process of upgrading the dual-computer hot-standby system.

Description

Method and device for upgrading dual-computer hot standby system, electronic equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for upgrading a dual-computer hot-standby system, an electronic device, and a computer-readable storage medium.
Background
The firewall is used as an access point device of an internal network and an external network, and the reliability of the firewall is very important. If a device fails, it will cause a total interruption of the traffic between the internal and external networks. However, no matter how reliable a device is, the device is bound to face the risk of a single point of failure in the network. Therefore, a firewall dual-computer hot-standby networking is needed.
The hot standby of the double computers is a solution applied to the server, and the structural idea is that the host computer and the slave computer are connected through a network, the host computer is in a working state under normal conditions, the slave computer is in a monitoring state, the abnormality of the host computer is monitored, and the slave computer can replace the host computer within a short time, so that the function of the host computer is completely realized. The firewall dual-computer hot standby provides higher reliability, but also brings inconvenience to the upgrading of the firewall system.
In the related art, the method for upgrading the dual-computer hot-standby system needs to remove the dual-computer hot-standby networking, unplug the heartbeat line between the host and the standby machine, and upgrade the standby machine and the host in sequence. The upgrading method needs to remove the dual-computer environment and then carries out single-computer upgrading, and after the upgrading is completed, the dual-computer hot-standby networking needs to be recovered. Therefore, the upgrading method of the dual-computer hot standby system in the related art is complex to operate.
Therefore, how to simplify the upgrade process of the dual-computer hot-standby system is a technical problem to be solved by those skilled in the art.
Disclosure of Invention
The present application aims to provide a method and an apparatus for upgrading a dual-server hot-standby system, an electronic device, and a computer-readable storage medium, which simplify the upgrading process of the dual-server hot-standby system.
In order to achieve the above object, the present application provides an upgrading method for a dual-computer hot-standby system, including:
setting the working mode of the dual-computer hot standby system to be a main standby mode; the dual-computer hot-standby system comprises a host and a standby computer, and the host provides service for the dual-computer hot-standby system in the main-standby mode;
sending an upgrade command to a standby machine and the host machine so as to set the host machine and the standby machine in an upgrade state;
upgrading the standby machine, and sending a main-standby switching command to the host machine and the upgraded standby machine after upgrading is completed so that the upgraded standby machine serves as the current host machine;
and upgrading the host, and adding the upgraded host into the dual-computer hot standby system as a current standby computer after upgrading is finished.
Wherein, in the upgrade state, the heartbeat line between the host and the standby machine is only used for transmission of state information, and the sending of the upgrade command to the standby machine and the host to set the host and the standby machine to the upgrade state includes:
and setting any one of the host computer and the standby computer to be in an upgrading state, so that the any one of the host computer and the standby computer can send state information to the other one of the host computer and the standby computer through the heartbeat wire, and the other one of the host computer and the standby computer can be set to be in the upgrading state.
Before sending the master-slave switching command to the host and the upgraded slave, the method further includes:
detecting whether the upgraded standby machine operates normally;
correspondingly, upgrading the standby machine, sending a main/standby switching command to the host and the upgraded standby machine after the upgrading is completed, so that after the upgraded standby machine provides service, the method further includes:
and detecting whether the dual-computer hot standby system operates normally.
After the upgraded host is used as a current standby machine to be added into the dual-computer hot standby system after the upgrade is completed, the method further comprises the following steps:
and resetting the working mode of the dual-computer hot standby system.
Wherein, the resetting the working mode of the dual-computer hot standby system comprises:
and when the host machine and the standby machine are detected to be upgraded completely, restoring the working mode of the dual-machine hot standby system to be the main standby mode.
Wherein, the resetting the working mode of the dual-computer hot standby system comprises:
and receiving a mode switching command, and resetting the working mode of the dual-computer hot standby system according to the mode switching command.
Wherein, the resetting the working mode of the dual-computer hot-standby system according to the mode switching command comprises:
and setting the working mode of the current standby machine in the dual-machine hot standby system according to the mode switching command, and sending a mode synchronization command to the current host machine through the current standby machine so as to set the working mode of the current host machine.
In order to achieve the above object, the present application provides an upgrading apparatus for a dual-computer hot-standby system, including:
the setting module is used for setting the working mode of the dual-computer hot standby system to be a main standby mode; the dual-computer hot-standby system comprises a host and a standby computer, and the host provides service for the dual-computer hot-standby system in the main-standby mode;
the sending module is used for sending an upgrading command to the standby machine and the host machine so as to set the host machine and the standby machine in an upgrading state; in the upgrading state, the heartbeat line between the host computer and the standby computer is only used for transmitting state information;
the first upgrading module is used for upgrading the standby machine and sending a main-standby switching command to the host machine and the upgraded standby machine after upgrading is finished so that the upgraded standby machine serves as the current host machine to provide service;
and the second upgrading module is used for upgrading the host, and adding the upgraded host into the dual-computer hot standby system as a current standby machine after upgrading is finished.
To achieve the above object, the present application provides an electronic device including:
a memory for storing a computer program;
and the processor is used for realizing the steps of the upgrading method of the dual-computer hot-standby system when executing the computer program.
To achieve the above object, the present application provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the steps of the upgrade method of the dual-computer hot-standby system as described above.
According to the above scheme, the method for upgrading the dual-computer hot standby system provided by the application comprises the following steps: setting the working mode of the dual-computer hot standby system to be a main standby mode; the dual-computer hot-standby system comprises a host and a standby computer, and the host provides service for the dual-computer hot-standby system in the main-standby mode; sending an upgrade command to a standby machine and the host machine so as to set the host machine and the standby machine in an upgrade state; in the upgrading state, the heartbeat line between the host computer and the standby computer is only used for transmitting state information; upgrading the standby machine, and sending a main-standby switching command to the host machine and the upgraded standby machine after upgrading is completed so that the upgraded standby machine serves as the current host machine; and upgrading the host, and adding the upgraded host into the dual-computer hot standby system as a current standby computer after upgrading is finished.
According to the upgrading method of the dual-computer hot-standby system, the upgrading state is added to the dual-computer hot-standby system, in the upgrading state, the heartbeat line between the host computer and the standby computer is only used for information transmission, master-slave switching between the host computer and the standby computer is avoided, and synchronous operations such as routing and conversation are also avoided. Therefore, in the upgrading state, the effects of disabling the dual-computer and removing the dual-computer environment are achieved, and the dual-computer environment in the upgrading state does not influence the single-computer upgrading. Therefore, the method for upgrading the dual-computer hot-standby system can realize the upgrading of the dual-computer hot-standby system by setting the upgrading state on the software on the premise of not changing the hardware environment, and simplifies the operation and maintenance process of the dual-computer hot-standby upgrading. The application also discloses an upgrading device of the dual-computer hot standby system, an electronic device and a computer readable storage medium, and the technical effects can be realized.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts. The accompanying drawings, which are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description serve to explain the disclosure without limiting the disclosure. In the drawings:
fig. 1 is a flowchart illustrating an upgrading method of a dual-computer hot-standby system according to an exemplary embodiment;
fig. 2 is a flowchart illustrating an upgrade method for a dual-server hot-standby system according to an exemplary embodiment;
FIG. 3 is a flowchart of an embodiment of an application provided in the present application;
fig. 4 is a block diagram illustrating an upgrading apparatus of a dual-server hot-standby system according to an exemplary embodiment;
FIG. 5 is a block diagram illustrating an electronic device in accordance with an exemplary embodiment.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application discloses an upgrading method of a dual-computer hot-standby system, which simplifies the upgrading process of the dual-computer hot-standby system.
Referring to fig. 1, a flowchart of an upgrading method of a dual-computer hot-standby system according to an exemplary embodiment is shown, as shown in fig. 1, including:
s101: setting the working mode of the dual-computer hot standby system to be a main standby mode; the dual-computer hot-standby system comprises a host and a standby computer, and the host provides service for the dual-computer hot-standby system in the main-standby mode;
the dual-computer hot-standby system of the firewall comprises two devices so as to realize high availability. The dual-computer hot standby system has two working modes, namely a main standby mode and a dual-main mode. In the master-standby mode, one of the two devices is a host and the other is a standby, the host provides firewall service, the standby is in a monitoring state, and the standby replaces the host to provide firewall service when detecting the host fault. In the dual-master mode, the two devices are mutually master and standby and are both in an active state, so that load balance is realized, and when one device fails, the other device takes over.
In the process of upgrading the dual-computer hot-standby system, in order to upgrade two devices one by one, firstly, the working mode of the dual-computer hot-standby system is set to be a main standby mode, at the moment, the host provides service, and the standby machine is in an idle state and can be upgraded.
S102: sending an upgrade command to a standby machine and the host machine so as to set the host machine and the standby machine in an upgrade state;
in the upgrading state, the heartbeat line between the host computer and the standby computer is only used for transmitting state information;
in this embodiment, an upgrade state is added to the dual-computer hot-standby system, and when the host and the standby are in the upgrade state, the heartbeat line therebetween is only used for transmitting information, for example, obtaining basic state information, and functions such as main-standby fault switching, call back, configuration and the like are not performed, which is equivalent to achieving the purpose of removing a dual-computer environment on software and not affecting single-computer upgrade.
S103: upgrading the standby machine, and sending a main-standby switching command to the host machine and the upgraded standby machine after upgrading is completed so that the upgraded standby machine serves as the current host machine;
in this step, the working mode of the dual-computer hot-standby system is the main-standby mode, the host provides services, the standby computer is in the idle state, the standby computer can be upgraded, and the main-standby switching is performed after the upgrade is successful, so that the upgraded standby computer serves as the current host of the dual-computer hot-standby system to provide services, and the original host is in the idle state.
S104: and upgrading the host, and adding the upgraded host into the dual-computer hot standby system as a current standby computer after upgrading is finished.
In this step, the original host (i.e. the current standby) of the dual-computer hot-standby system is upgraded, and after the upgrade is completed, the upgraded host is taken as the current standby and added to the dual-computer hot-standby system. Preferably, in the upgrading process, the states of the two devices can be recorded in real time, so that a user can monitor the upgrading process of the main and standby machines in real time.
The upgrade method for the dual-computer hot-standby system provided in the embodiment of the present application adds an upgrade state to the dual-computer hot-standby system, where in the upgrade state, a heartbeat line between the host and the standby is only used for information transmission, and the host and the standby do not perform master-slave switching or perform synchronous operations such as routing and session. Therefore, in the upgrading state, the effects of disabling the dual-computer and removing the dual-computer environment are achieved, and the dual-computer environment in the upgrading state does not influence the single-computer upgrading. Therefore, the method for upgrading the dual-computer hot-standby system provided by the embodiment of the application can realize the upgrading of the dual-computer hot-standby system by setting the upgrading state on software on the premise of not changing the hardware environment, and simplifies the operation and maintenance process of the dual-computer hot-standby upgrading.
The embodiment of the application discloses an upgrading method of a dual-computer hot standby system, and compared with the previous embodiment, the embodiment further explains and optimizes the technical scheme. Specifically, the method comprises the following steps:
referring to fig. 2, a flowchart of an upgrade method for a dual-computer hot-standby system according to an exemplary embodiment is shown, and as shown in fig. 2, the method includes:
s201: setting the working mode of the dual-computer hot standby system to be a main standby mode; the dual-computer hot-standby system comprises a host and a standby computer, and the host provides service for the dual-computer hot-standby system in the main-standby mode;
s202: setting any one of the host computer and the standby computer to be in an upgrading state, so that the any one of the host computer and the standby computer can send state information to the other one of the host computer and the standby computer through the heartbeat wire, and the other one of the host computer and the standby computer can be set to be in the upgrading state;
in this embodiment, the synchronization of the upgrade state is realized by using the heartbeat line between the host and the standby machines, and after receiving the upgrade command, any one of the host and the standby machines switches to the upgrade state and forwards the state information of the upgrade state to the other party through the heartbeat line, and after receiving the state information, the other party switches to the upgrade state, and the synchronization of the upgrade state of the host and the standby machines is realized.
S203: upgrading the standby machine, and sending a main-standby switching command to the host machine and the upgraded standby machine after upgrading is completed so that the upgraded standby machine serves as the current host machine;
preferably, before the master-slave switching command is sent to the host and the upgraded slave, the method further includes a step of detecting whether the upgraded slave operates normally, so as to ensure that the slave is upgraded successfully. Correspondingly, the upgrading of the standby machine sends a main-standby switching command to the host machine and the upgraded standby machine after the upgrading is finished so that the upgraded standby machine provides service, and the method further comprises the step of detecting whether the dual-machine hot-standby system operates normally or not so as to ensure that the main-standby switching is successful.
S204: and upgrading the host, and adding the upgraded host into the dual-computer hot standby system as a current standby computer after upgrading is finished.
S205: and resetting the working mode of the dual-computer hot standby system.
In this embodiment, after the upgrade is completed, the working mode, the active/standby mode, or the dual master mode of the dual-computer hot-standby system is reset. As a feasible implementation manner, after the host is upgraded, the working mode of the dual-host hot-standby system, that is, the active-standby mode, is automatically recovered. The step of resetting the working mode of the dual-computer hot standby system after the upgrade is completed comprises the following steps: and when the host machine and the standby machine are detected to be upgraded completely, restoring the working mode of the dual-machine hot standby system to be the main standby mode. Specifically, after the original host is upgraded successfully, the upgrade state is exited, the current working mode is determined to be the main/standby mode, and the current working mode is synchronized to the current host (original/standby) through the jumper wire.
As another possible implementation manner, after the host is upgraded, the operating mode of the dual-computer hot-standby system may be manually set, that is, the step of resetting the operating mode of the dual-computer hot-standby system after the upgrade is completed includes: and after the upgrade is finished, receiving a mode switching command, and resetting the working mode of the dual-computer hot standby system according to the mode switching command. Specifically, the step of setting the working mode of the current standby machine according to the mode switching command, and synchronizing the working mode of the current standby machine to the current host machine through a heartbeat line, that is, resetting the working mode of the dual-machine hot standby system includes: setting the working mode of the current standby machine in the dual-machine hot standby system according to the mode switching command, and sending a mode synchronization command to the current host machine through the current standby machine so as to set the working mode of the current host machine
Therefore, in the embodiment, the upgrading state is synchronized through the heartbeat line between the host and the standby machine, and when the dual-machine hot standby system is in the upgrading state, the heartbeat line is only used for transmitting information, so that the host and the standby machine cannot perform master-slave switching, and cannot perform synchronous operations such as routing and session. Therefore, in the upgrading state, the effects of disabling the dual-computer and removing the dual-computer environment are achieved, and the dual-computer environment in the upgrading state does not influence the single-computer upgrading. Therefore, the embodiment can realize the upgrading of the dual-computer hot standby system by setting the upgrading state on the software on the premise of not changing the hardware environment, and simplifies the operation and maintenance process of the dual-computer hot standby upgrading.
An application embodiment provided by the present application is introduced below, specifically, an upgrade state is newly added in a firewall dual-standby system, after the dual-standby system enters the upgrade state, the firewall dual-standby system is maintained in a main standby mode, and a heartbeat line in the upgrade state maintains basic state information to obtain, and state synchronization such as main standby fault switching, conversation, configuration, and the like is not performed. After the upgrade is finished, the upgrade mode is exited, and the dual-computer hot standby is recovered to be normal.
A specific workflow is shown in fig. 3, and may include the following steps:
the method comprises the following steps: switching the firewall equipment into a main standby mode to ensure that only one host is in a normal working state;
step two: setting an upgrading mode, setting equipment at a standby machine (or a host machine) end to enter the upgrading mode, and synchronizing the state to the host machine (or the standby machine) through a jumper wire, so that the main and standby machine equipment can synchronously enter the upgrading state;
in the upgrading state, automatic switching between the main and standby devices is avoided, synchronous operations such as configuration, routing, conversation and the like are also avoided, and only some simple information state interaction is carried out;
step three: carrying out system upgrade on the standby machine, and observing whether the equipment runs normally or not after the upgrade is finished;
step four: performing primary and standby switching, and switching the service to the upgraded standby machine;
step five: observing whether the service operation is normal;
step six: carrying out system upgrade on an original host (a current new standby machine);
step seven: after the upgrade is finished, the system detects that the upgrade is finished and automatically closes the upgrade state. The main/standby machine hot-standby working mode is recovered to normal, or manual closing can be selected, and the operation of closing the upgrading state is synchronized to equipment at the other end through a heartbeat line, and the main/standby machine hot-standby working mode is recovered to normal;
step eight: renegotiation between the main and standby machines and entering a stable state
In the following, a device for upgrading a dual-computer hot-standby system according to an embodiment of the present application is introduced, and the device for upgrading a dual-computer hot-standby system described below and the method for upgrading a dual-computer hot-standby system described above may refer to each other.
Referring to fig. 4, a structural diagram of an upgrading apparatus of a dual-computer hot-standby system according to an exemplary embodiment is shown in fig. 4, and includes:
a first setting module 401, configured to set a working mode of the dual-computer hot-standby system to a main-standby mode; the dual-computer hot-standby system comprises a host and a standby computer, and the host provides service for the dual-computer hot-standby system in the main-standby mode;
a sending module 402, configured to send an upgrade command to a standby machine and the host machine so as to set the host machine and the standby machine in an upgrade state;
a first upgrading module 403, configured to upgrade the standby machine, and send a main/standby switching command to the host and the upgraded standby machine after the upgrade is completed, so that the upgraded standby machine serves as a current host to provide services;
and a second upgrading module 404, configured to upgrade the host, and add the upgraded host into the dual-computer hot-standby system as a current standby host after the upgrade is completed.
The upgrading device for the dual-computer hot-standby system provided by the embodiment of the application increases the upgrading state for the dual-computer hot-standby system, and in the upgrading state, the heartbeat line between the host and the standby machine is only used for information transmission, so that the host and the standby machine cannot be switched between master and slave, and synchronous operations such as routing and conversation cannot be performed. Therefore, in the upgrading state, the effects of disabling the dual-computer and removing the dual-computer environment are achieved, and the dual-computer environment in the upgrading state does not influence the single-computer upgrading. Therefore, the upgrading device of the dual-computer hot-standby system provided by the embodiment of the application can realize the upgrading of the dual-computer hot-standby system by setting the upgrading state on software on the premise of not changing the hardware environment, and simplifies the operation and maintenance process of the dual-computer hot-standby upgrading.
On the basis of the foregoing embodiment, as a preferred implementation manner, the sending module 402 is specifically a module that sets any one of the host and the standby machine in an upgrade state, so that the any one sends state information to the other one of the host and the standby machine through the heartbeat line, and the other one is set in the upgrade state.
On the basis of the above embodiment, as a preferred implementation, the method further includes:
the first detection module is used for detecting whether the upgraded standby machine operates normally or not before the main machine and the upgraded standby machine send main/standby switching commands;
and the second detection module is used for detecting whether the dual-computer hot-standby system operates normally after the upgraded standby computer provides services.
On the basis of the above embodiment, as a preferred implementation, the method further includes:
and the second setting module is used for resetting the working mode of the dual-computer hot standby system.
On the basis of the foregoing embodiment, as a preferred implementation manner, the second setting module is specifically a module that upgrades the host, and when it is detected that both the host and the standby are upgraded, the working mode of the dual-computer hot-standby system is restored to the active-standby mode.
On the basis of the foregoing embodiment, as a preferred implementation manner, the second setting module is specifically a module that upgrades the host, receives a mode switching command after the upgrade is completed, and resets the working mode of the dual-computer hot-standby system according to the mode switching command.
On the basis of the above embodiment, as a preferred implementation, the second setting module includes:
the upgrading unit is used for upgrading the host and receiving a mode switching command after upgrading is finished;
and the setting unit is used for setting the working mode of the current standby machine in the dual-machine hot standby system according to the mode switching command and sending a mode synchronization command to the current host machine through the current standby machine so as to set the working mode of the current host machine.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
The present application further provides an electronic device, and referring to fig. 5, a structure diagram of an electronic device 500 provided in an embodiment of the present application may include a processor 11 and a memory 12, as shown in fig. 5. The electronic device 500 may also include one or more of a multimedia component 13, an input/output (I/O) interface 14, and a communication component 15.
The processor 11 is configured to control the overall operation of the electronic device 500, so as to complete all or part of the steps in the method for upgrading the dual-computer hot-standby system. The memory 12 is used to store various types of data to support operation at the electronic device 500, such as instructions for any application or method operating on the electronic device 500, and application-related data, such as contact data, messaging, pictures, audio, video, and so forth. The Memory 12 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk or optical disk. The multimedia component 13 may include a screen and an audio component. Wherein the screen may be, for example, a touch screen and the audio component is used for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may further be stored in the memory 12 or transmitted via the communication component 15. The audio assembly also includes at least one speaker for outputting audio signals. The I/O interface 14 provides an interface between the processor 11 and other interface modules, such as a keyboard, mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 15 is used for wired or wireless communication between the electronic device 500 and other devices. Wireless communication, such as Wi-Fi, bluetooth, Near Field Communication (NFC), 2G, 3G or 4G, or a combination of one or more of them, so that the corresponding communication component 15 may include: Wi-Fi module, bluetooth module, NFC module.
In an exemplary embodiment, the electronic Device 500 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components, for performing the above-mentioned method for upgrading a dual-computer hot-standby system.
In another exemplary embodiment, a computer readable storage medium including program instructions is further provided, and the program instructions when executed by a processor implement the steps of the upgrade method for the dual-computer hot-standby system described above. For example, the computer readable storage medium may be the memory 12 including program instructions, which are executable by the processor 11 of the electronic device 500 to perform the upgrade method of the dual-computer hot-standby system.
The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. A method for upgrading a dual-computer hot standby system is characterized by comprising the following steps:
setting the working mode of the dual-computer hot standby system to be a main standby mode; the dual-computer hot-standby system comprises a host and a standby computer, and the host provides service for the dual-computer hot-standby system in the main-standby mode;
sending an upgrade command to a standby machine and the host machine so as to set the host machine and the standby machine in an upgrade state;
upgrading the standby machine, and sending a main-standby switching command to the host machine and the upgraded standby machine after upgrading is completed so that the upgraded standby machine serves as the current host machine;
and upgrading the host, and adding the upgraded host into the dual-computer hot standby system as a current standby computer after upgrading is finished.
2. The upgrade method according to claim 1, wherein in the upgrade state, a heartbeat line between the host and the standby machine is used only for transmission of state information, and the sending of the upgrade command to the standby machine and the host to set the host and the standby machine in the upgrade state comprises:
and setting any one of the host computer and the standby computer to be in an upgrading state, so that the any one of the host computer and the standby computer can send state information to the other one of the host computer and the standby computer through the heartbeat wire, and the other one of the host computer and the standby computer can be set to be in the upgrading state.
3. The upgrading method according to claim 1, before sending the master-slave switching command to the host and the upgraded slave, further comprising:
detecting whether the upgraded standby machine operates normally;
correspondingly, upgrading the standby machine, sending a main/standby switching command to the host and the upgraded standby machine after the upgrading is completed, so that after the upgraded standby machine provides service, the method further includes:
and detecting whether the dual-computer hot standby system operates normally.
4. The upgrading method according to any one of claims 1 to 3, wherein after the upgraded host is added to the dual-computer hot-standby system as a current standby host after the upgrading is completed, the method further comprises:
and resetting the working mode of the dual-computer hot standby system.
5. The upgrade method according to claim 4, wherein the resetting the operation mode of the dual-computer hot-standby system includes:
and when the host machine and the standby machine are detected to be upgraded completely, restoring the working mode of the dual-machine hot standby system to be the main standby mode.
6. The upgrade method according to claim 4, wherein the resetting the operation mode of the dual-computer hot-standby system includes:
and receiving a mode switching command, and resetting the working mode of the dual-computer hot standby system according to the mode switching command.
7. The upgrading method according to claim 6, wherein the resetting the operating mode of the dual-computer hot-standby system according to the mode switching command includes:
and setting the working mode of the current standby machine in the dual-machine hot standby system according to the mode switching command, and sending a mode synchronization command to the current host machine through the current standby machine so as to set the working mode of the current host machine.
8. An upgrade device for a dual-computer hot standby system is characterized by comprising:
the setting module is used for setting the working mode of the dual-computer hot standby system to be a main standby mode; the dual-computer hot-standby system comprises a host and a standby computer, and the host provides service for the dual-computer hot-standby system in the main-standby mode;
the sending module is used for sending an upgrading command to the standby machine and the host machine so as to set the host machine and the standby machine in an upgrading state; in the upgrading state, the heartbeat line between the host computer and the standby computer is only used for transmitting state information;
the first upgrading module is used for upgrading the standby machine and sending a main-standby switching command to the host machine and the upgraded standby machine after upgrading is finished so that the upgraded standby machine serves as the current host machine to provide service;
and the second upgrading module is used for upgrading the host, and adding the upgraded host into the dual-computer hot standby system as a current standby machine after upgrading is finished.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor, configured to implement the steps of the upgrade method for the dual-computer hot-standby system according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, having a computer program stored thereon, where the computer program is executed by a processor to perform the steps of the method for upgrading a dual-server hot-standby system according to any of the claims 1 to 7.
CN201911205742.7A 2019-11-29 2019-11-29 Method and device for upgrading dual-computer hot standby system, electronic equipment and storage medium Pending CN110895469A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911205742.7A CN110895469A (en) 2019-11-29 2019-11-29 Method and device for upgrading dual-computer hot standby system, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911205742.7A CN110895469A (en) 2019-11-29 2019-11-29 Method and device for upgrading dual-computer hot standby system, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110895469A true CN110895469A (en) 2020-03-20

Family

ID=69788316

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911205742.7A Pending CN110895469A (en) 2019-11-29 2019-11-29 Method and device for upgrading dual-computer hot standby system, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110895469A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111444047A (en) * 2020-03-27 2020-07-24 深圳融安网络科技有限公司 Configuration synchronization method for dual-computer hot backup, dual-computer hot backup system and readable storage medium
CN111787098A (en) * 2020-06-30 2020-10-16 歌尔科技有限公司 Earphone upgrading method and device, earphone and storage medium
CN112099821A (en) * 2020-08-25 2020-12-18 珠海格力电器股份有限公司 Program upgrading method and device and air conditioning system
CN114785807A (en) * 2022-03-16 2022-07-22 深信服科技股份有限公司 Data processing method and device, electronic equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101252464A (en) * 2008-03-17 2008-08-27 华为技术有限公司 Dual system and dual system online upgrading method
CN102148709A (en) * 2011-02-25 2011-08-10 中兴通讯股份有限公司 Method and device for realizing main-standby monolithic board upgrading
CN102195796A (en) * 2010-03-19 2011-09-21 杭州华三通信技术有限公司 Method and equipment for updating software version of distributed dual master control equipment
CN104320475A (en) * 2014-10-31 2015-01-28 杭州华三通信技术有限公司 Equipment upgrading method and device
CN106571939A (en) * 2015-10-09 2017-04-19 中兴通讯股份有限公司 Single board upgrade method and device
CN106790349A (en) * 2016-11-11 2017-05-31 浙江中烟工业有限责任公司 A kind of method that two-node cluster hot backup is realized based on IEEE1394 interfaces
CN108920164A (en) * 2018-07-11 2018-11-30 郑州云海信息技术有限公司 The management method and device of host in cloud computing system
CN109189444A (en) * 2018-10-11 2019-01-11 郑州云海信息技术有限公司 A kind of upgrade control method and device of the management node of server virtualization system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101252464A (en) * 2008-03-17 2008-08-27 华为技术有限公司 Dual system and dual system online upgrading method
CN102195796A (en) * 2010-03-19 2011-09-21 杭州华三通信技术有限公司 Method and equipment for updating software version of distributed dual master control equipment
CN102148709A (en) * 2011-02-25 2011-08-10 中兴通讯股份有限公司 Method and device for realizing main-standby monolithic board upgrading
CN104320475A (en) * 2014-10-31 2015-01-28 杭州华三通信技术有限公司 Equipment upgrading method and device
CN106571939A (en) * 2015-10-09 2017-04-19 中兴通讯股份有限公司 Single board upgrade method and device
CN106790349A (en) * 2016-11-11 2017-05-31 浙江中烟工业有限责任公司 A kind of method that two-node cluster hot backup is realized based on IEEE1394 interfaces
CN108920164A (en) * 2018-07-11 2018-11-30 郑州云海信息技术有限公司 The management method and device of host in cloud computing system
CN109189444A (en) * 2018-10-11 2019-01-11 郑州云海信息技术有限公司 A kind of upgrade control method and device of the management node of server virtualization system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111444047A (en) * 2020-03-27 2020-07-24 深圳融安网络科技有限公司 Configuration synchronization method for dual-computer hot backup, dual-computer hot backup system and readable storage medium
CN111444047B (en) * 2020-03-27 2023-12-29 深圳融安网络科技有限公司 Configuration synchronization method for dual-engine hot standby, dual-engine hot standby system and readable storage medium
CN111787098A (en) * 2020-06-30 2020-10-16 歌尔科技有限公司 Earphone upgrading method and device, earphone and storage medium
CN112099821A (en) * 2020-08-25 2020-12-18 珠海格力电器股份有限公司 Program upgrading method and device and air conditioning system
CN114785807A (en) * 2022-03-16 2022-07-22 深信服科技股份有限公司 Data processing method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110895469A (en) Method and device for upgrading dual-computer hot standby system, electronic equipment and storage medium
CN103384212A (en) Double-machine high availability scheme for communication application system and implementation thereof
CN113051110A (en) Cluster switching method, device and equipment
CN112398689A (en) Network recovery method and device, storage medium and electronic equipment
CN106161086B (en) The control method and device that master control borad is restarted
CN108900441B (en) Network switching method, first electronic device and readable storage medium
RU2670096C2 (en) Method and device for ending video communication
CN112803998B (en) Multi-bus network cross-network communication method, device, system, equipment and storage medium
CN112564990B (en) Management method for switching audio management server
EP2774323B1 (en) Method, communication system and non-transitory computer readable medium for optimizing network performance after a temporary loss of connection
CN114124697A (en) Network switching method, network switching device and storage medium
CN111371680B (en) Route management method, device, equipment and storage medium for dual-computer hot standby
CN110351122B (en) Disaster recovery method, device, system and electronic equipment
CN116193481A (en) 5G core network processing method, device, equipment and medium
CN107995022B (en) Session synchronization method and device, storage medium and electronic equipment
JP2015114952A (en) Network system, monitoring control unit, and software verification method
CN114422335A (en) Communication method, communication device, server and storage medium
CN111344962B (en) Network interface switching method of optical network unit and optical network unit
CN112130889A (en) Resource management method and device, storage medium and electronic device
CN102215272B (en) Method and system for emergency switching
CN113596380B (en) Video conference server and communication method
CN116527486B (en) Device independent function self-adaptive management method, device and medium
JP2006228120A (en) File updating method
CN110868407B (en) Ethernet link detection method, device, electronic equipment and computer medium
KR102157538B1 (en) System for upgrading / updating software of virtual network apparatus or system, method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination