CN113904932A - Modularized server upgrading method and device, electronic equipment and medium - Google Patents

Modularized server upgrading method and device, electronic equipment and medium Download PDF

Info

Publication number
CN113904932A
CN113904932A CN202111152467.4A CN202111152467A CN113904932A CN 113904932 A CN113904932 A CN 113904932A CN 202111152467 A CN202111152467 A CN 202111152467A CN 113904932 A CN113904932 A CN 113904932A
Authority
CN
China
Prior art keywords
module
server
upgraded
assemblies
servers
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
CN202111152467.4A
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.)
Xiamen Yealink Network Technology Co Ltd
Original Assignee
Xiamen Yealink Network 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 Xiamen Yealink Network Technology Co Ltd filed Critical Xiamen Yealink Network Technology Co Ltd
Priority to CN202111152467.4A priority Critical patent/CN113904932A/en
Publication of CN113904932A publication Critical patent/CN113904932A/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
    • 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/0889Techniques to speed-up the configuration process
    • 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/10Protocols in which an application is distributed across nodes in the network
    • 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/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles

Landscapes

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

Abstract

The invention discloses a modularized server upgrading method, a modularized server upgrading device, electronic equipment and a medium, wherein the method comprises the following steps: generating configuration files of the servers according to the information reported by the server cluster; analyzing each module component in the server to be upgraded according to the configuration file and the installation package, and sending each module package in the installation package to each corresponding module component; according to the service running state of the module component, executing installation or after the service is finished, installing; and simultaneously monitoring the installation process of each server and feeding back the upgrade condition of each server to an administrator. The invention can utilize the module package decompressed by the installation package to upgrade the module components in parallel under the condition of executing the server upgrade, thereby solving the problem that the servers are upgraded individually in turn.

Description

