CN114826914A - Server upgrading method and device - Google Patents

Server upgrading method and device Download PDF

Info

Publication number
CN114826914A
CN114826914A CN202210334364.8A CN202210334364A CN114826914A CN 114826914 A CN114826914 A CN 114826914A CN 202210334364 A CN202210334364 A CN 202210334364A CN 114826914 A CN114826914 A CN 114826914A
Authority
CN
China
Prior art keywords
server
instruction
sending
file
upgrade
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
CN202210334364.8A
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.)
Hainan Qiantang Shilian Information Technology Co ltd
Original Assignee
Hainan Qiantang Shilian Information Technology 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 Hainan Qiantang Shilian Information Technology Co ltd filed Critical Hainan Qiantang Shilian Information Technology Co ltd
Priority to CN202210334364.8A priority Critical patent/CN114826914A/en
Publication of CN114826914A publication Critical patent/CN114826914A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention provides a server upgrading method and device. The method comprises the following steps: determining at least one second server needing to be upgraded; acquiring an upgrade file of a second server; sending a connection test file to a second server based on the connection relation between the first server and the second server in the tree network structure; and under the condition that the first server receives the first instruction sent by the second server, sending the upgrade file to the second server so that the second server can upgrade according to the upgrade file. The technical scheme provided by the embodiment of the invention solves the problems of complex operation and low upgrading efficiency in the manual server upgrading mode in the prior art.

Description

Server upgrading method and device
Technical Field
The invention relates to the technical field of video networking, in particular to a server upgrading method and device.
Background
The server is the core of the whole network system, provides services for network users and manages the whole network, and is an indispensable network device of the network system. With the development of network technology, in order to enable a user to obtain a better network use experience, the server may need to be upgraded and updated to improve the performance of the server.
In the prior art, when a server is upgraded, an engineer generally connects the server to be upgraded to each machine room by using hardware equipment, and burns an upgrade file into the server to be upgraded, so that the server is upgraded.
However, this method requires manual upgrading of one server, which is time-consuming and labor-consuming, and increases the upgrading cost of the server.
Disclosure of Invention
In view of the above, embodiments of the present invention are proposed in order to provide a server upgrade method and apparatus that overcome the above problems or at least partially solve the above problems.
In a first aspect, an embodiment of the present invention discloses a server upgrading method, where the method includes:
determining at least one second server needing to be upgraded; wherein the first server and the at least one second server are in a tree network structure;
acquiring an upgrade file of the second server;
sending a connection test file to the second server based on the connection relation between the first server and the second server in the tree network structure; the connection test file is used for testing whether the first server and the second server are in a connection state;
under the condition that the first server receives a first instruction sent by the second server, the upgrading file is sent to the second server, so that the second server can be upgraded according to the upgrading file; wherein the first instruction is to indicate that the connection test file has been received.
In a second aspect, an embodiment of the present invention discloses a server upgrading apparatus, where the apparatus includes:
the determining module is used for determining at least one second server needing to be upgraded; wherein the first server and the at least one second server are in a tree network structure;
the acquisition module is used for acquiring the upgrade file of the second server;
the first sending module is used for sending a connection test file to a second server based on the connection relation of the first server and the second server in the tree-like network structure; the connection test file is used for testing whether the first server and the second server are in a connection state or not;
the second sending module is used for sending the upgrade file to the second server under the condition that the first server receives the first instruction sent by the second server, so that the second server can be upgraded according to the upgrade file; the first instruction is used for indicating that the connection test file is received.
In a third aspect, an embodiment of the present invention further discloses an electronic device, including a memory and a processor, where the memory stores a program or instructions executable on the processor, and the program or instructions, when executed by the processor, implement the server upgrade method according to the first aspect.
In a fourth aspect, an embodiment of the present invention further discloses a computer-readable storage medium, where a computer program for implementing the server upgrading method according to the first aspect is stored in the computer-readable storage medium.
The embodiment of the invention has the following advantages:
in the embodiment of the invention, the first server and the second server to be upgraded are positioned in the tree-shaped network structure in which the nodes are communicated with each other, so that the first server can send the upgrade file to each second server to be upgraded, thereby realizing remote batch upgrade of the servers, saving the complicated operation of manual upgrade, improving the upgrade efficiency and saving the upgrade cost.
In addition, in the embodiment of the present invention, before sending the upgrade file to the second server, the first server further sends a connection test file to the second server to test the communication connection state between the first server and the second server, and sends the upgrade file to the second server under the condition that the communication connection state between the first server and the second server is normal, so as to reduce the risk of upgrade failure caused by abnormal communication connection between the first server and the second server.
Drawings
FIG. 1 is a flow chart of the steps of an embodiment of a server upgrade method of the present invention;
fig. 2 is a schematic structural diagram of an autonomous cloud network according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a connection relationship between a network management server and a video network sub-control server according to an embodiment of the present invention;
fig. 4 is a block diagram of an embodiment of a server upgrading apparatus according to the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
In the prior art, the upgrading of the servers requires manual burning of the upgrading files to each server needing upgrading, which wastes time and labor. The embodiment of the invention sends the upgrading file to at least one second server needing upgrading through the first server in the tree network structure based on the characteristic that all nodes in the tree network structure are mutually communicated, thereby realizing the batch upgrading of the servers. In addition, in the embodiment of the invention, before the first server sends the upgrade file to the second server, the connection test file is also sent to the second server to test whether the communication connection state between the first server and the second server is normal, so that the problem that the upgrade fails because the first server still sends the upgrade file to the second server under the condition that the communication connection between the first server and the second server is abnormal is avoided.
Referring to fig. 1, a flowchart illustrating steps of an embodiment of a server upgrade method according to the present invention is shown, where the server upgrade method is applied to a first server, and specifically includes the following steps:
step 101: at least one second server requiring an upgrade is determined.
Wherein, the first server and the at least one second server are in a tree network structure. Optionally, the first server may be a root node in the tree network structure, and the root node is a topmost node in the tree network structure, which facilitates issuing of information.
In the embodiment of the present invention, the first server may determine a server (i.e., at least one second server) that needs to be upgraded.
For example, an autonomous cloud network in a video network is taken as an example for explanation.
As shown in fig. 2, the autonomous cloud network includes a plurality of autonomous clouds, and a tree network structure is formed between the plurality of autonomous clouds. Starting from the autonomous cloud at the topmost layer, each autonomous cloud can be connected with a plurality of autonomous clouds at the next layer, the autonomous clouds at the next layer are connected with the autonomous clouds at the next layer, and all the autonomous clouds are connected layer by layer in the mode to form a complete video network. Each autonomous cloud is a basic substructure in the network structure of the video network, and is a minimum structural unit in which the video network can normally operate. When the autonomous cloud is configured correctly, the autonomous cloud can independently realize all functions of the video networking in the autonomous cloud, so that the autonomous cloud can still realize video networking service in the autonomous cloud under the condition that the autonomous cloud cannot be connected with the upper and lower autonomous clouds. Under the condition that the autonomous clouds can be connected with the autonomous clouds on the upper and lower layers, the autonomous clouds can form a larger range of video networking, and therefore video networking services crossing the autonomous clouds can be achieved.
Each autonomous cloud may include: the system comprises an autonomous server, a video network sub-control server, a network management server and a video network terminal.
The autonomous servers are management cores of the autonomous clouds, and each autonomous cloud can comprise at least one autonomous server. The autonomous server can manage and register the equipment in the autonomous cloud, realize the video networking service logic inside the autonomous cloud and among the autonomous clouds, and realize higher-level management and other functions through the management network communication of the video networking.
The video network sub-control server is a video network controller integrating video network audio and video forwarding, set top box control, registration and other functions, and comprises a mounting machine box type structure and a portable structure.
The network management server is a core device of the video network, provides a User Interface (UI) Interface for a client to call, and controls operations such as service opening and registration of the video network sub-control server through the autonomous server.
Wherein, the video networking terminal includes: the video networking user equipment such as a conference set-top box, a video telephone set-top box, an operation teaching set-top box, a streaming media gateway, a storage gateway, a media synthesizer and the like is an actual participant or server of video networking services.
In the method, the view network sub-control server sometimes needs to be upgraded, for example, from 16 bits to 64 bits. The network management server is the core equipment of the video network, so the network management server can control the video network sub-control server to upgrade, the network management server can be used as a first server, and the video network sub-control server can be used as a second server. And because the video network sub-control server and the network management server are both network equipment in the autonomous cloud network, a tree-shaped network structure can be formed, so that the upgrading file can be simultaneously sent to a plurality of video network sub-control servers needing upgrading through the network management server according to the characteristics of the tree-shaped network structure, and the servers can be upgraded in batches. As shown in fig. 3, a communication connection is established between the network management server and N video network sub-control servers, where N is greater than or equal to 1.
In the embodiment of the invention, when the network management server controls the video network sub-control server to be upgraded, the video network sub-control server which needs to be upgraded needs to be determined first. The information of the video network sub-control server which needs to be upgraded can be actively reported to the network management server by the video network sub-control server which needs to be upgraded, or can be obtained by the network management server from other equipment.
Step 102: and acquiring an upgrade file of the second server.
In the embodiment of the invention, the first server can acquire the upgrade file of the second server after determining the second server needing to be upgraded.
For example, after determining the video networking sub-control server to be upgraded, the network management server may obtain an upgrade file required by the video networking sub-control server to upgrade the video networking sub-control server.
Step 103: and sending the connection test file to the second server based on the connection relation between the first server and the second server in the tree-like network structure.
The connection test file is used for testing whether the first server and the second server are in a communication connection state.
In the embodiment of the present invention, after acquiring the upgrade file of the second server, the first server may send the connection test file to the second server to determine whether the communication connection state between the first server and the second server is normal.
For example, after obtaining the upgrade file of the second server, the network management server may send the connection test file to the view networking sub-control server that needs to be upgraded, so as to determine whether the communication connection state between the two servers is normal.
As can be seen from the foregoing, the first server and the at least one second server are in a tree-like network structure, and the tree-like network structure has a characteristic that nodes are interconnected, so that the first server in the tree-like network structure can send the connection test file to any second server in the tree-like network structure that needs to be upgraded.
Step 104: and under the condition that the first server receives the first instruction sent by the second server, sending the upgrade file to the second server so that the second server can upgrade according to the upgrade file.
The first instruction is used for indicating that the connection test file is received.
In the embodiment of the present invention, after the first server sends the connection test file to the second server, if the second server receives the connection test file, a first instruction is fed back to the first server within a preset time period to notify the first server that the connection test file has been received, which indicates that the communication connection between the first server and the second server is normal; if the first server does not receive the first instruction within the preset time length, which indicates that the second server does not receive the connection test file, the communication connection between the first server and the second server may be abnormal.
In the embodiment of the present invention, when the first server receives the first instruction sent by the second server, the upgrade file may be sent to the second server, so that the second server performs upgrade according to the upgrade file.
For example, after the network management server sends the connection test file to the video network sub-control server needing to be upgraded, if the network management server receives a first instruction fed back by the video network sub-control server needing to be upgraded, the network management server sends the upgrade file to the video network sub-control server needing to be upgraded, so that the video network sub-control server needing to be upgraded is upgraded; otherwise, if the network management server does not receive the first instruction fed back by the video network sub-control server needing to be upgraded, the network management server does not send the upgrade file to the video network sub-control server needing to be upgraded.
According to the server upgrading method provided by the embodiment of the invention, the first server and the second server to be upgraded are positioned in the tree-shaped network structure in which the nodes are communicated with each other, so that the first server can send the upgrading file to each second server to be upgraded, remote batch upgrading of the servers is realized, complicated manual upgrading operations are omitted, upgrading efficiency is improved, and upgrading cost is saved.
In addition, in the embodiment of the present invention, before sending the upgrade file to the second server, the first server further sends a connection test file to the second server to test the communication connection state between the first server and the second server, and sends the upgrade file to the second server under the condition that the communication connection state between the first server and the second server is normal, so as to reduce the risk of upgrade failure caused by abnormal communication connection between the first server and the second server.
As an alternative embodiment, the first server is an upgrade server that matches the current application scenario. Wherein, under different application scenes, the upgrading server is different.
Based on the characteristic that all nodes of the tree-shaped network structure are communicated with each other, a server at any node in the tree-shaped network structure can be used as an upgrading server, so that the setting flexibility of the upgrading server is higher.
In different application scenarios, the servers to be upgraded may be different. For example, in a video conference scenario, a server to be upgraded is a server a for managing a video conference in a tree network structure; in a video monitoring scene, a server to be upgraded is a server B for managing video monitoring in a tree network structure. In different application scenarios, the core servers may also be different, and since the communication between the core servers and the management and control servers thereof is more convenient, the core server corresponding to the application scenario may be set as an upgrade server for different application scenarios.
As an alternative embodiment, the first server may obtain information of the second server that needs to be upgraded from the terminal device connected thereto. The terminal device stores the information of the second server needing to be upgraded, and the information of the second server can be artificially counted and stored in the terminal device.
For example, the description is continued with the example of the view network. The network management server can be connected with a personal computer (namely terminal equipment), a network management client is installed in the personal computer, and the information interaction between the personal computer and the network management server can be realized through the network management client. The network management client can be connected with the video network through a video network card in the personal computer, and performs information interaction with the network management server through the video network.
The staff can store the information of the split control server of the video network to be upgraded in the electronic document which can be identified by the network management client and the network management server in advance, and then when the server is upgraded, the electronic document can be uploaded to the network management client, and the network management client sends the electronic document to the network management server, so that the network management server can determine the split control server of the video network to be upgraded according to the electronic document. Optionally, the electronic document may be a statistical template of server upgrade information downloaded by a worker at a network management client, and after the template is downloaded, the information of the view networking sub-control server to be upgraded is manually filled in the template.
Optionally, the view network separate control server information may include: media Access Control Address (MAC Address) information of the first interface, MAC information of the second interface, and a connection key.
The first interface is an interactive interface between terminal equipment (such as a video network terminal) and the video network sub-control server, and the terminal equipment can be accessed to the video network through the first interface. The second interface is an interactive interface between the autonomous server and the video network sub-control server. The connection key is used for the safe connection between the network management server and the video network sub-control server so as to protect the information safety of the video network sub-control server.
As an optional embodiment, the second server that needs to be upgraded may also automatically report an upgrade request to the first server, where the upgrade request includes information about the second server. And after receiving the upgrading request of the second server, the first server stores the information of the second server.
For example, the description is continued with the example of the view network. When the video network sub-control server has an upgrade requirement, the video network sub-control server can automatically report an upgrade request to the network management server, wherein the upgrade request comprises the video network sub-control server information. And after receiving the upgrading request of the video network sub-control server, the network management server stores the information of the video network sub-control server needing to be upgraded.
As an optional embodiment, after the first server receives the first instruction sent by the second server, the server upgrading method may further include: and sending a restart test instruction to the second server. Wherein the restart test instruction described herein is for testing a restart function of the second server.
Accordingly, step 104: sending the upgrade file to the second server may include: and under the condition that the first server receives the first instruction and the second instruction sent by the second server, sending an upgrade file to the second server. The second instruction is used for indicating that the second server is restarted successfully after receiving the restart test instruction.
In the embodiment of the present invention, after the first server receives the first instruction sent by the second server to indicate that the connection test file has been received, the first server may further send a restart test instruction to the second server to test whether a restart function of the second server is normal. And after receiving the restart test instruction, the second server restarts according to the restart test instruction. If the second server is restarted successfully, that is, the restart function of the second server is normal, the second server may send a restart success instruction (that is, a second instruction) to the first server; if the second server fails to restart, that is, if it is indicated that the restart function of the second server may be abnormal, the second server may send a restart failure instruction to the first server. It will be appreciated that the restart test instruction may also be used to test whether the second server is able to successfully receive a restart instruction, where the restart test instruction is the same as the restart instruction.
In the embodiment of the present invention, after receiving the second instruction sent by the second server to indicate that the reboot is successful, the first server may send the upgrade file to the second server, so that the second server performs upgrade according to the upgrade file.
For example, the description is continued with the example of the view network. After the network management server receives a first instruction which is sent by the video networking sub-control server needing to be upgraded and used for indicating that the connection test file is received, the network management server can send a restart test instruction to the video networking sub-control server needing to be upgraded. And restarting the video networking sub-control server needing to be upgraded after receiving the restart test instruction. If the sub-control server of the video network needing to be upgraded is restarted successfully, the sub-control server of the video network needing to be upgraded sends a restart success instruction (namely a second instruction) to the network management server, and after receiving the restart success instruction sent by the sub-control server of the video network needing to be upgraded, the network management server can send an upgrade file to the sub-control server of the video network needing to be upgraded for upgrading. On the contrary, if the restart of the sub-control server of the video network needing to be upgraded fails, the sub-control server of the video network needing to be upgraded sends a restart failure instruction to the network management server, and after receiving the restart failure instruction, the network management server temporarily does not send the upgrade file to the sub-control server of the video network needing to be upgraded.
Generally, when a server is upgraded, some system data or system configuration cannot be changed during the use of the server, and the server needs to be temporarily shut down to complete the update of the system data or system configuration, so that the server needs to be restarted during the upgrade process according to an upgrade file. However, sometimes, the restart function of the server may be abnormal, which may result in abnormal restart failure and further result in failure of upgrade. In the above solution provided in the embodiment of the present application, before sending the upgrade file to the second server, the first server may send a restart test instruction to the second server to test a restart function of the second server, and send the upgrade file to the second server under the condition that the restart function of the second server is normal, so as to reduce a risk of upgrade failure caused by an abnormal restart function of the second server.
When the restart test instruction is further used for testing whether the second server can successfully receive the restart instruction, if the first server does not receive the second instruction of the second server within the preset time length, the second server is considered to be incapable of receiving the restart instruction.
Optionally, in this embodiment of the present invention, the upgrading file may include: a Field Programmable Gate Array (FPGA) file and a Digital Signal Processing (DSP) file.
As an alternative embodiment, at step 104: after sending the upgrade file to the second server, the server upgrade method may further include:
and the first server sends a restarting instruction to the second server under the condition of receiving a third instruction sent by the second server.
And the third instruction is used for indicating that the second server has received the upgrade file.
In the embodiment of the present invention, the first server may further send a restart instruction to the second server when receiving the third instruction sent by the second server. And the second server restarts after receiving the restart instruction sent by the first server, thereby finishing upgrading.
For example, the description is continued with the example of the view network. After receiving the upgrade file, the video networking sub-control server needing to be upgraded can send a third instruction to the network management server to inform the network management server that the network management server has received the upgrade file. After receiving the third instruction sent by the video network sub-control server to be upgraded, the network management server can send a restart instruction to the video network sub-control server to be upgraded, so that the video network sub-control server to be upgraded is restarted according to the restart instruction, and the upgrade is completed.
As an alternative embodiment, step 104: sending the upgrade file to the second server may include:
and sending the upgrade file to the second server every preset time length until receiving a fourth instruction sent by the second server.
The fourth instruction is used for indicating that the second server has received the upgrade file.
In the embodiment of the invention, after receiving the first instruction sent by the second server needing to be upgraded, the first server can also send the upgrade file to the second server every preset time. After the second server finishes receiving the upgrade file, an upgrade file receiving finishing instruction (namely, a fourth instruction) can be sent to the first server, and at the moment, the first server stops sending the upgrade file to the second server, so that the second server can be ensured to receive the upgrade file, and the risk that the second server fails in upgrading due to the fact that the second server does not receive the upgrade file is reduced.
For example, the description is continued with the example of the view network. After the first server receives the first instruction sent by the second server needing to be upgraded, the network management server can send the upgrade file to the video network sub-control server needing to be upgraded at intervals. When the view networking sub-control server needing to be upgraded receives the upgrade file, the view networking sub-control server can send an upgrade file receiving completion instruction (namely, a fourth instruction) to the network management server, and after the network management server receives the upgrade file completion instruction, the view networking sub-control server stops sending the upgrade file.
Finally, it should be noted that the technical solution provided by the embodiment of the present invention can be applied not only to the field of video networking technology but also to the field of internet technology.
The above is a description of the server upgrading method provided by the embodiment of the present invention.
In summary, in the embodiment of the present invention, because the first server and the second server to be upgraded are located in the tree-like network structure in which the nodes are communicated with each other, the first server can send the upgrade file to each second server to be upgraded, thereby implementing remote batch upgrade of the servers, eliminating the tedious operation of manual upgrade, improving the upgrade efficiency, and saving the upgrade cost. In addition, in the embodiment of the present invention, before the first server sends the upgrade file to the second server, the first server may also send a connection test file to the second server to test the communication connection state between the first server and the second server, and send the upgrade file to the second server again under the condition that the communication connection state between the first server and the second server is normal, so as to reduce the risk of upgrade failure caused by abnormal communication connection between the first server and the second server.
Referring to fig. 4, a block diagram of a server upgrade apparatus according to an embodiment of the present invention is shown, where the server upgrade apparatus may specifically include the following modules:
a determining module 401, configured to determine at least one second server that needs to be upgraded.
The first server and the at least one second server are in a tree network structure.
An obtaining module 402, configured to obtain an upgrade file of the second server.
A first sending module 403, configured to send a connection test file to the second server based on a connection relationship between the first server and the second server in the tree graph structure.
The connection test file is used for testing whether the first server and the second server are in a connection state.
A second sending module 404, configured to send the upgrade file to the second server when the first server receives the first instruction sent by the second server, so that the second server performs upgrade according to the upgrade file.
Wherein the first instruction is to indicate that the connection test file has been received.
As an optional embodiment, the upgrading apparatus may further include:
and the third sending module is used for sending a restart test instruction to the second server.
The restart testing instruction is used for testing the restart function of the second server.
Optionally, in this embodiment of the present invention, the second sending module 404 may include:
and the first sending submodule is used for sending the upgrade file to the second server under the condition that the first server receives the first instruction and the second instruction sent by the second server.
The second instruction is used for indicating the second server to be restarted successfully after receiving the restart test instruction.
As an alternative embodiment, the upgrade apparatus may further include:
and the fourth sending module is used for sending a restarting instruction to the second server under the condition of receiving a third instruction sent by the second server.
Wherein the third instruction is used for indicating that the second server has received the upgrade file.
As an alternative embodiment, the second sending module 404 may include:
and the second sending submodule is used for sending the upgrade file to the second server every other preset time till receiving a fourth instruction sent by the second server.
Wherein the fourth instruction is to indicate that the upgrade file has been received by the second server.
In the embodiment of the invention, the first server and the second server to be upgraded are positioned in the tree-shaped network structure in which the nodes are communicated with each other, so that the first server can send the upgrade file to each second server to be upgraded, thereby realizing remote batch upgrade of the servers, saving the complicated operation of manual upgrade, improving the upgrade efficiency and saving the upgrade cost. In addition, in the embodiment of the present invention, before the first server sends the upgrade file to the second server, the first server may also send a connection test file to the second server to test the communication connection state between the first server and the second server, and send the upgrade file to the second server again under the condition that the communication connection state between the first server and the second server is normal, so as to reduce the risk of upgrade failure caused by abnormal communication connection between the first server and the second server.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
According to still another aspect of an embodiment of the present invention, there is provided an electronic apparatus including: a processor and a memory storing a program or instructions executable on the processor, the program or instructions when executed by the processor implementing the steps of the server upgrade method as described above.
According to still another aspect of embodiments of the present invention, there is provided a computer-readable storage medium storing a computer program implementing the server upgrade method as described above.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be 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 terminal 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 terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.