Modularized server upgrading method and device, electronic equipment and medium
Technical Field
The invention belongs to the technical field of computers, and particularly relates to a modularized server upgrading method, a modularized server upgrading device, electronic equipment and a modularized server upgrading medium.
Background
The server is one of computers, provides calculation or application services for other clients in a network, and has high-speed CPU computing capacity, long-time reliable operation, strong external data throughput capacity and better expansibility. For services with high requirements on continuity and availability, a server cluster system is generally adopted to process the services, but the server cluster system needs to update the system after running for a period of time.
At present, most servers are deployed by server clusters, updating and upgrading are carried out according to a server node mode, after one node is upgraded, another node is upgraded, and when the server clusters are upgraded, an administrator generally copies a complete upgrade installation package to each server, and conducts installation package decompression and upgrading on each server.
However, in the prior art, the problems that the server node is slow to upgrade and cannot realize parallel upgrade exist, the whole upgrade task is not arranged, and different upgrade strategies are not adopted for the influence condition of the service in the upgrade process.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a modularized server upgrading method, solve the problem of service halt in the process of upgrading the server and realize parallel upgrading of the server by utilizing a modularized upgrading mode.
In order to solve the technical problem, the invention provides a modularized server upgrading method, which comprises the following steps:
generating configuration files of the servers according to the information reported by the server cluster;
analyzing and acquiring each module component of each server, which needs to be upgraded, according to the configuration file of each server and a preset installation package, and generating a task list; the preset installation package comprises a plurality of module packages, and each module package corresponds to each module assembly needing to be upgraded one by one;
based on the task list, respectively and simultaneously sending the module packages corresponding to the module assemblies to the corresponding servers, so that the servers synchronously detect the module assemblies to be upgraded and simultaneously install all the module assemblies to be upgraded which are detected not to be in a service running state;
and simultaneously monitoring the installation process of each server and feeding back the upgrade condition of each server to an administrator.
Further, the generating a configuration file to which each server belongs according to the information reported by the server cluster specifically includes:
and respectively generating a configuration file to which each server belongs according to the information reported by the server cluster, wherein the configuration file records the IP information, the module component and the server state in each server.
Further, analyzing and acquiring each module component that each server needs to be upgraded according to the configuration file to which each server belongs and a preset installation package, and generating a task list, specifically:
and analyzing the module assemblies contained in each server according to the configuration files of the servers, selecting the module assemblies corresponding to each module assembly one by one from the module assemblies contained in each server according to a preset installation package, using the module assemblies as the module assemblies needing to be upgraded of each server, and marking the IP information and the server state of the server to which each module assembly belongs, thereby generating a task list.
Further, the module packages corresponding to the module components are simultaneously sent to the corresponding servers based on the task list, so that the servers synchronously detect the module components to be upgraded and simultaneously install all the module components to be upgraded which are not detected to be in the service running state, specifically:
respectively and simultaneously sending the module packages corresponding to the module assemblies to the servers corresponding to the module assemblies based on the task list so as to enable the servers receiving the module packages to synchronously detect whether the module assemblies to be upgraded are in a service running state;
if the module component to be upgraded is in a service operation state, enabling the module packet to enter a waiting state; if the module package is overtime, the module component to be upgraded fails to be upgraded and is fed back to the server to which the module component belongs of the administrator to fail to be upgraded; if the module packet is not overtime, the module component to be upgraded is installed;
if the module component to be upgraded is not in a service running state, recording the module component to be upgraded;
and simultaneously installing all the recorded module components to be upgraded which are not in the service running state.
Further, the monitoring of the installation process of each server and the feedback of the upgrade condition of each server to the administrator specifically include:
simultaneously monitoring whether the module assembly needing to be upgraded and installed is upgraded successfully or not for each server;
if the module component fails to be upgraded, the module component is fed back to the administrator that the server to which the module component belongs fails to be upgraded;
and if the module assemblies are upgraded successfully, the server is upgraded successfully and is fed back to all the module assemblies which are upgraded successfully and the server to which the module assemblies belong by the administrator.
Meanwhile, the invention also provides a modularized server upgrading device, which comprises: the system comprises a configuration file unit, a task list unit, an installation execution unit and a monitoring feedback unit;
the configuration file unit is used for generating a configuration file to which each server belongs according to information reported by the server cluster;
the task list unit is used for analyzing and acquiring each module component of each server needing to be upgraded according to the configuration file of each server and a preset installation package, and generating a task list; the preset installation package comprises a plurality of module packages, and each module package corresponds to each module assembly needing to be upgraded one by one;
the installation execution unit is used for respectively and simultaneously sending the module packages corresponding to the module assemblies to the corresponding servers based on the task list so that the servers synchronously detect the module assemblies to be upgraded and simultaneously install all the module assemblies to be upgraded which are detected not to be in the service running state;
the monitoring feedback unit is used for monitoring the installation process of each server and feeding back the upgrade condition of each server to an administrator.
Further, the task list unit is configured to analyze and obtain each module component that each server needs to be upgraded according to a configuration file to which each server belongs and a preset installation package, and generate a task list, specifically:
and analyzing the module assemblies contained in each server according to the configuration files of the servers, selecting the module assemblies corresponding to each module assembly one by one from the module assemblies contained in each server according to a preset installation package, using the module assemblies as the module assemblies needing to be upgraded of each server, and marking the IP information and the server state of the server to which each module assembly belongs, thereby generating a task list.
Further, the installation execution unit sends the module packages corresponding to the module assemblies to the corresponding servers simultaneously based on the task list, so that the servers synchronously detect the module assemblies to be upgraded and simultaneously install all the module assemblies to be upgraded which are not detected to be in the service running state, specifically:
respectively and simultaneously sending the module packages corresponding to the module assemblies to the servers corresponding to the module assemblies based on the task list so as to enable the servers receiving the module packages to synchronously detect whether the module assemblies to be upgraded are in a service running state;
if the module component to be upgraded is in a service operation state, enabling the module packet to enter a waiting state; if the module package is overtime, the module component to be upgraded fails to be upgraded and is fed back to the server to which the module component belongs of the administrator to fail to be upgraded; if the module packet is not overtime, the module component to be upgraded is installed;
if the module component to be upgraded is not in a service running state, recording the module component to be upgraded;
and simultaneously installing all the recorded module components to be upgraded which are not in the service running state.
An embodiment of the present invention further provides an electronic device, where the electronic device includes:
a memory storing at least one instruction;
and the processor executes the instructions stored in the memory to realize the modularized server upgrading method provided by the invention.
The embodiment of the invention also provides a computer-readable storage medium, wherein at least one instruction is stored in the computer-readable storage medium, and the at least one instruction is executed by a processor in the electronic device to implement the modular server upgrading method provided by the invention.
The embodiment of the application has the following beneficial effects:
according to the modularized server upgrading method, the modularized server upgrading device, the electronic equipment and the medium, when an installation package is received, the corresponding module assemblies in each server can be extracted and a task list can be generated according to the module packages to be upgraded in the installation package, so that the module assemblies which do not need to be upgraded in each server can continue to operate normally, the module assemblies which need to be upgraded are installed after entering a task-free operation state, and the server is updated without being overhauled; meanwhile, the module packages are utilized to synchronously upgrade the module assemblies to be upgraded of all the servers immediately after receiving the module packages in a task-free state, and the module packages do not influence the module assemblies except the module assemblies, so that the parallel upgrade among all the servers is realized, and the upgrade speed of the servers is improved.
Drawings
FIG. 1 is a flow chart illustrating steps of a method for upgrading a modular server according to an embodiment of the present invention;
FIG. 2 is a block diagram of a design scenario of an embodiment of a method for upgrading a modular server according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating a module component executing installation judgment in an embodiment of a modular server upgrading method according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating a server upgrade method applied to an audio and video conference cluster system according to an embodiment of the present invention;
fig. 5 is a structural diagram of a modular server upgrading apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions in the embodiments of the present invention will be described in further detail below with reference to the accompanying drawings. It should be understood that the embodiments described herein are only a few embodiments of the present invention, not all embodiments, and are not intended to limit the present invention. Other embodiments, which can be derived by those skilled in the art from the embodiments given herein without any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a method for upgrading a modular server according to an embodiment of the present invention includes steps S101 to S104, where the steps are as follows:
step S101: and generating a configuration file to which each server belongs according to the information reported by the server cluster.
The server cluster includes a plurality of servers, each server including a plurality of modular components operating on the corresponding server.
Further, according to the information reported by the server cluster, a configuration file to which each server belongs is respectively generated, and the configuration file records the IP information, the module component and the server state in each server.
Step S102: analyzing and acquiring each module component of each server, which needs to be upgraded, according to the configuration file of each server and a preset installation package, and generating a task list; the preset installation package comprises a plurality of module packages, and each module package corresponds to each module assembly needing to be upgraded one by one.
Further, according to the configuration file to which each server belongs, the module assemblies contained in each server are analyzed, according to a preset installation package, the module assemblies corresponding to each module package one to one are selected from the module assemblies contained in each server and serve as the module assemblies to be upgraded of each server, and the IP information and the server state of the server to which each module assembly belongs are labeled, so that a task list is generated.
The preset installation package is uploaded by an administrator, and after the preset installation package is decompressed, the module assemblies corresponding to the module packages one by one can be selected from the configuration files of the servers.
The task list comprises each module component needing to be upgraded in each server and a corresponding version number thereof, and IP information and server states of servers to which each module component belongs; the server state includes, but is not limited to, online or offline state, CPU, memory, network card traffic, and the like.
In a specific implementation process, an administrator can add any module package to the installation package manually, and can also modify the module component to be upgraded by screening and removing the module packages in the installation package.
Step S103: and respectively and simultaneously sending the module packages corresponding to the module assemblies to corresponding servers based on the task list so as to enable the servers to synchronously detect the module assemblies to be upgraded and simultaneously install all the module assemblies to be upgraded which are detected not to be in the service running state.
Further, based on the task list, respectively and simultaneously sending the module packages corresponding to the module assemblies to the servers corresponding to the module assemblies, so that the servers receiving the module packages synchronously detect whether the module assemblies to be upgraded are in a service operation state; if the module component to be upgraded is in a service operation state, enabling the module packet to enter a waiting state; if the module package is overtime, the module component to be upgraded fails to be upgraded and is fed back to the server to which the module component belongs of the administrator to fail to be upgraded; if the module packet is not overtime, the module component to be upgraded is installed; if the module component to be upgraded is not in a service running state, recording the module component to be upgraded; and simultaneously installing all the recorded module components to be upgraded which are not in the service running state.
Step S104: and simultaneously monitoring the installation process of each server and feeding back the upgrade condition of each server to an administrator.
Furthermore, monitoring whether the module assembly needing to be upgraded and installed is upgraded successfully or not for each server; if the module component fails to be upgraded, the module component is fed back to the administrator that the server to which the module component belongs fails to be upgraded; and if the module assemblies are upgraded successfully, feeding back all the module assemblies which are upgraded successfully and the server to which the module assemblies belong to the manager.
In the specific implementation process, an administrator can manually reinstall the module assembly failed in upgrading or execute version rollback; and when all the module assemblies are installed successfully, feeding back to an administrator to finish the whole upgrading process.
Referring to fig. 2, a block diagram of a design scheme of an embodiment of a method for upgrading a modular server according to the embodiment of the present invention is shown.
The server cluster 206 comprises a plurality of servers, the communication among the servers is based on a Linux system, each server is connected with the connection agent unit 205, when the server cluster is started, all the servers report information to the connection agent unit 205, the process of reporting the information is reported in real time and is operated all the time after the server cluster is started; the reported information comprises IP information of each server, all module components running in each server and server states; the server state includes, but is not limited to, online or offline, CPU, memory, network card traffic, etc.
The connection broker unit 205 reports the collected report information of the server to the update control unit 201 synchronously, and then backups all the information in the server cluster information unit. Meanwhile, the update control unit 201 also sends the report information to the module component counting unit 202, the module component counting unit counts all module components currently running in each server, and sends the count information back to the update control unit 201, the module components are classified according to the server to which each module component belongs, and the IP address and the module running state of the server to which each module component belongs are added, so as to generate a configuration file.
The configuration file also includes a default port number, containing information for all servers, IP, and user password.
The information reporting process of the server cluster is carried out in real time after the server cluster is started, regardless of whether the server upgrading operation is carried out or not.
When the server cluster needs to be upgraded and updated, an administrator uploads an installation package of server upgrade through the webpage front end 200, the installation package compresses the module packages which are needed and corresponding to the upgrade of each module component, and the installation operation can be directly performed on the module components of the server. The administrator may manually select when to initiate the upgrade, and which server or module component to upgrade. Meanwhile, the administrator can also know the configuration file generated by the update control unit 201 in real time through the front end of the web page.
After the administrator uploads the installation package, the update control unit 201 decompresses the installation package to obtain each module package, and after decompression, informs the task list unit 203 to screen out module components in the configuration files which can be in one-to-one correspondence with each module package according to the configuration files and each module package at the moment when the administrator uploads the installation package, generates a task list, and returns the task list to the update control unit 201; the task list comprises each module component needing to be upgraded in each server and the corresponding version number thereof, and the IP information and the server state of the server to which each module component belongs. The task list here can be manually intervened and modified by the administrator through the web front end 200.
The update control unit 201 is configured to upload each module package to the server using the scp command in the Linux system. The remote instruction execution is used for executing the Linux basic command, and can execute remote server command execution, task execution and the like.
The update control unit 201 starts to copy and send the module package to the server of the module component corresponding to each module package via the connection proxy unit 205 according to the task list, and detects the running state of each module component in each current server corresponding to the configuration file according to the update control unit 201.
Referring to fig. 3, for a server with a module component in a service running state, a module packet enters a waiting state first; if the waiting time is out, the module component fails to be upgraded, the server feeds back the upgrade failure to the update control unit 201, and then the upgrade failure is sent to the webpage front end 200; if the waiting time is not overtime and the module package is successfully installed and upgraded, the server feeds back the successfully upgraded module assembly, the version number thereof and the server information to the update control unit 201, and then sends the module assembly, the version number and the server information to the webpage front end 200.
For a server in which the module component is in a non-service operation state, the update control unit 201 immediately sends an instruction to execute the module package installation. After the update control unit 201 sends an execution installation instruction to each server, the module packages are installed in the servers where the module packages are located, and the corresponding module components are installed at the same time, so that parallel installation between the servers is realized.
The update control unit 201 monitors the installation process of each server according to the real-time report information of the server cluster. If the module components in the server are successfully installed, the server feeds back the successfully upgraded module components, the version numbers thereof and the server information to the update control unit 201, and then sends the module components and the version numbers thereof and the server information to the webpage front end 200; if the module components in the server fail to be installed, the server feeds back the upgrade failure to the update control unit 201, and then sends the upgrade failure to the web page front end 200.
For the audio call service protocol, after the current service operation is finished, each module component in each server needing to be upgraded needs to be installed, and the updating control unit only needs to monitor and wait for the completion of the upgrade of the server and perform feedback.
As shown in fig. 4, this embodiment further provides a server upgrade flowchart of an audio/video conference cluster system, which includes the following steps S401 to S413, where each step is specifically as follows:
step S401: and the server cluster reports the information to the connection agent unit.
Step S402: and the connection agent unit uploads the reported information of the server cluster to the updating control unit.
Step S403: the updating control unit uploads the reported information of the server cluster to the module component statistical unit and generates a configuration file; wherein, IP information, module components and server states in each server are recorded.
Step S404: and recording the reported information of the server cluster in real time.
Step S405: and the administrator uploads the installation package to the updating control unit through the front end of the webpage.
Step S406: and the updating control unit calls the module components operated by the servers recorded in the module component counting unit.
Step S407: the updating module component informs the task list unit to generate a task list according to the module components operated by the servers and the module packages decompressed by the installation packages; the task list comprises each module component needing to be upgraded in each server and the corresponding version number thereof, and the IP information and the server state of the server to which each module component belongs.
Step S408: the task list unit returns the executable task list to the update control unit.
Step S409: and the updating control unit uploads the module packet to a corresponding server according to the task list and issues an installation instruction.
Step S410: the server cluster executes installation, and enters a waiting state when the module component is in a task running state; if the waiting is not overtime, the installation is executed after the waiting is finished; if the waiting time is overtime, the module component is directly fed back to the front end of the webpage after the upgrading failure.
Step S411: and the updating control unit monitors the installation process of each module assembly to be upgraded.
Step S412: and the server which finishes upgrading and the server which fails to upgrade feed back the upgrading result to the updating control unit.
Step S413: the update control unit feeds back the update result of each server to be updated to the front end of the web page, and the modular server update of the embodiment is completed, thereby completing the server update of the audio and video conference cluster system of the embodiment.
Meanwhile, referring to fig. 5, a block diagram of a modular server upgrade apparatus according to an embodiment of the present invention is shown, which may specifically include the following units.
A configuration file unit 501, configured to generate a configuration file to which each server belongs according to information reported by the server cluster.
A task list unit 502, configured to analyze and obtain each module component that each server needs to be upgraded according to a configuration file to which each server belongs and a preset installation package, and generate a task list; the preset installation package comprises a plurality of module packages, and each module package corresponds to each module assembly needing to be upgraded one by one.
The installation execution unit 503 is configured to send the module packages corresponding to the module assemblies to the corresponding servers simultaneously based on the task list, so that the servers perform synchronous detection on the module assemblies to be upgraded respectively, and simultaneously execute installation on all the module assemblies to be upgraded which are detected not to be in the service running state.
And a monitoring feedback unit 504, configured to monitor an installation process of each server and feed back the upgrade status of each server to an administrator.
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.
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 can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining hardware and software 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.
An embodiment of the present invention further provides an electronic device, where the electronic device includes: a memory storing at least one instruction; and the processor executes the instructions stored in the memory to realize the modularized server upgrading method provided by the invention. 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. 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 execution of the instructions by the processor of the computer or other programmable data processing terminal produces means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The embodiment of the invention also provides a computer-readable storage medium, wherein at least one instruction is stored in the computer-readable storage medium, and the at least one instruction is executed by a processor in the electronic device to implement the modular server upgrading method provided by the invention. 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 series of operational steps are 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.
The embodiment of the invention has the following effects:
the embodiment of the invention provides a modularized server upgrading method, and the method is characterized in that the module packages of all module assemblies in the server to be upgraded are installed, so that the server does not need to decompress the whole installation package and then screen the module packages required by the server, meanwhile, after all the module assemblies can simultaneously receive the module packages, the module assemblies in a non-service execution state can be installed at once, the parallel installation among the servers is realized, the time for upgrading the server is reduced, and the module assemblies in the service execution state are subjected to waiting and delayed installation, so that the whole server installation and upgrading process is smoother.
The foregoing is a preferred embodiment of the present invention, and it should be noted that it would be apparent to those skilled in the art that various modifications and enhancements can be made without departing from the principles of the invention, and such modifications and enhancements are also considered to be within the scope of the invention.