Claims (10)

1. A server upgrading method is applied to a first server, and is characterized by comprising the following steps:
determining at least one second server needing to be upgraded; wherein the first server and the at least one second server are in a tree network structure;
acquiring an upgrade file of the second server;
sending a connection test file to the second server based on the connection relation between the first server and the second server in the tree network structure; the connection test file is used for testing whether the first server and the second server are in a connection state;
under the condition that the first server receives a first instruction sent by the second server, the upgrading file is sent to the second server, so that the second server can be upgraded according to the upgrading file; wherein the first instruction is to indicate that the connection test file has been received.
2. The server upgrading method according to claim 1, wherein after the first server receives the first instruction sent by the second server, the server upgrading method further comprises:
sending a restart test instruction to the second server; the restart test instruction is used for testing the restart function of the second server;
the sending the upgrade file to the second server includes:
under the condition that the first server receives a first instruction and a second instruction sent by the second server, sending the upgrade file to the second server; the second instruction is used for indicating that the second server is restarted successfully after receiving the restart test instruction.
3. The server upgrade method according to claim 1, wherein after the sending the upgrade file to the second server, the server upgrade method further comprises:
under the condition of receiving a third instruction sent by the second server, sending a restarting instruction to the second server; wherein the third instruction is to indicate that the upgrade file has been received by the second server.
4. The server upgrade method according to claim 1, wherein the sending the upgrade file to the second server includes:
sending the upgrade file to the second server every preset time until a fourth instruction sent by the second server is received; wherein the fourth instruction is to indicate that the upgrade file has been received by the second server.
5. A server upgrading apparatus applied to a first server, the apparatus comprising:
the determining module is used for determining at least one second server needing to be upgraded; wherein the first server and the at least one second server are in a tree network structure;
the acquisition module is used for acquiring the upgrade file of the second server;
a first sending module, configured to send a connection test file to the second server based on a connection relationship between the first server and the second server in the tree network structure; the connection test file is used for testing whether the first server and the second server are in a connection state;
the second sending module is used for sending the upgrade file to the second server under the condition that the first server receives a first instruction sent by the second server, so that the second server can be upgraded according to the upgrade file; wherein the first instruction is to indicate that the connection test file has been received.
6. The server upgrading apparatus according to claim 5, further comprising:
the third sending module is used for sending a restart test instruction to the second server; the restart test instruction is used for testing the restart function of the second server;
the second sending module includes:
the first sending submodule is used for sending the upgrade file to the second server under the condition that the first server receives the first instruction and the second instruction sent by the second server; the second instruction is used for indicating the second server to successfully restart after receiving the restart test instruction.
7. The server upgrading apparatus according to claim 5, further comprising:
the fourth sending module is used for sending a restarting instruction to the second server under the condition of receiving a third instruction sent by the second server; wherein the third instruction is to indicate that the upgrade file has been received by the second server.
8. The server upgrading apparatus according to claim 5, wherein the first sending module further comprises:
the second sending submodule is used for sending the upgrade file to the second server every preset time until a fourth instruction sent by the second server is received; wherein the fourth instruction is to indicate that the upgrade file has been received by the second server.
9. An electronic device comprising a processor and a memory, the memory storing a program or instructions executable on the processor, the program or instructions when executed by the processor implementing the steps of the server upgrade method according to any one of claims 1 to 4.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program that implements the server upgrade method according to any one of claims 1 to 4.
CN202210334364.8A 2022-03-31 2022-03-31 Server upgrading method and device Pending CN114826914A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210334364.8A CN114826914A (en) 2022-03-31 2022-03-31 Server upgrading method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210334364.8A CN114826914A (en) 2022-03-31 2022-03-31 Server upgrading method and device