Claims (10)

1. A modular server upgrade method, comprising:
generating configuration files of the servers according to the information reported by the server cluster;
analyzing and acquiring each module component of each server, which needs to be upgraded, according to the configuration file of each server and a preset installation package, and generating a task list; the preset installation package comprises a plurality of module packages, and each module package corresponds to each module assembly needing to be upgraded one by one;
based on the task list, respectively and simultaneously sending the module packages corresponding to the module assemblies to the corresponding servers, so that the servers synchronously detect the module assemblies to be upgraded and simultaneously install all the module assemblies to be upgraded which are detected not to be in a service running state;
and simultaneously monitoring the installation process of each server and feeding back the upgrade condition of each server to an administrator.
2. The method for upgrading a modular server according to claim 1, wherein the generating of the configuration file to which each server belongs according to the information reported by the server cluster specifically includes:
and respectively generating a configuration file to which each server belongs according to the information reported by the server cluster, wherein the configuration file records the IP information, the module component and the server state in each server.
3. The method for upgrading a modular server according to claim 2, wherein each module component of each server that needs to be upgraded is analyzed and obtained according to the configuration file to which each server belongs and a preset installation package, and a task list is generated, specifically:
and analyzing the module assemblies contained in each server according to the configuration files of the servers, selecting the module assemblies corresponding to each module assembly one by one from the module assemblies contained in each server according to a preset installation package, using the module assemblies as the module assemblies needing to be upgraded of each server, and marking the IP information and the server state of the server to which each module assembly belongs, thereby generating a task list.
4. The method according to claim 3, wherein the task list-based method is configured to simultaneously send the module packages corresponding to the module assemblies to the corresponding servers, so that the servers synchronously detect the module assemblies to be upgraded and simultaneously install all the module assemblies to be upgraded that are not detected to be in the service running state, specifically:
respectively and simultaneously sending the module packages corresponding to the module assemblies to the servers corresponding to the module assemblies based on the task list so as to enable the servers receiving the module packages to synchronously detect whether the module assemblies to be upgraded are in a service running state;
if the module component to be upgraded is in a service operation state, enabling the module packet to enter a waiting state; if the module package is overtime, the module component to be upgraded fails to be upgraded and is fed back to the server to which the module component belongs of the administrator to fail to be upgraded; if the module packet is not overtime, the module component to be upgraded is installed;
if the module component to be upgraded is not in a service running state, recording the module component to be upgraded;
and simultaneously installing all the recorded module components to be upgraded which are not in the service running state.
5. The method for upgrading a modular server according to claim 4, wherein the monitoring of the installation process of each server and the feedback of the upgrade status of each server to an administrator are specifically as follows:
simultaneously monitoring whether the module assembly needing to be upgraded and installed is upgraded successfully or not for each server;
if the module component fails to be upgraded, the module component is fed back to the administrator that the server to which the module component belongs fails to be upgraded;
and if the module assemblies are upgraded successfully, the server is upgraded successfully and is fed back to all the module assemblies which are upgraded successfully and the server to which the module assemblies belong by the administrator.
6. A modular server upgrade apparatus, comprising: the system comprises a configuration file unit, a task list unit, an installation execution unit and a monitoring feedback unit;
the configuration file unit is used for generating a configuration file to which each server belongs according to information reported by the server cluster;
the task list unit is used for analyzing and acquiring each module component of each server needing to be upgraded according to the configuration file of each server and a preset installation package, and generating a task list; the preset installation package comprises a plurality of module packages, and each module package corresponds to each module assembly needing to be upgraded one by one;
the installation execution unit is used for respectively and simultaneously sending the module packages corresponding to the module assemblies to the corresponding servers based on the task list so that the servers synchronously detect the module assemblies to be upgraded and simultaneously install all the module assemblies to be upgraded which are detected not to be in the service running state;
the monitoring feedback unit is used for monitoring the installation process of each server and feeding back the upgrade condition of each server to an administrator.
7. The modular server upgrading apparatus according to claim 6, wherein the task list unit is configured to analyze and obtain each module component that each server needs to be upgraded according to the configuration file to which each server belongs and a preset installation package, and generate a task list, and specifically:
and analyzing the module assemblies contained in each server according to the configuration files of the servers, selecting the module assemblies corresponding to each module assembly one by one from the module assemblies contained in each server according to a preset installation package, using the module assemblies as the module assemblies needing to be upgraded of each server, and marking the IP information and the server state of the server to which each module assembly belongs, thereby generating a task list.
8. The modular server upgrading apparatus according to claim 6, wherein the installation execution unit sends the module packages corresponding to the module assemblies to the corresponding servers simultaneously based on the task list, so that the servers synchronously detect the module assemblies to be upgraded, and simultaneously install all the module assemblies to be upgraded which are detected not to be in the service running state, specifically:
respectively and simultaneously sending the module packages corresponding to the module assemblies to the servers corresponding to the module assemblies based on the task list so as to enable the servers receiving the module packages to synchronously detect whether the module assemblies to be upgraded are in a service running state;
if the module component to be upgraded is in a service operation state, enabling the module packet to enter a waiting state; if the module package is overtime, the module component to be upgraded fails to be upgraded and is fed back to the server to which the module component belongs of the administrator to fail to be upgraded; if the module packet is not overtime, the module component to be upgraded is installed;
if the module component to be upgraded is not in a service running state, recording the module component to be upgraded;
and simultaneously installing all the recorded module components to be upgraded which are not in the service running state.
9. An electronic device, characterized in that the electronic device comprises:
a memory storing at least one instruction;
a processor executing instructions stored in the memory to implement a modular server upgrade method as claimed in any one of claims 1 to 5.
10. A computer-readable storage medium characterized by: the computer-readable storage medium has stored therein at least one instruction that is executable by a processor in an electronic device to implement a modular server upgrade method as claimed in any one of claims 1 to 5.
CN202111152467.4A 2021-09-29 2021-09-29 Modularized server upgrading method and device, electronic equipment and medium Pending CN113904932A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111152467.4A CN113904932A (en) 2021-09-29 2021-09-29 Modularized server upgrading method and device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111152467.4A CN113904932A (en) 2021-09-29 2021-09-29 Modularized server upgrading method and device, electronic equipment and medium