Publications (1)

Publication Number Publication Date
CN114826914A true CN114826914A (en) 2022-07-29

Family

ID=82531748

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210334364.8A Pending CN114826914A (en) 2022-03-31 2022-03-31 Server upgrading method and device

Country Status (1)

Country Link
CN (1) CN114826914A (en)

Similar Documents

Publication Publication Date Title
US8719386B2 (en) System and method for providing configuration synchronicity
CN110865842B (en) OTA upgrading method and equipment
CN111367545A (en) Terminal upgrading method and device, server, terminal equipment and readable storage medium
CN105808274A (en) Software upgrading method and system as well as corresponding clients and servers
CN109117155A (en) A kind of method and apparatus of edition upgrading
CN109391673A (en) A kind of method, system and the terminal device of management update file
US11740886B2 (en) Algorithm update method and apparatus
CN111277628B (en) Server configuration method and device and service server
CN111683114A (en) Method and device for upgrading equipment program, terminal equipment and storage medium
CN115514667A (en) Access service processing method, system, device, electronic equipment and storage medium
CN110365524B (en) Mirror image upgrading method and system for server node firmware
CN113590169B (en) Application deployment method, application deployment system, and computer-readable storage medium
CN104104701A (en) Online service configuration updating method and system
CN111698281B (en) Resource downloading method and device, electronic equipment and storage medium
CN110912725A (en) Configuration method and configuration device of OpenFlow virtual switch
CN115129574A (en) Code testing method and device
CN113238864A (en) Python-based MongoDB cluster deployment method and system
CN111708552A (en) Server program upgrading method and device, terminal equipment and storage medium
CN114826914A (en) Server upgrading method and device
CN115766439A (en) KVM device batch upgrading method and device and electronic device
CN111399866A (en) VNF (virtual network function) packet updating method and device
KR20080092487A (en) Client synchronization system and method for the same
CN111506328A (en) Service upgrading method and device, electronic equipment and storage medium
CN113946275A (en) Cache management method and device and storage medium
CN112148463B (en) Business process control method and device

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