Publications (1)

Publication Number Publication Date
CN113904932A true CN113904932A (en) 2022-01-07

Family

ID=79189210

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111152467.4A Pending CN113904932A (en) 2021-09-29 2021-09-29 Modularized server upgrading method and device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN113904932A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114979132A (en) * 2022-04-13 2022-08-30 京东科技信息技术有限公司 Cluster component state detection method and device

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103281373A (en) * 2013-05-30 2013-09-04 烽火通信科技股份有限公司 Home gateway intelligent upgrading device and upgrading method
US20140096125A1 (en) * 2012-09-28 2014-04-03 Wal-Mart Stores, Inc. Systems and methods for installing, managing, and provisioning applications
US20140304697A1 (en) * 2011-12-01 2014-10-09 Tencent Technology (Shenzhen) Company Limited Method and system for upgrading software
CN105743933A (en) * 2014-12-08 2016-07-06 Tcl集团股份有限公司 Router module updating method and system
CN106201552A (en) * 2016-07-22 2016-12-07 北京智能管家科技有限公司 A kind of method for upgrading software, client, server and system
CN106339248A (en) * 2016-10-09 2017-01-18 大道网络(上海)股份有限公司 Remote software upgrading method and remote software upgrading system
WO2017088388A1 (en) * 2015-11-25 2017-06-01 乐视控股(北京)有限公司 Method and system for upgrading sdk of application
US20180089130A1 (en) * 2016-09-23 2018-03-29 Sheshaprasad G. Krishnapura Selectively upgradeable disaggregated server
CN108768726A (en) * 2018-05-30 2018-11-06 郑州云海信息技术有限公司 A kind of upgrade method and device of server cluster
CN108958762A (en) * 2017-08-02 2018-12-07 北京视联动力国际信息技术有限公司 A kind of upgrade method and device of software
CN111147272A (en) * 2018-11-06 2020-05-12 厦门雅迅网络股份有限公司 Single server and multi-server operation platform upgrading method
CN113094064A (en) * 2021-03-03 2021-07-09 深圳市晨北科技有限公司 Gateway software module upgrading method, device, equipment and storage medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140304697A1 (en) * 2011-12-01 2014-10-09 Tencent Technology (Shenzhen) Company Limited Method and system for upgrading software
US20140096125A1 (en) * 2012-09-28 2014-04-03 Wal-Mart Stores, Inc. Systems and methods for installing, managing, and provisioning applications
CN103281373A (en) * 2013-05-30 2013-09-04 烽火通信科技股份有限公司 Home gateway intelligent upgrading device and upgrading method
CN105743933A (en) * 2014-12-08 2016-07-06 Tcl集团股份有限公司 Router module updating method and system
WO2017088388A1 (en) * 2015-11-25 2017-06-01 乐视控股(北京)有限公司 Method and system for upgrading sdk of application
CN106201552A (en) * 2016-07-22 2016-12-07 北京智能管家科技有限公司 A kind of method for upgrading software, client, server and system
US20180089130A1 (en) * 2016-09-23 2018-03-29 Sheshaprasad G. Krishnapura Selectively upgradeable disaggregated server
CN106339248A (en) * 2016-10-09 2017-01-18 大道网络(上海)股份有限公司 Remote software upgrading method and remote software upgrading system
CN108958762A (en) * 2017-08-02 2018-12-07 北京视联动力国际信息技术有限公司 A kind of upgrade method and device of software
CN108768726A (en) * 2018-05-30 2018-11-06 郑州云海信息技术有限公司 A kind of upgrade method and device of server cluster
CN111147272A (en) * 2018-11-06 2020-05-12 厦门雅迅网络股份有限公司 Single server and multi-server operation platform upgrading method
CN113094064A (en) * 2021-03-03 2021-07-09 深圳市晨北科技有限公司 Gateway software module upgrading method, device, equipment and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
MIROSLAV KAMENSKÝ; EVA KRÁLIKOVÁ; JOZEFA ČERVEŇOVÁ; MARTIN MIERKA: "Modular Education System of Remote Access Applications Employed for Filter Response Measurement", 2019 12TH INTERNATIONAL CONFERENCE ON MEASUREMENT *
吴昌龙;王晶;沈奇威;: "一种Web服务器集群管理平台的设计方案", 电信技术, no. 06 *
郑荣纬;杨焱;: "信息系统自动升级功能模块化设计", 医疗卫生装备, no. 08 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114979132A (en) * 2022-04-13 2022-08-30 京东科技信息技术有限公司 Cluster component state detection method and device
CN114979132B (en) * 2022-04-13 2024-05-17 京东科技信息技术有限公司 Cluster component state detection method and device

Similar Documents

Publication Publication Date Title
EP3386150B1 (en) Terminal failure processing method, device and system
CN111147322B (en) Test system and method for micro service architecture of 5G core network
CN107508722B (en) Service monitoring method and device
CN105005521A (en) Test method and apparatus
US20100228839A1 (en) Efficient on-demand provisioning of servers for specific software sets
WO2022127504A1 (en) Network element management method and apparatus, and storage medium
CN112350854B (en) Flow fault positioning method, device, equipment and storage medium
CN109918089B (en) Software deployment method and system
CN111190755B (en) Application program function exception handling method and device
CN111324417A (en) Kubernetes cluster component control method and device, electronic equipment and medium
CN111913884A (en) Distributed test method, device, equipment, system and readable storage medium
CN114996006A (en) Server arrangement configuration execution method, device, equipment and medium
CN113904932A (en) Modularized server upgrading method and device, electronic equipment and medium
CN111651320A (en) High-concurrency connection method and system
CN107426012B (en) Fault recovery method and device based on super-fusion architecture
CN113238849A (en) Timed task processing method and device, storage medium and electronic equipment
CN109728957B (en) Interactive operation and maintenance method and device
CN111510480A (en) Request sending method and device and first server
CN105487921A (en) Task stack management method and apparatus
CN115269269A (en) Drill method, device, backup server, medium, server cluster and system
CN114546758A (en) WebRPA operation and maintenance method and system based on Chrome plug-in
CN114816866A (en) Fault processing method and device, electronic equipment and storage medium
CN110795225B (en) Method and system for executing scheduling task
CN115687036A (en) Log collection method and device and log system
CN110716826A (en) Cloud disk upgrading and scheduling method, cloud host, scheduling device and system

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