WO2016019725A1 - Software upgrade management method, device, system and computer storage medium - Google Patents

Software upgrade management method, device, system and computer storage medium Download PDF

Info

Publication number
WO2016019725A1
WO2016019725A1 PCT/CN2015/074338 CN2015074338W WO2016019725A1 WO 2016019725 A1 WO2016019725 A1 WO 2016019725A1 CN 2015074338 W CN2015074338 W CN 2015074338W WO 2016019725 A1 WO2016019725 A1 WO 2016019725A1
Authority
WO
WIPO (PCT)
Prior art keywords
utilization
bandwidth
terminals
file server
terminal
Prior art date
Application number
PCT/CN2015/074338
Other languages
French (fr)
Chinese (zh)
Inventor
吴水生
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016019725A1 publication Critical patent/WO2016019725A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • 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

Definitions

  • the present invention relates to network management technologies in the field of wireless communications, and in particular, to a software upgrade management method, device, system, and computer storage medium.
  • the network management system includes: a terminal, a network management server, and a file server;
  • the software upgrade function is an important function in the network management system, and the basic principle of the software upgrade function is: the network management server first sends a software upgrade download to the terminal (Download After receiving the Download command, the terminal interacts with the file server to download the upgrade file of the software, and completes the software upgrade process.
  • the network management server triggers the software upgrade in a timed manner, firstly, the download command is concurrently sent to the first terminal to the 100th terminal, and the first terminal to the 100th terminal are simultaneously activated to perform software upgrade with the file server; 100 terminals are When a terminal completes the software upgrade, the network management server sends a Download command to the 101st terminal, and starts the 101st terminal to interact with the file server to perform software upgrade.
  • the software upgrade management scheme in the existing network management system has at least the following defects:
  • the number of concurrently upgraded terminals cannot be adjusted according to the file server network load and the resource load, thereby reducing the resource utilization rate of the file server and reducing the upgrade efficiency of the terminal.
  • embodiments of the present invention are expected to provide a software upgrade management method, device, system, and computer storage medium.
  • An embodiment of the present invention provides a software upgrade management method, where the method includes:
  • the number of concurrently upgraded terminals is adjusted according to the network bandwidth information and host resource information of the received file server.
  • the network bandwidth information includes a maximum download bandwidth of each terminal connected to the file server, and a number of terminals currently concurrently upgraded by the file server;
  • the host resource information includes a memory utilization of the file server, and a central Processor CPU utilization.
  • the number of terminals that are concurrently upgraded according to the network bandwidth information and the host resource information of the received file server includes:
  • the number of concurrently upgraded terminals is adjusted according to the memory usage, CPU utilization, and bandwidth utilization of the file server.
  • the number of terminals that are concurrently upgraded according to the memory usage, CPU utilization, and bandwidth utilization of the file server includes:
  • the CPU utilization rate, the bandwidth utilization rate, and the stress test the function relationship between the memory utilization rate, the CPU utilization rate, the bandwidth utilization rate, and the number of concurrently upgraded terminals is obtained;
  • the bandwidth utilization is compared with a preset bandwidth utilization threshold. If the bandwidth utilization is greater than the bandwidth utilization threshold, the number of concurrently upgraded terminals is reduced according to the function relationship and according to a set step size. Until the bandwidth utilization is less than or equal to the bandwidth utilization threshold; or, according to the file server, the memory utilization, the CPU utilization, the bandwidth utilization, and Through the stress test, the memory utilization, CPU utilization, bandwidth utilization and the number of concurrently upgraded terminals are obtained.
  • the CPU utilization rate, the bandwidth utilization rate, and the stress test the function relationship between the memory utilization rate, the CPU utilization rate, the bandwidth utilization rate, and the number of concurrently upgraded terminals is obtained;
  • the bandwidth utilization is compared with a preset bandwidth utilization threshold. If the bandwidth utilization is less than or equal to the bandwidth utilization threshold, the CPU utilization is compared with a preset CPU utilization threshold. If the CPU utilization is less than or equal to the CPU utilization threshold, comparing the memory utilization with a preset memory utilization threshold; if the memory utilization is greater than the memory utilization threshold, maintaining the current The number of terminals that are concurrently upgraded; or,
  • the CPU utilization rate, the bandwidth utilization rate, and the stress test the function relationship between the memory utilization rate, the CPU utilization rate, the bandwidth utilization rate, and the number of concurrently upgraded terminals is obtained;
  • the bandwidth utilization is compared with a preset bandwidth utilization threshold. If the bandwidth utilization is less than or equal to the bandwidth utilization threshold, the CPU utilization is compared with a preset CPU utilization threshold. If the CPU usage is less than or equal to the CPU utilization threshold, compare the memory utilization with a preset memory utilization threshold; if the memory utilization is less than or equal to the memory utilization threshold, The function relationship increases the number of concurrently upgraded terminals according to the set step size until the memory utilization is greater than the memory utilization threshold.
  • the terminal when the software upgrade is triggered by the timing mode, the terminal is upgraded and managed according to the number of terminals that are concurrently upgraded after the adjustment, including:
  • N is a natural number
  • the software upgrade command is sent to the N+1 terminal, and the N+1 terminal is started to interact with the file server to perform software upgrade; wherein the timing period is greater than the total upgrade time of all the terminals.
  • the terminal when the software is triggered by the event triggering mode, the terminal is upgraded and managed according to the number of terminals that are concurrently upgraded after the adjustment, including:
  • the software upgrade instruction is sent to the terminal, and the software upgrade instruction is used to instruct the terminal to interact with the file server to perform software upgrade.
  • An embodiment of the present invention provides a software upgrade management method, where the method includes:
  • the network bandwidth information includes a maximum download bandwidth of each terminal connected to itself, and a number of terminals currently concurrently upgraded; the host resource information includes its own memory utilization rate and its own CPU utilization rate.
  • the method further includes:
  • the re-acquired network bandwidth information and host resource information are sent to the network management server.
  • the method further includes:
  • the maximum download bandwidth is allocated for each terminal connected to itself.
  • the embodiment of the present invention provides a network management server, where the network management server includes: an adjustment module and an upgrade management module;
  • the adjustment module is configured to adjust the number of concurrently upgraded terminals according to the network bandwidth information and the host resource information of the received file server when the software upgrade is triggered;
  • the upgrade management module is configured to perform software upgrade management on the terminal according to the number of terminals that are concurrently upgraded after the adjustment.
  • the network bandwidth information includes a maximum download bandwidth of each terminal connected to the file server, and a number of terminals currently concurrently upgraded by the file server;
  • the host resource information includes a memory utilization of the file server, and a central Processor CPU utilization.
  • the adjustment module is configured to:
  • the adjustment module is configured to:
  • the upgrade management module is configured to:
  • N is a natural number
  • the software upgrade is sent to the N+1 terminal.
  • the N+1 terminal is started to interact with the file server to perform software upgrade; wherein, the timing period is greater than the total upgrade time of all terminals.
  • the upgrade management module is configured to:
  • the software upgrade instruction is sent to the terminal, and the software upgrade instruction is used to instruct the terminal to interact with the file server to perform software upgrade.
  • An embodiment of the present invention provides a file server, where the file server includes: an obtaining module and a sending module;
  • the acquiring module is configured to acquire its own network bandwidth information and host resource information
  • the sending module is configured to send the network bandwidth information and the host resource information to a network management server, where the network bandwidth information and the host resource information are used to indicate that the network management server is configured according to the network bandwidth information. And the number of terminals that are concurrently upgraded by the host resource information.
  • the network bandwidth information includes a maximum download bandwidth of each terminal connected to itself, and a number of terminals currently concurrently upgraded; the host resource information includes its own memory utilization rate and its own CPU utilization rate.
  • the acquiring module is configured to acquire its own network bandwidth information and host resource information according to a set time interval or a set frequency manner;
  • the sending module is further configured to send the re-acquired network bandwidth information and host resource information to the network management server.
  • the file server further includes:
  • An allocation module configured to allocate a maximum download bandwidth for each terminal connected to itself.
  • An embodiment of the present invention further provides a software upgrade management system, where the system includes: a terminal, Network management server, file server; among them,
  • the terminal is configured to perform software upgrade with the file server 102 when receiving the software upgrade instruction;
  • the network management server is configured to adjust the number of concurrently upgraded terminals according to the network bandwidth information and the host resource information of the received file server when the software upgrade is triggered; and perform software upgrade management on the terminal according to the number of concurrently upgraded terminals;
  • the file server is configured to obtain its own network bandwidth information and host resource information, and send the network bandwidth information and host resource information to the network management server.
  • the embodiment of the invention further provides a computer storage medium, the computer storage medium comprising a set of instructions, when executed, causing at least one processor to execute the software upgrade management method described above.
  • the software upgrade management method, the device, the system, and the computer storage medium provided by the embodiment of the present invention when the software upgrade is triggered, the number of concurrently upgraded terminals is adjusted according to the resource information of the received file server;
  • the terminal performs software upgrade management.
  • the embodiment of the present invention can adjust the number of concurrently upgraded terminals according to the received resource information of the file server, thereby improving resource utilization of the file server and improving the upgrade efficiency of the terminal.
  • FIG. 1 is a schematic structural diagram of a software upgrade management system according to an embodiment of the present invention.
  • FIG. 2 is a schematic flowchart of an implementation process of a software upgrade management method according to an embodiment of the present invention
  • FIG. 3 is a schematic flowchart of a method for implementing a method for adjusting a number of concurrently upgraded terminals according to resource information according to an embodiment of the present invention
  • FIG. 4 is a schematic flowchart of an implementation process of another software upgrade management method according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a network management server according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a file server according to an embodiment of the present invention.
  • the embodiment of the present invention is applied to a software upgrade management system, which mainly includes: a terminal, a network management server, and a file server; in the terminal upgrade management system, when the network management server triggers a software upgrade, according to the received file server.
  • the network bandwidth information and the host resource information adjust the number of concurrently upgraded terminals; perform software upgrade management on the terminal according to the number of concurrently upgraded terminals; thus, not only can improve the resource utilization of the file server, but also improve the upgrade efficiency of the terminal.
  • the upgrade management system includes: a terminal 100, a network management server 101, and a file server 102;
  • the terminal 100 is configured to perform software upgrade with the file server 102 when receiving the software upgrade instruction;
  • the network management server 101 is configured to adjust the number of concurrently upgraded terminals according to the network bandwidth information and the host resource information of the received file server when the software upgrade is triggered; and perform software upgrade management on the terminal according to the number of concurrently upgraded terminals. ;
  • the file server 102 is configured to acquire its own network bandwidth information and host resource information; and send the network bandwidth information and host resource information to the network management server 101;
  • the network bandwidth information includes a maximum download bandwidth of each terminal connected to the file server 102, and a number of terminals currently concurrently upgraded by the file server 102.
  • the host resource information includes memory usage of the file server 102. Rate, central processing unit (CPU, Central Processing Unit) utilization;
  • the file server 102 is further configured to allocate a maximum download bandwidth for each connected terminal.
  • step S200 how to specifically according to the network bandwidth information of the received file server and the host resource letter The number of terminals that adjust concurrent upgrades is described in detail in step S200 below.
  • step S201 how to perform software upgrade management on the terminal according to the number of terminals that are concurrently upgraded after adjustment is described in detail in step S201 below.
  • the terminal upgrade management system there is only one network management server 101, which may have multiple terminals 100 and multiple file servers 102; and multiple file servers 102 constitute a set of mutually independent computer clusters interconnected by a high-speed network.
  • the computer cluster can be thought of as a stand-alone file server 102 and managed in a single system mode, providing software download services for large-scale terminal groups.
  • the file server 102 may be an external device independent of the network management server 101, that is, the file server 102 is deployed separately from the network management server 101, such that the file server 102 is configured only as
  • the terminal 100 provides a software download service, which does not affect the function of the network management server 101 and is not affected by the network management server 101; that is, the independent file server 102 allocates a fixed network bandwidth and does not occupy network management.
  • the network bandwidth of the server 101 when the terminal 100 interacts with the independent file server 102 for software upgrade, does not affect the normal interaction between the network management server 101 and other devices; the file server 102 may also be operated by the network management server 101.
  • the low-level software system of the system that is, the logical function module inside the network management server 101, the internal logical function module may be referred to as a download service providing module.
  • the network management server 101 may trigger a software upgrade of the terminal in a timed manner, or may trigger a software upgrade of the terminal 100 by waiting for the terminal 100 to report the user terminal device WAN management protocol (TR069) event triggering manner;
  • TR069 user terminal device WAN management protocol
  • the software upgrade download command is sent to the terminal 100 that needs to be upgraded, and the download command is used to instruct the terminal 100 to interact with the file server 102. software upgrade.
  • the file server 102 obtains its own network bandwidth information and host resource information, and sends the network bandwidth information and the host resource information to the network management server 101;
  • the network management server 101 first presets the number of terminals that are initially concurrently upgraded according to the actual situation; then, according to the received network bandwidth information and the host resource information, the number of concurrently upgraded terminals is adjusted according to the number of terminals that are concurrently upgraded after the adjustment.
  • the terminal performs software upgrade management. Specifically, two implementation methods are available:
  • the number of concurrently upgraded terminals is adjusted according to the received network bandwidth information and the host resource information, and then, according to the adjusted number of concurrently upgraded terminals N, the Download command is concurrently issued.
  • the first terminal 100 to the Nth terminal 100 are activated, and the first terminal 100 to the Nth terminal 100 are simultaneously interacted with the file server 102 to perform software upgrade; wherein N is a natural number; when one of the N terminals completes the software upgrade And sending a Download command to the N+1 terminal 100, and initiating the N+1 terminal 100 to interact with the file server 102 to perform software upgrade; wherein, the timing period is greater than a total upgrade time of all terminals in the upgrade management system;
  • the number of concurrently upgraded terminals is adjusted according to the received network bandwidth information and the host resource information, and then the file server 102 is currently concurrently upgraded. The number is compared with the number of terminals that are concurrently upgraded after the adjustment. If the number of terminals that are concurrently upgraded by the file server 102 is less than or equal to the number of terminals that are concurrently upgraded, the download command is sent to the terminal 100 to indicate the terminal 100. The software server is upgraded with the file server 102. If the number of concurrently upgraded terminals of the file server 102 is greater than the threshold number of the concurrently upgraded terminals, the process ends.
  • a software upgrade management method provided by an embodiment of the present invention is applied to a network management server, and specific implementation steps include:
  • Step S200 When the network management server triggers the software upgrade, according to the received file server
  • the network bandwidth information and the host resource information adjust the number of concurrently upgraded terminals
  • the network management server presets the terminal range to be upgraded, the download path of the target software version, and the software upgrade triggering mode; wherein the terminal range may be a set of terminal devices conforming to a set of rules, and the download of the target software version
  • the path is a download path to a target software version on the file server
  • the software upgrade trigger mode may trigger a software upgrade in an active manner.
  • the network management server triggers the software upgrade of the terminal in a timed manner;
  • the mode triggers the software upgrade.
  • the network management server triggers the software upgrade of the terminal by using an event triggering manner of waiting for the terminal to send an Inform message.
  • the network bandwidth information includes a maximum download bandwidth of each terminal connected to the file server, and a number of terminals currently concurrently upgraded by the file server;
  • the host resource information includes memory utilization and CPU utilization of the file server.
  • Step S200a According to the memory utilization, CPU utilization, and bandwidth utilization of the file server, and through a stress test, the function relationship between the memory utilization, the CPU utilization, the bandwidth utilization, and the number of concurrently upgraded terminals is obtained;
  • Step S200b determining whether the bandwidth utilization is greater than the bandwidth utilization threshold, and if the bandwidth utilization is greater than the bandwidth utilization threshold, proceeding to step S200c; if the bandwidth utilization is less than or equal to the bandwidth utilization Rate threshold, then proceeds to step S200d;
  • the bandwidth utilization threshold, the memory utilization threshold, and the CPU utilization threshold may be preset according to the actual network load of the file server and the host resource load;
  • Step S200c End the processing flow according to the function relationship and reduce the number of concurrently upgraded terminals according to the set step size until the bandwidth utilization ratio is less than or equal to the bandwidth utilization threshold.
  • Step S200d determining whether the CPU utilization is greater than the CPU utilization threshold. If the CPU utilization is greater than the CPU utilization threshold, proceeding to step S200g; if the CPU utilization is less than or equal to the CPU utilization Rate threshold, then proceeds to step S200e;
  • Step S200e determining whether the memory utilization is greater than the memory utilization threshold, and if the memory utilization is greater than the memory utilization threshold, proceeding to step S200g; if the memory utilization is less than or equal to the memory utilization Rate threshold, then step S200f;
  • Step S200f increasing the number of concurrently upgraded terminals according to the function relationship and according to the set step size until the memory utilization is greater than the memory utilization threshold;
  • Step S200g The number of terminals currently concurrently upgraded is maintained, and the process flow is ended.
  • the adjusted step size can be preset according to the actual network load of the file server or the host resource load.
  • the comparison order of the memory utilization, the CPU utilization, and the bandwidth utilization of the file server is not performed. Specifically limited.
  • Step S201 Perform software upgrade management on the terminal according to the number of terminals that are concurrently upgraded after the adjustment.
  • the terminal is upgraded and managed according to the number of terminals that are concurrently upgraded after the adjustment.
  • the specific implementation manner is as follows:
  • the N software upgrade instructions are sent to the first terminal to the Nth terminal respectively, and the first terminal to the Nth terminal are started to interact with the file server 102 to perform software upgrade;
  • N is a natural number;
  • the software upgrade instruction is sent to the N+1 terminal, and the N+1 terminal is started to interact with the file server to perform software upgrade; wherein, the timing period is greater than all the terminals. Upgrade time.
  • the terminal is upgraded and managed according to the number of concurrently upgraded terminals.
  • the specific implementation manner is as follows:
  • the download command is sent to the terminal, where the download command is used to instruct the terminal to receive the Download command.
  • the network management server a response to the Download Response message, and performing software upgrade with the file server; after the terminal software upgrade is completed, returning a download completion TransferComplete message to the network management server, so that the network management server is configured according to the The TransferComplete message determines that the terminal has completed a software upgrade;
  • the embodiment of the present invention is applicable to a scenario in which a large number of terminals need to be upgraded and the upgrade time is limited, and the software management of the large-scale terminal group can be quickly and efficiently performed.
  • the network management server triggers the software upgrade, according to the received The number of terminals that are currently concurrently upgraded by the file server, the maximum download bandwidth allocated by each terminal, the memory utilization rate, and the number of terminals that are upgraded and upgraded by the CPU utilization are upgraded according to the number of terminals that are concurrently upgraded.
  • the resource utilization of the file server reduces the high failure rate of the terminal due to waiting for the software upgrade.
  • the network management server takes into account the CPU utilization and memory utilization of the file server, and can effectively solve the problem.
  • the file server is down due to excessive CPU utilization or excessive memory utilization of the file server.
  • a software upgrade management method is also provided in the file server, and the specific implementation steps include:
  • Step S400 Obtaining own network bandwidth information and host resource information
  • the network bandwidth information includes a maximum download bandwidth of each terminal connected to itself, and a number of terminals currently concurrently upgraded;
  • the host resource information includes a memory of the file server Utilization rate, CPU utilization;
  • the network bandwidth information and the host resource information can be obtained according to the set time interval or the set frequency mode, so as to monitor the network bandwidth information and the host resource information in real time; if the file server is a cluster, the average value is obtained.
  • Memory utilization CPU utilization.
  • the maximum download bandwidth can be allocated to each terminal connected to itself according to the minimum network bandwidth of the terminal connected to itself and the support capability of the terminal, so as to limit the speed of each terminal connected to itself.
  • Step S401 Send the network bandwidth information and the host resource information to the network management server, where the network bandwidth information and the host resource information are used to indicate that the network management server is based on the network bandwidth information and the host Resource information adjusts the number of terminals that are concurrently upgraded.
  • the re-acquired network bandwidth information and the host resource information are sent to the network management server.
  • the file server allocates a maximum download bandwidth to each terminal connected to itself according to the minimum network bandwidth of the terminal connected to the terminal and the support capability of the terminal, so that each terminal connected to the terminal can be performed. And the file server can dynamically monitor the network load and the host resource load, and acquire the maximum download bandwidth, the number of concurrently upgraded terminals, the memory utilization rate, and the CPU utilization rate of each terminal connected to the terminal in real time. And each terminal connected to itself is allocated a maximum download bandwidth, the number of terminals that are currently concurrently upgraded, the memory utilization, and the CPU utilization are sent to the network management server according to the set time interval or the set frequency, so that the network management is performed. The server allocates the maximum number of downloading bandwidths, the number of terminals that are currently concurrently upgraded, the memory utilization rate, and the CPU utilization to the number of concurrently upgraded terminals according to the terminal connected to the file server.
  • an embodiment of the present invention provides a network management server and a file service. Because the network management server and the file server solve the problem in principle and method, the implementation of the device can be referred to the implementation of the foregoing method, and the repeated description is not repeated.
  • the network management server provided by the embodiment of the present invention includes: an adjustment module 500, an upgrade management module 501, where
  • the adjustment module 500 is configured to adjust the number of concurrently upgraded terminals according to the network bandwidth information and the host resource information of the received file server when the software upgrade is triggered.
  • the network bandwidth information includes a maximum download bandwidth of each terminal connected to the file server, and a number of terminals currently concurrently upgraded by the file server;
  • the host resource information includes a memory usage of the file server, and a CPU. Utilization rate.
  • the upgrade management module 501 is configured to perform software upgrade management on the terminal according to the number of terminals that are concurrently upgraded after the adjustment.
  • the adjustment module 500 is specifically configured to:
  • the number of concurrently upgraded terminals is adjusted according to the memory usage, CPU utilization, and bandwidth utilization of the file server.
  • the adjustment module 500 is specifically configured to:
  • Preset bandwidth utilization threshold, memory utilization threshold, and CPU utilization threshold are preset bandwidth utilization threshold, memory utilization threshold, and CPU utilization threshold
  • the CPU utilization rate, the bandwidth utilization rate, and the stress test the function relationship between the memory utilization rate, the CPU utilization rate, the bandwidth utilization rate, and the number of concurrently upgraded terminals is obtained;
  • the CPU utilization is greater than the CPU utilization threshold, the number of terminals that are currently concurrently upgraded is maintained; if the CPU utilization is less than or equal to the CPU utilization threshold, the memory utilization and the memory utilization are used. Rate threshold for comparison;
  • the number of terminals that are currently concurrently upgraded is maintained; if the memory utilization is less than or equal to the memory utilization threshold, according to the function relationship and according to the set step size Increase the number of concurrently upgraded terminals until the memory utilization is greater than the memory utilization threshold.
  • the upgrade management module 501 is specifically configured to:
  • N is a natural number
  • the software upgrade command is sent to the N+1 terminal, and the N+1 terminal is started to interact with the file server to perform software upgrade; wherein the timing period is greater than the total upgrade time of all the terminals.
  • the upgrade management module 501 is specifically configured to:
  • the software upgrade instruction is sent to the terminal, and the software upgrade instruction is used to instruct the terminal to interact with the file server to perform software upgrade.
  • the adjustment module 500 and the upgrade management module 501 may each be a central processing unit (CPU), a microprocessor (MPU), and a digital signal processor located in the network management server. (DSP), or field programmable gate array (FPGA) implementation.
  • CPU central processing unit
  • MPU microprocessor
  • DSP digital signal processor located in the network management server.
  • FPGA field programmable gate array
  • the file server provided by the embodiment of the present invention includes: an obtaining module 600 and a sending module 601;
  • the obtaining module 600 is configured to obtain its own network bandwidth information and host resource information.
  • the sending module 601 is configured to send the network bandwidth information and the host resource information to a network management server, where the network bandwidth information and the host resource information are used to indicate that the network management server is configured according to the network bandwidth.
  • the network bandwidth information includes a maximum download bandwidth of each terminal connected to itself, and a number of terminals currently concurrently upgraded; the host resource information includes a self memory utilization rate and a self CPU usage.
  • the acquiring module 600 is configured to acquire network bandwidth information and host resource information according to a set time interval or a set frequency manner.
  • the sending module 601 is further configured to send the re-acquired network bandwidth information and host resource information to the network management server.
  • the file server further includes:
  • the allocation module 602 is configured to allocate a maximum download bandwidth for each terminal connected to itself.
  • the obtaining module 600, the sending module 601, and the allocating module 602 may all be programmable by a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP), or a field processor located in a file server.
  • CPU central processing unit
  • MPU microprocessor
  • DSP digital signal processor
  • FPGA Gate array
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
  • an embodiment of the present invention further provides a computer storage medium, where the computer storage medium includes a set of instructions, when executed, causing at least one processor to perform software upgrade management applied to the network management server. Method, or perform the above application to the file Software upgrade management method in the server.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Disclosed in the present invention is a software upgrade management method, comprising: when the software upgrade is triggered, adjusting the number of concurrent upgrade terminals according to received network bandwidth information and host resource information of a file server; performing the software upgrade management on the terminals according to the adjusted number of the concurrent upgrade terminals. The present invention also provides a software upgrade management method, network management server, file server, software upgrade management system and computer storage medium at the same time.

Description

一种软件升级管理方法、设备、系统及计算机存储介质Software upgrade management method, device, system and computer storage medium 技术领域Technical field
本发明涉及无线通信领域网络管理技术,尤其涉及一种软件升级管理方法、设备、系统及计算机存储介质。The present invention relates to network management technologies in the field of wireless communications, and in particular, to a software upgrade management method, device, system, and computer storage medium.
背景技术Background technique
通常,网络管理系统包括:终端、网络管理服务器、文件服务器;软件升级功能是网络管理系统中的一项重要功能,软件升级功能的基本原理是:网络管理服务器先向终端发送软件升级下载(Download)指令;终端收到所述Download指令后,与文件服务器交互下载软件的升级文件,完成软件的升级过程。Generally, the network management system includes: a terminal, a network management server, and a file server; the software upgrade function is an important function in the network management system, and the basic principle of the software upgrade function is: the network management server first sends a software upgrade download to the terminal (Download After receiving the Download command, the terminal interacts with the file server to download the upgrade file of the software, and completes the software upgrade process.
现有网络管理系统中,由于需要升级的终端数量较多,因此可以在网络管理服务器中预设并发升级的终端数量N,所述并发升级的终端数量N是固定不变的,例如N=100,即:网络管理服务器可以同时只支持100个终端进行并发软件升级。所述网络管理服务器通过定时方式触发软件升级时,首先,并发Download指令给第1终端至第100终端,启动第1终端至第100终端同时与所述文件服务器交互进行软件升级;100个终端中某个终端完成软件升级时,所述网络管理服务器向第101终端发送Download指令,启动第101终端与所述文件服务器交互进行软件升级。In the existing network management system, the number of terminals that need to be upgraded is preset in the network management server, and the number N of concurrently upgraded terminals is fixed, for example, N=100. That is, the network management server can support only 100 terminals for concurrent software upgrades at the same time. When the network management server triggers the software upgrade in a timed manner, firstly, the download command is concurrently sent to the first terminal to the 100th terminal, and the first terminal to the 100th terminal are simultaneously activated to perform software upgrade with the file server; 100 terminals are When a terminal completes the software upgrade, the network management server sends a Download command to the 101st terminal, and starts the 101st terminal to interact with the file server to perform software upgrade.
发明人在实现本发明的过程中,发现现有网络管理系统中的软件升级管理方案至少存在以下缺陷:In the process of implementing the present invention, the inventor found that the software upgrade management scheme in the existing network management system has at least the following defects:
现有技术中,不能根据文件服务器网络负荷和资源负荷调整并发升级的终端数量,从而降低了利用文件服务器的资源利用率,也降低了终端的升级效率。 In the prior art, the number of concurrently upgraded terminals cannot be adjusted according to the file server network load and the resource load, thereby reducing the resource utilization rate of the file server and reducing the upgrade efficiency of the terminal.
发明内容Summary of the invention
有鉴于此,本发明实施例期望提供一种软件升级管理方法、设备、系统及计算机存储介质。In view of this, embodiments of the present invention are expected to provide a software upgrade management method, device, system, and computer storage medium.
本发明实施例提供了一种软件升级管理方法,该方法包括:An embodiment of the present invention provides a software upgrade management method, where the method includes:
触发软件升级时,根据收到的文件服务器的网络带宽信息及主机资源信息调整并发升级的终端数量;When the software upgrade is triggered, the number of concurrently upgraded terminals is adjusted according to the network bandwidth information and host resource information of the received file server.
根据调整后并发升级的终端数量对终端进行软件升级管理。Perform software upgrade management on the terminal according to the number of terminals that are concurrently upgraded after adjustment.
上述方案中,所述网络带宽信息包括与文件服务器连接的每个终端的最大下载带宽、所述文件服务器当前并发升级的终端数量;所述主机资源信息包括所述文件服务器的内存利用率、中央处理器CPU利用率。In the above solution, the network bandwidth information includes a maximum download bandwidth of each terminal connected to the file server, and a number of terminals currently concurrently upgraded by the file server; the host resource information includes a memory utilization of the file server, and a central Processor CPU utilization.
上述方案中,所述根据收到的文件服务器的网络带宽信息及主机资源信息调整并发升级的终端数量,包括:In the above solution, the number of terminals that are concurrently upgraded according to the network bandwidth information and the host resource information of the received file server includes:
根据所述文件服务器当前并发升级的终端数量以及每个终端的最大下载带宽确定所述文件服务器的带宽利用率;Determining bandwidth utilization of the file server according to the number of terminals currently concurrently upgraded by the file server and the maximum download bandwidth of each terminal;
根据所述文件服务器的内存利用率、CPU利用率、带宽利用率调整并发升级的终端数量。The number of concurrently upgraded terminals is adjusted according to the memory usage, CPU utilization, and bandwidth utilization of the file server.
上述方案中,所述根据所述文件服务器的内存利用率、CPU利用率、带宽利用率调整并发升级的终端数量,包括:In the above solution, the number of terminals that are concurrently upgraded according to the memory usage, CPU utilization, and bandwidth utilization of the file server includes:
根据所述文件服务器的内存利用率、CPU利用率、带宽利用率,并通过压力测试得出内存利用率、CPU利用率、带宽利用率与并发升级的终端数量的函数关系;According to the memory utilization of the file server, the CPU utilization rate, the bandwidth utilization rate, and the stress test, the function relationship between the memory utilization rate, the CPU utilization rate, the bandwidth utilization rate, and the number of concurrently upgraded terminals is obtained;
将所述带宽利用率与预设的带宽利用率阈值进行对比,若所述带宽利用率大于所述带宽利用率阈值,则根据所述函数关系并按照设定步长减小并发升级的终端数量直至所述带宽利用率小于等于所述带宽利用率阈值;或者,根据所述文件服务器的内存利用率、CPU利用率、带宽利用率,并 通过压力测试得出内存利用率、CPU利用率、带宽利用率与并发升级的终端数量的函数关系;The bandwidth utilization is compared with a preset bandwidth utilization threshold. If the bandwidth utilization is greater than the bandwidth utilization threshold, the number of concurrently upgraded terminals is reduced according to the function relationship and according to a set step size. Until the bandwidth utilization is less than or equal to the bandwidth utilization threshold; or, according to the file server, the memory utilization, the CPU utilization, the bandwidth utilization, and Through the stress test, the memory utilization, CPU utilization, bandwidth utilization and the number of concurrently upgraded terminals are obtained.
将所述带宽利用率与预设的带宽利用率阈值进行对比,若所述带宽利用率小于等于所述带宽利用率阈值,则将所述CPU利用率与预设的CPU利用率阈值进行对比;若所述CPU利用率大于所述CPU利用率阈值,则保持当前并发升级的终端数量;或者,Comparing the bandwidth utilization with a preset bandwidth utilization threshold, and if the bandwidth utilization is less than or equal to the bandwidth utilization threshold, comparing the CPU utilization with a preset CPU utilization threshold; If the CPU utilization is greater than the CPU utilization threshold, the number of terminals currently concurrently upgraded is maintained; or
根据所述文件服务器的内存利用率、CPU利用率、带宽利用率,并通过压力测试得出内存利用率、CPU利用率、带宽利用率与并发升级的终端数量的函数关系;According to the memory utilization of the file server, the CPU utilization rate, the bandwidth utilization rate, and the stress test, the function relationship between the memory utilization rate, the CPU utilization rate, the bandwidth utilization rate, and the number of concurrently upgraded terminals is obtained;
将所述带宽利用率与预设的带宽利用率阈值进行对比,若所述带宽利用率小于等于所述带宽利用率阈值,则将所述CPU利用率与预设的CPU利用率阈值进行对比,若所述CPU利用率小于等于所述CPU利用率阈值,则将所述内存利用率与预设的内存利用率阈值进行对比;若所述内存利用率大于所述内存利用率阈值,则保持当前并发升级的终端数量;或者,The bandwidth utilization is compared with a preset bandwidth utilization threshold. If the bandwidth utilization is less than or equal to the bandwidth utilization threshold, the CPU utilization is compared with a preset CPU utilization threshold. If the CPU utilization is less than or equal to the CPU utilization threshold, comparing the memory utilization with a preset memory utilization threshold; if the memory utilization is greater than the memory utilization threshold, maintaining the current The number of terminals that are concurrently upgraded; or,
根据所述文件服务器的内存利用率、CPU利用率、带宽利用率,并通过压力测试得出内存利用率、CPU利用率、带宽利用率与并发升级的终端数量的函数关系;According to the memory utilization of the file server, the CPU utilization rate, the bandwidth utilization rate, and the stress test, the function relationship between the memory utilization rate, the CPU utilization rate, the bandwidth utilization rate, and the number of concurrently upgraded terminals is obtained;
将所述带宽利用率与预设的带宽利用率阈值进行对比,若所述带宽利用率小于等于所述带宽利用率阈值,则将所述CPU利用率与预设的CPU利用率阈值进行对比,若所述CPU利用率小于等于所述CPU利用率阈值,则将所述内存利用率与预设的内存利用率阈值进行对比;若所述内存利用率小于等于所述内存利用率阈值,则根据所述函数关系并按照设定步长增加并发升级的终端数量直至所述内存利用率大于所述内存利用率阈值。The bandwidth utilization is compared with a preset bandwidth utilization threshold. If the bandwidth utilization is less than or equal to the bandwidth utilization threshold, the CPU utilization is compared with a preset CPU utilization threshold. If the CPU usage is less than or equal to the CPU utilization threshold, compare the memory utilization with a preset memory utilization threshold; if the memory utilization is less than or equal to the memory utilization threshold, The function relationship increases the number of concurrently upgraded terminals according to the set step size until the memory utilization is greater than the memory utilization threshold.
上述方案中,通过定时方式触发软件升级时,所述根据调整后并发升级的终端数量对终端进行升级管理,包括: In the above solution, when the software upgrade is triggered by the timing mode, the terminal is upgraded and managed according to the number of terminals that are concurrently upgraded after the adjustment, including:
按照调整后并发升级的终端数量N,并发N条软件升级指令分别给第一终端至第N终端,启动第一终端至第N终端同时与所述文件服务器交互进行软件升级;其中,N为自然数;According to the number N of concurrently upgraded terminals, concurrently sending N software upgrade instructions to the first terminal to the Nth terminal respectively, starting the first terminal to the Nth terminal and simultaneously interacting with the file server to perform software upgrade; wherein N is a natural number ;
N个终端中某个终端完成软件升级时,向第N+1终端发送软件升级指令,启动第N+1终端与所述文件服务器交互进行软件升级;其中,定时周期大于所有终端总共的升级时间。When a terminal of the N terminals completes the software upgrade, the software upgrade command is sent to the N+1 terminal, and the N+1 terminal is started to interact with the file server to perform software upgrade; wherein the timing period is greater than the total upgrade time of all the terminals. .
上述方案中,通过事件触发方式触发软件升级时,所述根据调整后并发升级的终端数量对终端进行升级管理,包括:In the above solution, when the software is triggered by the event triggering mode, the terminal is upgraded and managed according to the number of terminals that are concurrently upgraded after the adjustment, including:
若所述文件服务器当前并发升级的终端数量小于等于调整后并发升级的终端数量,则向终端发送软件升级指令,所述软件升级指令用于指示所述终端与所述文件服务器交互进行软件升级;或者,If the number of terminals that are concurrently upgraded by the file server is less than or equal to the number of terminals that are concurrently upgraded, the software upgrade instruction is sent to the terminal, and the software upgrade instruction is used to instruct the terminal to interact with the file server to perform software upgrade. or,
若所述文件服务器当前并发升级的终端数量大于所述调整后并发升级的终端数量,则结束处理流程。If the number of terminals currently concurrently upgraded by the file server is greater than the number of terminals that are concurrently upgraded after the adjustment, the process ends.
本发明实施例提供了一种软件升级管理方法,该方法包括:An embodiment of the present invention provides a software upgrade management method, where the method includes:
获取自身的网络带宽信息及主机资源信息;Obtaining its own network bandwidth information and host resource information;
将所述网络带宽信息及所述主机资源信息发送给网络管理服务器,所述网络带宽信息及所述主机资源信息用于指示所述网络管理服务器根据所述网络带宽信息及所述主机资源信息调整并发升级的终端数量。Transmitting the network bandwidth information and the host resource information to the network management server, where the network bandwidth information and the host resource information are used to instruct the network management server to adjust according to the network bandwidth information and the host resource information The number of terminals that are concurrently upgraded.
上述方案中,所述网络带宽信息包括与自身连接的每个终端的最大下载带宽、当前并发升级的终端数量;所述主机资源信息包括自身内存利用率、自身CPU利用率。In the above solution, the network bandwidth information includes a maximum download bandwidth of each terminal connected to itself, and a number of terminals currently concurrently upgraded; the host resource information includes its own memory utilization rate and its own CPU utilization rate.
上述方案中,所述方法还包括:In the above solution, the method further includes:
按照设定时间间隔或设定频率方式获取自身的网络带宽信息及主机资源信息;Obtaining its own network bandwidth information and host resource information according to a set time interval or a set frequency mode;
将重新获取的网络带宽信息及主机资源信息发送给网络管理服务器。 The re-acquired network bandwidth information and host resource information are sent to the network management server.
上述方案中,所述方法还包括:In the above solution, the method further includes:
为与自身连接的每个终端分配最大下载带宽。The maximum download bandwidth is allocated for each terminal connected to itself.
本发明实施例提供了一种网络管理服务器,该网络管理服务器包括:调整模块、升级管理模块;其中,The embodiment of the present invention provides a network management server, where the network management server includes: an adjustment module and an upgrade management module;
所述调整模块,配置为触发软件升级时,根据收到的文件服务器的网络带宽信息及主机资源信息调整并发升级的终端数量;The adjustment module is configured to adjust the number of concurrently upgraded terminals according to the network bandwidth information and the host resource information of the received file server when the software upgrade is triggered;
所述升级管理模块,配置为根据调整后并发升级的终端数量对终端进行软件升级管理。The upgrade management module is configured to perform software upgrade management on the terminal according to the number of terminals that are concurrently upgraded after the adjustment.
上述方案中,所述网络带宽信息包括与文件服务器连接的每个终端的最大下载带宽、所述文件服务器当前并发升级的终端数量;所述主机资源信息包括所述文件服务器的内存利用率、中央处理器CPU利用率。In the above solution, the network bandwidth information includes a maximum download bandwidth of each terminal connected to the file server, and a number of terminals currently concurrently upgraded by the file server; the host resource information includes a memory utilization of the file server, and a central Processor CPU utilization.
上述方案中,所述调整模块配置为:In the above solution, the adjustment module is configured to:
根据所述文件服务器当前并发升级的终端数量以及每个终端的最大下载带宽确定所述文件服务器的带宽利用率;并根据所述文件服务器的内存利用率、CPU利用率、带宽利用率调整并发升级的终端数量。Determining the bandwidth utilization of the file server according to the number of terminals currently concurrently upgraded by the file server and the maximum download bandwidth of each terminal; and adjusting concurrent upgrade according to the memory utilization, CPU utilization, and bandwidth utilization of the file server. The number of terminals.
上述方案中,所述调整模块配置为:In the above solution, the adjustment module is configured to:
根据所述文件服务器的内存利用率、CPU利用率、带宽利用率,并通过压力测试得出内存利用率、CPU利用率、带宽利用率与并发升级的终端数量的函数关系;将所述带宽利用率与预设的带宽利用率阈值进行对比,若所述带宽利用率大于所述带宽利用率阈值,则根据所述函数关系并按照设定步长减小并发升级的终端数量直至所述带宽利用率小于等于所述带宽利用率阈值;或者,Calculating the memory utilization, CPU utilization, bandwidth utilization, and the number of concurrently upgraded terminals according to the memory utilization, CPU utilization, and bandwidth utilization of the file server, and using the stress test; using the bandwidth The rate is compared with the preset bandwidth utilization threshold. If the bandwidth utilization is greater than the bandwidth utilization threshold, the number of concurrently upgraded terminals is reduced according to the function relationship and according to the set step size until the bandwidth utilization. The rate is less than or equal to the bandwidth utilization threshold; or,
根据所述文件服务器的内存利用率、CPU利用率、带宽利用率,并通过压力测试得出内存利用率、CPU利用率、带宽利用率与并发升级的终端数量的函数关系;将所述带宽利用率与预设的带宽利用率阈值进行对比, 若所述带宽利用率小于等于所述带宽利用率阈值,则将所述CPU利用率与预设的CPU利用率阈值进行对比;若所述CPU利用率大于所述CPU利用率阈值,则保持当前并发升级的终端数量;或者,Calculating the memory utilization, CPU utilization, bandwidth utilization, and the number of concurrently upgraded terminals according to the memory utilization, CPU utilization, and bandwidth utilization of the file server, and using the stress test; using the bandwidth The rate is compared to a preset bandwidth utilization threshold. If the bandwidth utilization is less than or equal to the bandwidth utilization threshold, comparing the CPU utilization with a preset CPU utilization threshold; if the CPU utilization is greater than the CPU utilization threshold, maintaining the current The number of terminals that are concurrently upgraded; or,
根据所述文件服务器的内存利用率、CPU利用率、带宽利用率,并通过压力测试得出内存利用率、CPU利用率、带宽利用率与并发升级的终端数量的函数关系;将所述带宽利用率与预设的带宽利用率阈值进行对比,若所述带宽利用率小于等于所述带宽利用率阈值,则将所述CPU利用率与预设的CPU利用率阈值进行对比,若所述CPU利用率小于等于所述CPU利用率阈值,则将所述内存利用率与预设的内存利用率阈值进行对比;若所述内存利用率大于所述内存利用率阈值,则保持当前并发升级的终端数量;或者,Calculating the memory utilization, CPU utilization, bandwidth utilization, and the number of concurrently upgraded terminals according to the memory utilization, CPU utilization, and bandwidth utilization of the file server, and using the stress test; using the bandwidth The rate is compared with a preset bandwidth utilization threshold. If the bandwidth utilization is less than or equal to the bandwidth utilization threshold, the CPU utilization is compared with a preset CPU utilization threshold, if the CPU utilizes If the rate is less than or equal to the CPU usage threshold, the memory usage is compared with a preset memory utilization threshold; if the memory utilization is greater than the memory utilization threshold, the number of terminals currently concurrently upgraded is maintained. ;or,
根据所述文件服务器的内存利用率、CPU利用率、带宽利用率,并通过压力测试得出内存利用率、CPU利用率、带宽利用率与并发升级的终端数量的函数关系;将所述带宽利用率与预设的带宽利用率阈值进行对比,若所述带宽利用率小于等于所述带宽利用率阈值,则将所述CPU利用率与预设的CPU利用率阈值进行对比,若所述CPU利用率小于等于所述CPU利用率阈值,则将所述内存利用率与预设的内存利用率阈值进行对比,若所述内存利用率小于等于所述内存利用率阈值,则根据所述函数关系并按照设定步长增加并发升级的终端数量直至所述内存利用率大于所述内存利用率阈值。Calculating the memory utilization, CPU utilization, bandwidth utilization, and the number of concurrently upgraded terminals according to the memory utilization, CPU utilization, and bandwidth utilization of the file server, and using the stress test; using the bandwidth The rate is compared with a preset bandwidth utilization threshold. If the bandwidth utilization is less than or equal to the bandwidth utilization threshold, the CPU utilization is compared with a preset CPU utilization threshold, if the CPU utilizes If the rate is less than or equal to the CPU utilization threshold, the memory usage is compared with a preset memory utilization threshold. If the memory utilization is less than or equal to the memory utilization threshold, according to the function relationship The number of concurrently upgraded terminals is increased according to the set step size until the memory utilization is greater than the memory utilization threshold.
上述方案中,所述升级管理模块配置为:In the above solution, the upgrade management module is configured to:
按照调整后并发升级的终端数量N,并发N条软件升级指令分别给第一终端至第N终端,启动第一终端至第N终端同时与所述文件服务器交互进行软件升级;其中,N为自然数;According to the number N of concurrently upgraded terminals, concurrently sending N software upgrade instructions to the first terminal to the Nth terminal respectively, starting the first terminal to the Nth terminal and simultaneously interacting with the file server to perform software upgrade; wherein N is a natural number ;
N个终端中某个终端完成软件升级时,向第N+1终端发送软件升级指 令,启动第N+1终端与所述文件服务器交互进行软件升级;其中,定时周期大于所有终端总共的升级时间。When one of the N terminals completes the software upgrade, the software upgrade is sent to the N+1 terminal. The N+1 terminal is started to interact with the file server to perform software upgrade; wherein, the timing period is greater than the total upgrade time of all terminals.
上述方案中,所述升级管理模块配置为:In the above solution, the upgrade management module is configured to:
若所述文件服务器当前并发升级的终端数量小于等于调整后并发升级的终端数量,则向终端发送软件升级指令,所述软件升级指令用于指示所述终端与所述文件服务器交互进行软件升级;或者,If the number of terminals that are concurrently upgraded by the file server is less than or equal to the number of terminals that are concurrently upgraded, the software upgrade instruction is sent to the terminal, and the software upgrade instruction is used to instruct the terminal to interact with the file server to perform software upgrade. or,
若所述文件服务器当前并发升级的终端数量大于所述调整后并发升级的终端数量,则结束处理流程。If the number of terminals currently concurrently upgraded by the file server is greater than the number of terminals that are concurrently upgraded after the adjustment, the process ends.
本发明实施例提供了一种文件服务器,该文件服务器包括:获取模块、发送模块;其中,An embodiment of the present invention provides a file server, where the file server includes: an obtaining module and a sending module;
所述获取模块,配置为获取自身的网络带宽信息及主机资源信息;The acquiring module is configured to acquire its own network bandwidth information and host resource information;
所述发送模块,配置为将所述网络带宽信息及所述主机资源信息发送给网络管理服务器,所述网络带宽信息及所述主机资源信息用于指示所述网络管理服务器根据所述网络带宽信息及所述主机资源信息调整并发升级的终端数量。The sending module is configured to send the network bandwidth information and the host resource information to a network management server, where the network bandwidth information and the host resource information are used to indicate that the network management server is configured according to the network bandwidth information. And the number of terminals that are concurrently upgraded by the host resource information.
上述方案中,所述网络带宽信息包括与自身连接的每个终端的最大下载带宽、当前并发升级的终端数量;所述主机资源信息包括自身内存利用率、自身CPU利用率。In the above solution, the network bandwidth information includes a maximum download bandwidth of each terminal connected to itself, and a number of terminals currently concurrently upgraded; the host resource information includes its own memory utilization rate and its own CPU utilization rate.
上述方案中,所述获取模块,配置为按照设定时间间隔或设定频率方式获取自身的网络带宽信息及主机资源信息;In the above solution, the acquiring module is configured to acquire its own network bandwidth information and host resource information according to a set time interval or a set frequency manner;
所述发送模块,还配置为将重新获取的网络带宽信息及主机资源信息发送给网络管理服务器。The sending module is further configured to send the re-acquired network bandwidth information and host resource information to the network management server.
上述方案中,所述文件服务器还包括:In the above solution, the file server further includes:
分配模块,配置为为与自身连接的每个终端分配最大下载带宽。An allocation module configured to allocate a maximum download bandwidth for each terminal connected to itself.
本发明实施例还提供了一种软件升级管理系统,该系统包括:终端、 网络管理服务器、文件服务器;其中,An embodiment of the present invention further provides a software upgrade management system, where the system includes: a terminal, Network management server, file server; among them,
所述终端,配置为接收到软件升级指令时,与所述文件服务器102交互进行软件升级;The terminal is configured to perform software upgrade with the file server 102 when receiving the software upgrade instruction;
所述网络管理服务器,配置为触发软件升级时,根据收到的文件服务器的网络带宽信息及主机资源信息调整并发升级的终端数量;根据调整后并发升级的终端数量对终端进行软件升级管理;The network management server is configured to adjust the number of concurrently upgraded terminals according to the network bandwidth information and the host resource information of the received file server when the software upgrade is triggered; and perform software upgrade management on the terminal according to the number of concurrently upgraded terminals;
所述文件服务器,配置为获取自身的网络带宽信息及主机资源信息;并将所述网络带宽信息及主机资源信息发送给所述网络管理服务器。The file server is configured to obtain its own network bandwidth information and host resource information, and send the network bandwidth information and host resource information to the network management server.
本发明实施例还提供了一种计算机存储介质,所述计算机存储介质包括一组指令,当执行所述指令时,引起至少一个处理器执行上述的软件升级管理方法。The embodiment of the invention further provides a computer storage medium, the computer storage medium comprising a set of instructions, when executed, causing at least one processor to execute the software upgrade management method described above.
本发明实施例所提供的软件升级管理方法、设备、系统及计算机存储介质,触发软件升级时,根据收到的文件服务器的资源信息调整并发升级的终端数量;根据调整后并发升级的终端数量对终端进行软件升级管理。如此,本发明实施例能够根据收到的文件服务器的资源信息调整并发升级的终端数量,从而提高文件服务器的资源利用率,并提高终端的升级效率。The software upgrade management method, the device, the system, and the computer storage medium provided by the embodiment of the present invention, when the software upgrade is triggered, the number of concurrently upgraded terminals is adjusted according to the resource information of the received file server; The terminal performs software upgrade management. As such, the embodiment of the present invention can adjust the number of concurrently upgraded terminals according to the received resource information of the file server, thereby improving resource utilization of the file server and improving the upgrade efficiency of the terminal.
附图说明DRAWINGS
图1为本发明实施例软件升级管理系统的组成结构示意图;1 is a schematic structural diagram of a software upgrade management system according to an embodiment of the present invention;
图2为本发明实施例软件升级管理方法的实现流程示意图;2 is a schematic flowchart of an implementation process of a software upgrade management method according to an embodiment of the present invention;
图3为本发明实施例根据资源信息调整并发升级的终端数量的方法实现流程示意图;FIG. 3 is a schematic flowchart of a method for implementing a method for adjusting a number of concurrently upgraded terminals according to resource information according to an embodiment of the present invention;
图4为本发明实施例另一种软件升级管理方法的实现流程示意图;4 is a schematic flowchart of an implementation process of another software upgrade management method according to an embodiment of the present invention;
图5为本发明实施例网络管理服务器的组成结构示意图;FIG. 5 is a schematic structural diagram of a network management server according to an embodiment of the present invention;
图6为本发明实施例文件服务器的组成结构示意图。 FIG. 6 is a schematic structural diagram of a file server according to an embodiment of the present invention.
具体实施方式detailed description
本发明实施例应用于软件升级管理系统,该软件升级管理系统主要包括:终端、网络管理服务器、文件服务器;该终端升级管理系统中,网络管理服务器在触发软件升级时,根据收到的文件服务器的网络带宽信息及主机资源信息调整并发升级的终端数量;根据调整后并发升级的终端数量对终端进行软件升级管理;如此,不仅能提高文件服务器的资源利用率,还能提高终端的升级效率。The embodiment of the present invention is applied to a software upgrade management system, which mainly includes: a terminal, a network management server, and a file server; in the terminal upgrade management system, when the network management server triggers a software upgrade, according to the received file server The network bandwidth information and the host resource information adjust the number of concurrently upgraded terminals; perform software upgrade management on the terminal according to the number of concurrently upgraded terminals; thus, not only can improve the resource utilization of the file server, but also improve the upgrade efficiency of the terminal.
下面结合附图对本发明的具体实施方式进行说明。Specific embodiments of the present invention will be described below with reference to the accompanying drawings.
图1为本发明实施例中提供的升级管理系统的组成结构示意图,如图1所示,该升级管理系统包括:终端100、网络管理服务器101、文件服务器102;其中,1 is a schematic structural diagram of an upgrade management system provided in an embodiment of the present invention. As shown in FIG. 1 , the upgrade management system includes: a terminal 100, a network management server 101, and a file server 102;
所述终端100,配置为接收到软件升级指令时,与所述文件服务器102交互进行软件升级;The terminal 100 is configured to perform software upgrade with the file server 102 when receiving the software upgrade instruction;
所述网络管理服务器101,配置为在触发软件升级时,根据收到的文件服务器的网络带宽信息及主机资源信息调整并发升级的终端数量;根据调整后并发升级的终端数量对终端进行软件升级管理;The network management server 101 is configured to adjust the number of concurrently upgraded terminals according to the network bandwidth information and the host resource information of the received file server when the software upgrade is triggered; and perform software upgrade management on the terminal according to the number of concurrently upgraded terminals. ;
所述文件服务器102,配置为获取自身的网络带宽信息及主机资源信息;并将所述网络带宽信息及主机资源信息发送给所述网络管理服务器101;The file server 102 is configured to acquire its own network bandwidth information and host resource information; and send the network bandwidth information and host resource information to the network management server 101;
其中,所述网络带宽信息包括与所述文件服务器102连接的每个终端的最大下载带宽、所述文件服务器102当前并发升级的终端数量;所述主机资源信息包括所述文件服务器102的内存利用率、中央处理器(CPU,Central Processing Unit)利用率;The network bandwidth information includes a maximum download bandwidth of each terminal connected to the file server 102, and a number of terminals currently concurrently upgraded by the file server 102. The host resource information includes memory usage of the file server 102. Rate, central processing unit (CPU, Central Processing Unit) utilization;
所述文件服务器102,还配置为为连接的每个终端分配最大下载带宽。The file server 102 is further configured to allocate a maximum download bandwidth for each connected terminal.
这里,具体如何根据收到的文件服务器的网络带宽信息及主机资源信 息调整并发升级的终端数量,在下文步骤S200中有详细描述。Here, how to specifically according to the network bandwidth information of the received file server and the host resource letter The number of terminals that adjust concurrent upgrades is described in detail in step S200 below.
这里,具体如何根据调整后并发升级的终端数量对终端进行软件升级管理,在下文步骤S201中有详细描述。Here, how to perform software upgrade management on the terminal according to the number of terminals that are concurrently upgraded after adjustment is described in detail in step S201 below.
该终端升级管理系统中,仅有一个网络管理服务器101,可以有多个终端100、多个文件服务器102;多个文件服务器102构成一组相互独立的、通过高速网络互联的计算机集群,所述计算机集群可以看作是一个独立的文件服务器102,并以单一系统模式加以管理,能够为大规模的终端群体提供软件下载服务。In the terminal upgrade management system, there is only one network management server 101, which may have multiple terminals 100 and multiple file servers 102; and multiple file servers 102 constitute a set of mutually independent computer clusters interconnected by a high-speed network. The computer cluster can be thought of as a stand-alone file server 102 and managed in a single system mode, providing software download services for large-scale terminal groups.
该终端升级管理系统中,所述文件服务器102可以是独立于网络管理服务器101的外部设备,即:所述文件服务器102与网络管理服务器101分开部署,这样,所述文件服务器102只配置为为终端100提供软件下载服务,既不会影响网络管理服务器101的功能,又不会受网络管理服务器101的影响;也就是说,独立的文件服务器102分配了固定的网络带宽,不会占用网络管理服务器101的网络带宽,终端100与独立的文件服务器102交互进行软件升级时,不会影响网络管理服务器101与其他设备的正常交互;所述文件服务器102也可以是运行在网络管理服务器101的操作系统低层的软件系统,即网络管理服务器101内部的逻辑功能模块,所述内部的逻辑功能模块可称为下载服务提供模块。In the terminal upgrade management system, the file server 102 may be an external device independent of the network management server 101, that is, the file server 102 is deployed separately from the network management server 101, such that the file server 102 is configured only as The terminal 100 provides a software download service, which does not affect the function of the network management server 101 and is not affected by the network management server 101; that is, the independent file server 102 allocates a fixed network bandwidth and does not occupy network management. The network bandwidth of the server 101, when the terminal 100 interacts with the independent file server 102 for software upgrade, does not affect the normal interaction between the network management server 101 and other devices; the file server 102 may also be operated by the network management server 101. The low-level software system of the system, that is, the logical function module inside the network management server 101, the internal logical function module may be referred to as a download service providing module.
该终端升级管理系统中,所述网络管理服务器101可以采用定时方式触发终端的软件升级,也可以采用等待终端100上报用户终端设备广域网管理协议(TR069)事件触发方式来触发终端100的软件升级;无论是定时方式还是事件触发方式,所述网络管理服务器101受到触发时,均会发送软件升级Download指令给需要升级的终端100,所述Download指令用于指示终端100与所述文件服务器102交互进行软件升级。In the terminal upgrade management system, the network management server 101 may trigger a software upgrade of the terminal in a timed manner, or may trigger a software upgrade of the terminal 100 by waiting for the terminal 100 to report the user terminal device WAN management protocol (TR069) event triggering manner; When the network management server 101 is triggered, the software upgrade download command is sent to the terminal 100 that needs to be upgraded, and the download command is used to instruct the terminal 100 to interact with the file server 102. software upgrade.
基于上述系统架构,本发明实施例提供的软件升级管理过程如下: Based on the foregoing system architecture, the software upgrade management process provided by the embodiment of the present invention is as follows:
首先,所述文件服务器102获取自身的网络带宽信息及主机资源信息,将所述网络带宽信息及所述主机资源信息发送给所述网络管理服务器101;First, the file server 102 obtains its own network bandwidth information and host resource information, and sends the network bandwidth information and the host resource information to the network management server 101;
然后,所述网络管理服务器101先根据实际情况预设初始并发升级的终端数量;然后,根据收到的网络带宽信息及主机资源信息调整并发升级的终端数量,根据调整后并发升级的终端数量对终端进行软件升级管理,具体可采用两种实施方式:Then, the network management server 101 first presets the number of terminals that are initially concurrently upgraded according to the actual situation; then, according to the received network bandwidth information and the host resource information, the number of concurrently upgraded terminals is adjusted according to the number of terminals that are concurrently upgraded after the adjustment. The terminal performs software upgrade management. Specifically, two implementation methods are available:
方式一、所述网络管理服务器101通过定时方式触发软件升级时,根据收到的网络带宽信息及主机资源信息调整并发升级的终端数量,然后,按照调整后并发升级的终端数量N,并发Download指令给第一终端100至第N终端100,启动第一终端100至第N终端100同时与所述文件服务器102交互进行软件升级;其中,N为自然数;N个终端中某个终端完成软件升级时,向第N+1终端100发送Download指令,启动第N+1终端100与所述文件服务器102交互进行软件升级;其中,定时周期大于所述升级管理系统中所有终端总共的升级时间;In the first step, when the network management server 101 triggers the software upgrade in a timed manner, the number of concurrently upgraded terminals is adjusted according to the received network bandwidth information and the host resource information, and then, according to the adjusted number of concurrently upgraded terminals N, the Download command is concurrently issued. The first terminal 100 to the Nth terminal 100 are activated, and the first terminal 100 to the Nth terminal 100 are simultaneously interacted with the file server 102 to perform software upgrade; wherein N is a natural number; when one of the N terminals completes the software upgrade And sending a Download command to the N+1 terminal 100, and initiating the N+1 terminal 100 to interact with the file server 102 to perform software upgrade; wherein, the timing period is greater than a total upgrade time of all terminals in the upgrade management system;
方式二、所述网络管理服务器101通过事件触发方式触发软件升级时,根据收到的网络带宽信息及主机资源信息调整并发升级的终端数量,然后,将所述文件服务器102当前的并发升级的终端数量与调整后并发升级的终端数量进行对比,若所述文件服务器102当前的并发升级的终端数量小于等于调整后并发升级的终端数量,则向终端100发送Download指令,用于指示所述终端100与所述文件服务器102交互进行软件升级;若所述文件服务器102当前的并发升级的终端数量大于所述调整后并发升级的终端数量阈值,则结束处理流程。In the second mode, when the network management server 101 triggers the software upgrade by the event triggering mode, the number of concurrently upgraded terminals is adjusted according to the received network bandwidth information and the host resource information, and then the file server 102 is currently concurrently upgraded. The number is compared with the number of terminals that are concurrently upgraded after the adjustment. If the number of terminals that are concurrently upgraded by the file server 102 is less than or equal to the number of terminals that are concurrently upgraded, the download command is sent to the terminal 100 to indicate the terminal 100. The software server is upgraded with the file server 102. If the number of concurrently upgraded terminals of the file server 102 is greater than the threshold number of the concurrently upgraded terminals, the process ends.
如图2所示,本发明实施例提供的一种软件升级管理方法,应用于网络管理服务器中,具体实现步骤包括:As shown in FIG. 2, a software upgrade management method provided by an embodiment of the present invention is applied to a network management server, and specific implementation steps include:
步骤S200:网络管理服务器触发软件升级时,根据收到的文件服务器 的网络带宽信息及主机资源信息调整并发升级的终端数量;Step S200: When the network management server triggers the software upgrade, according to the received file server The network bandwidth information and the host resource information adjust the number of concurrently upgraded terminals;
这里,网络管理服务器预设需要升级的终端范围、目标软件版本的下载路径、以及软件升级触发方式;其中,所述终端范围可以是符合一组规则的终端设备集合,所述目标软件版本的下载路径是指向所述文件服务器上的某个目标软件版本的下载路径,所述软件升级触发方式可以采用主动方式触发软件升级,例如,网络管理服务器采用定时方式触发终端的软件升级;也可以采用被动方式触发软件升级,例如,网络管理服务器采用等待终端发送Inform消息这种事件触发方式触发终端的软件升级。Here, the network management server presets the terminal range to be upgraded, the download path of the target software version, and the software upgrade triggering mode; wherein the terminal range may be a set of terminal devices conforming to a set of rules, and the download of the target software version The path is a download path to a target software version on the file server, and the software upgrade trigger mode may trigger a software upgrade in an active manner. For example, the network management server triggers the software upgrade of the terminal in a timed manner; The mode triggers the software upgrade. For example, the network management server triggers the software upgrade of the terminal by using an event triggering manner of waiting for the terminal to send an Inform message.
这里,所述网络带宽信息包括与文件服务器连接的每个终端的最大下载带宽、所述文件服务器当前并发升级的终端数量;所述主机资源信息包括所述文件服务器的内存利用率、CPU利用率。Here, the network bandwidth information includes a maximum download bandwidth of each terminal connected to the file server, and a number of terminals currently concurrently upgraded by the file server; the host resource information includes memory utilization and CPU utilization of the file server. .
这里,首先,根据所述文件服务器当前并发升级的终端数量以及每个终端的最大下载带宽确定所述文件服务器的带宽利用率;然后,根据所述文件服务器的内存利用率、CPU利用率、带宽利用率调整并发升级的终端数量。Here, first, determining the bandwidth utilization of the file server according to the number of terminals currently concurrently upgraded by the file server and the maximum download bandwidth of each terminal; and then, according to the memory utilization, CPU utilization, and bandwidth of the file server The utilization adjusts the number of concurrently upgraded terminals.
如图3所示,对如何根据所述文件服务器的内存利用率、CPU利用率、带宽利用率,调整并发升级的终端数量进行详细说明:As shown in Figure 3, how to adjust the number of terminals that are concurrently upgraded according to the memory usage, CPU utilization, and bandwidth utilization of the file server is described in detail:
步骤S200a:根据所述文件服务器的内存利用率、CPU利用率、带宽利用率,并通过压力测试得出内存利用率、CPU利用率、带宽利用率与并发升级的终端数量的函数关系;Step S200a: According to the memory utilization, CPU utilization, and bandwidth utilization of the file server, and through a stress test, the function relationship between the memory utilization, the CPU utilization, the bandwidth utilization, and the number of concurrently upgraded terminals is obtained;
步骤S200b:判断所述带宽利用率是否大于所述带宽利用率阈值,若所述带宽利用率大于所述带宽利用率阈值,则转入步骤S200c;若所述带宽利用率小于等于所述带宽利用率阈值,则转入步骤S200d;Step S200b: determining whether the bandwidth utilization is greater than the bandwidth utilization threshold, and if the bandwidth utilization is greater than the bandwidth utilization threshold, proceeding to step S200c; if the bandwidth utilization is less than or equal to the bandwidth utilization Rate threshold, then proceeds to step S200d;
这里,可根据文件服务器的实际网络负荷以及主机资源负荷预设带宽利用率阈值、内存利用率阈值、CPU利用率阈值; Here, the bandwidth utilization threshold, the memory utilization threshold, and the CPU utilization threshold may be preset according to the actual network load of the file server and the host resource load;
步骤S200c:根据所述函数关系并按照设定步长减小并发升级的终端数量直至所述带宽利用率小于等于所述带宽利用率阈值,结束本处理流程;Step S200c: End the processing flow according to the function relationship and reduce the number of concurrently upgraded terminals according to the set step size until the bandwidth utilization ratio is less than or equal to the bandwidth utilization threshold.
步骤S200d:判断所述CPU利用率是否大于所述CPU利用率阈值,若所述CPU利用率大于所述CPU利用率阈值,则转入步骤S200g;若所述CPU利用率小于等于所述CPU利用率阈值,则转入步骤S200e;Step S200d: determining whether the CPU utilization is greater than the CPU utilization threshold. If the CPU utilization is greater than the CPU utilization threshold, proceeding to step S200g; if the CPU utilization is less than or equal to the CPU utilization Rate threshold, then proceeds to step S200e;
步骤S200e:判断所述内存利用率是否大于所述内存利用率阈值,若所述内存利用率大于所述内存利用率阈值,则转入步骤S200g;若所述内存利用率小于等于所述内存利用率阈值,则步骤S200f;Step S200e: determining whether the memory utilization is greater than the memory utilization threshold, and if the memory utilization is greater than the memory utilization threshold, proceeding to step S200g; if the memory utilization is less than or equal to the memory utilization Rate threshold, then step S200f;
步骤S200f:根据所述函数关系并按照设定步长增加并发升级的终端数量直至所述内存利用率大于所述内存利用率阈值;Step S200f: increasing the number of concurrently upgraded terminals according to the function relationship and according to the set step size until the memory utilization is greater than the memory utilization threshold;
步骤S200g:保持当前并发升级的终端数量,结束本处理流程。Step S200g: The number of terminals currently concurrently upgraded is maintained, and the process flow is ended.
这里,可以按照文件服务器的实际网络负荷或主机资源负荷预设调整的步长。Here, the adjusted step size can be preset according to the actual network load of the file server or the host resource load.
上述根据所述文件服务器的内存利用率、CPU利用率、带宽利用率,调整并发升级的终端数量的过程中,对所述文件服务器的内存利用率、CPU利用率、带宽利用率的比较顺序不作具体限定。In the process of adjusting the number of concurrently upgraded terminals according to the memory utilization, the CPU utilization, and the bandwidth utilization of the file server, the comparison order of the memory utilization, the CPU utilization, and the bandwidth utilization of the file server is not performed. Specifically limited.
步骤S201:根据调整后并发升级的终端数量对终端进行软件升级管理。Step S201: Perform software upgrade management on the terminal according to the number of terminals that are concurrently upgraded after the adjustment.
这里,通过定时方式触发软件升级时,根据调整后并发升级的终端数量对终端进行升级管理,具体实现方式如下:Here, when the software upgrade is triggered in a timed manner, the terminal is upgraded and managed according to the number of terminals that are concurrently upgraded after the adjustment. The specific implementation manner is as follows:
首先,按照调整后并发升级的终端数量N,并发N条软件升级指令分别给第一终端至第N终端,启动第一终端至第N终端同时与所述文件服务器102交互进行软件升级;其中,N为自然数;First, according to the number N of concurrently upgraded terminals, the N software upgrade instructions are sent to the first terminal to the Nth terminal respectively, and the first terminal to the Nth terminal are started to interact with the file server 102 to perform software upgrade; N is a natural number;
然后,在N个终端中某个终端完成软件升级时,向第N+1终端发送软件升级指令,启动第N+1终端与所述文件服务器交互进行软件升级;其中,定时周期大于所有终端总共的升级时间。 Then, when a certain terminal of the N terminals completes the software upgrade, the software upgrade instruction is sent to the N+1 terminal, and the N+1 terminal is started to interact with the file server to perform software upgrade; wherein, the timing period is greater than all the terminals. Upgrade time.
这里,收到终端发送的Inform消息触发软件升级时,根据调整后并发升级的终端数量对终端进行升级管理,具体实现方式如下:Here, when the Inform message sent by the terminal is triggered to trigger the software upgrade, the terminal is upgraded and managed according to the number of concurrently upgraded terminals. The specific implementation manner is as follows:
若所述文件服务器当前并发升级的终端数量小于等于调整后并发升级的终端数量,则向所述终端发送下载Download指令,所述Download指令用于指示所述终端收到所述Download指令时,向所述网络管理服务器返回响应Download Response消息,同时与所述文件服务器交互进行软件升级;所述终端软件升级完成后,向所述网络管理服务器返回下载完成TransferComplete消息,以使所述网络管理服务器根据所述TransferComplete消息确定所述终端已完成软件升级;If the number of terminals that are concurrently upgraded by the file server is less than or equal to the number of terminals that are concurrently upgraded, the download command is sent to the terminal, where the download command is used to instruct the terminal to receive the Download command. Returning, by the network management server, a response to the Download Response message, and performing software upgrade with the file server; after the terminal software upgrade is completed, returning a download completion TransferComplete message to the network management server, so that the network management server is configured according to the The TransferComplete message determines that the terminal has completed a software upgrade;
若所述文件服务器当前并发升级的终端数量大于所述调整后并发升级的终端数量,则结束处理流程。If the number of terminals currently concurrently upgraded by the file server is greater than the number of terminals that are concurrently upgraded after the adjustment, the process ends.
本发明实施例适用于需要升级的终端数量较多、升级时间有限的场景中,能够快速且高效地对大规模的终端群体进行软件升级,所述网络管理服务器触发软件升级时,根据收到的所述文件服务器当前并发升级的终端数量、每个终端分配最大下载带宽、内存利用率、CPU利用率调整并发升级的终端数量,根据调整后并发升级的终端数量对终端进行软件升级管理,提高了所述文件服务器的资源利用率,并降低了终端由于等待软件升级而导致的高失败率;另外,所述网络管理服务器兼顾了所述文件服务器的CPU利用率和内存利用率,能够有效地解决了由于所述文件服务器的CPU利用率过高或内存利用率过高而导致所述文件服务器出现宕机的问题。The embodiment of the present invention is applicable to a scenario in which a large number of terminals need to be upgraded and the upgrade time is limited, and the software management of the large-scale terminal group can be quickly and efficiently performed. When the network management server triggers the software upgrade, according to the received The number of terminals that are currently concurrently upgraded by the file server, the maximum download bandwidth allocated by each terminal, the memory utilization rate, and the number of terminals that are upgraded and upgraded by the CPU utilization are upgraded according to the number of terminals that are concurrently upgraded. The resource utilization of the file server reduces the high failure rate of the terminal due to waiting for the software upgrade. In addition, the network management server takes into account the CPU utilization and memory utilization of the file server, and can effectively solve the problem. The file server is down due to excessive CPU utilization or excessive memory utilization of the file server.
如图4所示,本发明实施例还提供的一种软件升级管理方法,应用于文件服务器中,具体实现步骤包括:As shown in FIG. 4, a software upgrade management method is also provided in the file server, and the specific implementation steps include:
步骤S400:获取自身的网络带宽信息及主机资源信息;Step S400: Obtaining own network bandwidth information and host resource information;
这里,所述网络带宽信息包括与自身连接的每个终端的最大下载带宽、当前并发升级的终端数量;所述主机资源信息包括所述文件服务器的内存 利用率、CPU利用率;Here, the network bandwidth information includes a maximum download bandwidth of each terminal connected to itself, and a number of terminals currently concurrently upgraded; the host resource information includes a memory of the file server Utilization rate, CPU utilization;
这里,可以按照设定时间间隔或设定频率方式获取自身的网络带宽信息及主机资源信息,以便实时监测自身的网络带宽信息及主机资源信息;若所述文件服务器为一个集群,则获取自身平均内存利用率、CPU利用率。Here, the network bandwidth information and the host resource information can be obtained according to the set time interval or the set frequency mode, so as to monitor the network bandwidth information and the host resource information in real time; if the file server is a cluster, the average value is obtained. Memory utilization, CPU utilization.
这里,可以根据与自身连接的终端的最低网络带宽及终端的支持能力,为与自身连接的每个终端分配最大下载带宽,以便对与自身连接的每个终端进行限速。Here, the maximum download bandwidth can be allocated to each terminal connected to itself according to the minimum network bandwidth of the terminal connected to itself and the support capability of the terminal, so as to limit the speed of each terminal connected to itself.
步骤S401:将所述网络带宽信息及所述主机资源信息发送给网络管理服务器,所述网络带宽信息及所述主机资源信息用于指示所述网络管理服务器根据所述网络带宽信息及所述主机资源信息调整并发升级的终端数量。Step S401: Send the network bandwidth information and the host resource information to the network management server, where the network bandwidth information and the host resource information are used to indicate that the network management server is based on the network bandwidth information and the host Resource information adjusts the number of terminals that are concurrently upgraded.
这里,在按照设定时间间隔或设定频率方式重新获取自身的网络带宽信息及主机资源信息之后,将重新获取的网络带宽信息及主机资源信息发送给所述网络管理服务器。Here, after re-acquiring the network bandwidth information and the host resource information according to the set time interval or the set frequency mode, the re-acquired network bandwidth information and the host resource information are sent to the network management server.
本发明实施例中,所述文件服务器根据与自身连接的终端的最低网络带宽及终端的支持能力,为与自身连接的每个终端分配最大下载带宽,从而能够对与自身连接的每个终端进行限速;并且,所述文件服务器能够动态地监测网络负荷及主机资源负荷,实时地获取与自身连接的每个终端分配最大下载带宽、当前并发升级的终端数量、内存利用率、CPU利用率,并按照设定时间间隔或设定频率将与自身连接的每个终端分配最大下载带宽、自身当前并发升级的终端数量、内存利用率、CPU利用率发送给网络管理服务器,以使所述网络管理服务器根据所述文件服务器与自身连接的每个终端分配最大下载带宽、当前并发升级的终端数量、内存利用率、CPU利用率调整并发升级的终端数量。In the embodiment of the present invention, the file server allocates a maximum download bandwidth to each terminal connected to itself according to the minimum network bandwidth of the terminal connected to the terminal and the support capability of the terminal, so that each terminal connected to the terminal can be performed. And the file server can dynamically monitor the network load and the host resource load, and acquire the maximum download bandwidth, the number of concurrently upgraded terminals, the memory utilization rate, and the CPU utilization rate of each terminal connected to the terminal in real time. And each terminal connected to itself is allocated a maximum download bandwidth, the number of terminals that are currently concurrently upgraded, the memory utilization, and the CPU utilization are sent to the network management server according to the set time interval or the set frequency, so that the network management is performed. The server allocates the maximum number of downloading bandwidths, the number of terminals that are currently concurrently upgraded, the memory utilization rate, and the CPU utilization to the number of concurrently upgraded terminals according to the terminal connected to the file server.
为实现上述方法,本发明实施例提供了一种网络管理服务器、文件服 务器,由于该网络管理服务器、文件服务器解决问题的原理与方法相似,因此,设备的实施可以参见前述方法的实施,重复之处不再赘述。To implement the foregoing method, an embodiment of the present invention provides a network management server and a file service. Because the network management server and the file server solve the problem in principle and method, the implementation of the device can be referred to the implementation of the foregoing method, and the repeated description is not repeated.
如图5所示,本发明实施例提供的网络管理服务器,该网络管理服务器包括:调整模块500、升级管理模块501;其中,As shown in FIG. 5, the network management server provided by the embodiment of the present invention includes: an adjustment module 500, an upgrade management module 501, where
所述调整模块500,配置为触发软件升级时,根据收到的文件服务器的网络带宽信息及主机资源信息调整并发升级的终端数量;The adjustment module 500 is configured to adjust the number of concurrently upgraded terminals according to the network bandwidth information and the host resource information of the received file server when the software upgrade is triggered.
其中,所述网络带宽信息包括与所述文件服务器连接的每个终端的最大下载带宽、所述文件服务器当前并发升级的终端数量;所述主机资源信息包括所述文件服务器的内存利用率、CPU利用率。The network bandwidth information includes a maximum download bandwidth of each terminal connected to the file server, and a number of terminals currently concurrently upgraded by the file server; the host resource information includes a memory usage of the file server, and a CPU. Utilization rate.
所述升级管理模块501,配置为根据调整后并发升级的终端数量对终端进行软件升级管理。The upgrade management module 501 is configured to perform software upgrade management on the terminal according to the number of terminals that are concurrently upgraded after the adjustment.
以上功能模块的划分方式仅为本发明实施例给出的一种实现方式,功能模块的划分方式不构成对本发明的限制。The manner of dividing the above functional modules is only an implementation manner given by the embodiment of the present invention, and the manner of dividing the functional modules does not constitute a limitation of the present invention.
具体实施中,所述调整模块500具体配置为:In an implementation, the adjustment module 500 is specifically configured to:
根据所述文件服务器当前并发升级的终端数量以及每个终端的最大下载带宽确定所述文件服务器的带宽利用率;Determining bandwidth utilization of the file server according to the number of terminals currently concurrently upgraded by the file server and the maximum download bandwidth of each terminal;
根据所述文件服务器的内存利用率、CPU利用率、带宽利用率调整并发升级的终端数量。The number of concurrently upgraded terminals is adjusted according to the memory usage, CPU utilization, and bandwidth utilization of the file server.
具体实施中,所述调整模块500具体配置为:In an implementation, the adjustment module 500 is specifically configured to:
预设带宽利用率阈值、内存利用率阈值、CPU利用率阈值;Preset bandwidth utilization threshold, memory utilization threshold, and CPU utilization threshold;
根据所述文件服务器的内存利用率、CPU利用率、带宽利用率,并通过压力测试得出内存利用率、CPU利用率、带宽利用率与并发升级的终端数量的函数关系;According to the memory utilization of the file server, the CPU utilization rate, the bandwidth utilization rate, and the stress test, the function relationship between the memory utilization rate, the CPU utilization rate, the bandwidth utilization rate, and the number of concurrently upgraded terminals is obtained;
将所述带宽利用率与所述带宽利用率阈值进行对比,若所述带宽利用率大于所述带宽利用率阈值,则根据所述函数关系并按照设定步长减小并 发升级的终端数量直至所述带宽利用率小于等于所述带宽利用率阈值;若所述带宽利用率小于等于所述带宽利用率阈值,则将所述CPU利用率与所述CPU利用率阈值进行对比;Comparing the bandwidth utilization with the bandwidth utilization threshold, and if the bandwidth utilization is greater than the bandwidth utilization threshold, decreasing according to the function relationship and according to a set step size And the number of terminals that are upgraded until the bandwidth utilization is less than or equal to the bandwidth utilization threshold; if the bandwidth utilization is less than or equal to the bandwidth utilization threshold, performing the CPU utilization and the CPU utilization threshold Compared;
若所述CPU利用率大于所述CPU利用率阈值,则保持当前并发升级的终端数量;若所述CPU利用率小于等于所述CPU利用率阈值,则将所述内存利用率与所述内存利用率阈值进行对比;If the CPU utilization is greater than the CPU utilization threshold, the number of terminals that are currently concurrently upgraded is maintained; if the CPU utilization is less than or equal to the CPU utilization threshold, the memory utilization and the memory utilization are used. Rate threshold for comparison;
若所述内存利用率大于所述内存利用率阈值,则保持当前并发升级的终端数量;若所述内存利用率小于等于所述内存利用率阈值,则根据所述函数关系并按照设定步长增加并发升级的终端数量直至所述内存利用率大于所述内存利用率阈值。If the memory usage is greater than the memory utilization threshold, the number of terminals that are currently concurrently upgraded is maintained; if the memory utilization is less than or equal to the memory utilization threshold, according to the function relationship and according to the set step size Increase the number of concurrently upgraded terminals until the memory utilization is greater than the memory utilization threshold.
具体实施中,所述升级管理模块501具体配置为:In an implementation, the upgrade management module 501 is specifically configured to:
按照调整后并发升级的终端数量N,并发N条软件升级指令分别给第一终端至第N终端,启动第一终端至第N终端同时与所述文件服务器交互进行软件升级;其中,N为自然数;According to the number N of concurrently upgraded terminals, concurrently sending N software upgrade instructions to the first terminal to the Nth terminal respectively, starting the first terminal to the Nth terminal and simultaneously interacting with the file server to perform software upgrade; wherein N is a natural number ;
N个终端中某个终端完成软件升级时,向第N+1终端发送软件升级指令,启动第N+1终端与所述文件服务器交互进行软件升级;其中,定时周期大于所有终端总共的升级时间。When a terminal of the N terminals completes the software upgrade, the software upgrade command is sent to the N+1 terminal, and the N+1 terminal is started to interact with the file server to perform software upgrade; wherein the timing period is greater than the total upgrade time of all the terminals. .
具体实施中,所述升级管理模块501具体配置为:In an implementation, the upgrade management module 501 is specifically configured to:
若所述文件服务器当前并发升级的终端数量小于等于调整后并发升级的终端数量,则向终端发送软件升级指令,所述软件升级指令用于指示所述终端与所述文件服务器交互进行软件升级;If the number of terminals that are concurrently upgraded by the file server is less than or equal to the number of terminals that are concurrently upgraded, the software upgrade instruction is sent to the terminal, and the software upgrade instruction is used to instruct the terminal to interact with the file server to perform software upgrade.
若所述文件服务器当前并发升级的终端数量大于所述调整后并发升级的终端数量,则结束处理流程。If the number of terminals currently concurrently upgraded by the file server is greater than the number of terminals that are concurrently upgraded after the adjustment, the process ends.
在实际应用中,所述调整模块500、升级管理模块501均可由位于网络管理服务器的中央处理器(CPU)、微处理器(MPU)、数字信号处理器 (DSP)、或现场可编程门阵列(FPGA)实现。In an actual application, the adjustment module 500 and the upgrade management module 501 may each be a central processing unit (CPU), a microprocessor (MPU), and a digital signal processor located in the network management server. (DSP), or field programmable gate array (FPGA) implementation.
如图6示,本发明实施例提供的文件服务器,该文件服务器包括:获取模块600、发送模块601;其中,As shown in FIG. 6, the file server provided by the embodiment of the present invention includes: an obtaining module 600 and a sending module 601;
所述获取模块600,配置为获取自身的网络带宽信息及主机资源信息;The obtaining module 600 is configured to obtain its own network bandwidth information and host resource information.
所述发送模块601,配置为将所述网络带宽信息及所述主机资源信息发送给网络管理服务器,所述网络带宽信息及所述主机资源信息用于指示所述网络管理服务器根据所述网络带宽信息及所述主机资源信息调整并发升级的终端数量;The sending module 601 is configured to send the network bandwidth information and the host resource information to a network management server, where the network bandwidth information and the host resource information are used to indicate that the network management server is configured according to the network bandwidth. The number of terminals that adjust and concurrently upgrade the information and the host resource information;
其中,所述网络带宽信息包括与自身连接的每个终端的最大下载带宽、当前并发升级的终端数量;所述主机资源信息包括自身内存利用率、自身CPU利用率。The network bandwidth information includes a maximum download bandwidth of each terminal connected to itself, and a number of terminals currently concurrently upgraded; the host resource information includes a self memory utilization rate and a self CPU usage.
以上功能模块的划分方式仅为本发明实施例给出的一种实现方式,功能模块的划分方式不构成对本发明的限制。The manner of dividing the above functional modules is only an implementation manner given by the embodiment of the present invention, and the manner of dividing the functional modules does not constitute a limitation of the present invention.
具体实施中,所述获取模块600,具体配置为按照设定时间间隔或设定频率方式获取自身的网络带宽信息及主机资源信息;In an embodiment, the acquiring module 600 is configured to acquire network bandwidth information and host resource information according to a set time interval or a set frequency manner.
所述发送模块601,还配置为将重新获取的网络带宽信息及主机资源信息发送给网络管理服务器。The sending module 601 is further configured to send the re-acquired network bandwidth information and host resource information to the network management server.
具体实施中,所述文件服务器还包括:In a specific implementation, the file server further includes:
分配模块602,配置为为与自身连接的每个终端分配最大下载带宽。The allocation module 602 is configured to allocate a maximum download bandwidth for each terminal connected to itself.
在实际应用中,所述获取模块600、发送模块601、分配模块602均可由位于文件服务器的中央处理器(CPU)、微处理器(MPU)、数字信号处理器(DSP)、或现场可编程门阵列(FPGA)实现。In an actual application, the obtaining module 600, the sending module 601, and the allocating module 602 may all be programmable by a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP), or a field processor located in a file server. Gate array (FPGA) implementation.
本发明所述的方法并不限于具体实施方式中所述的实施例,本领域技术人员根据本发明的技术方案得出其它的实施方式,同样属于本发明的技术创新范围。 The method described in the present invention is not limited to the embodiments described in the specific embodiments, and other embodiments are obtained by those skilled in the art according to the technical solutions of the present invention, which also belong to the technical innovation scope of the present invention.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
基于此,本发明实施例还提供了一种计算机存储介质,所述计算机存储介质包括一组指令,当执行所述指令时,引起至少一个处理器执行上述应用于网络管理服务器中的软件升级管理方法,或者执行上述应用于文件 服务器中的软件升级管理方法。Based on this, an embodiment of the present invention further provides a computer storage medium, where the computer storage medium includes a set of instructions, when executed, causing at least one processor to perform software upgrade management applied to the network management server. Method, or perform the above application to the file Software upgrade management method in the server.
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。 It is apparent that those skilled in the art can make various modifications and variations to the invention without departing from the spirit and scope of the invention. Thus, it is intended that the present invention cover the modifications and modifications of the invention

Claims (22)

  1. 一种软件升级管理方法,所述方法包括:A software upgrade management method, the method comprising:
    触发软件升级时,根据收到的文件服务器的网络带宽信息及主机资源信息调整并发升级的终端数量;When the software upgrade is triggered, the number of concurrently upgraded terminals is adjusted according to the network bandwidth information and host resource information of the received file server.
    根据调整后并发升级的终端数量对终端进行软件升级管理。Perform software upgrade management on the terminal according to the number of terminals that are concurrently upgraded after adjustment.
  2. 根据权利要求1所述的方法,其中,所述网络带宽信息包括与文件服务器连接的每个终端的最大下载带宽、所述文件服务器当前并发升级的终端数量;所述主机资源信息包括所述文件服务器的内存利用率、中央处理器CPU利用率。The method of claim 1, wherein the network bandwidth information comprises a maximum download bandwidth of each terminal connected to the file server, a number of terminals currently concurrently upgraded by the file server; the host resource information including the file Server memory utilization, CPU CPU utilization.
  3. 根据权利要求2所述的方法,其中,所述根据收到的文件服务器的网络带宽信息及主机资源信息调整并发升级的终端数量,包括:The method of claim 2, wherein the adjusting the number of concurrently upgraded terminals according to the network bandwidth information and the host resource information of the received file server comprises:
    根据所述文件服务器当前并发升级的终端数量以及每个终端的最大下载带宽确定所述文件服务器的带宽利用率;Determining bandwidth utilization of the file server according to the number of terminals currently concurrently upgraded by the file server and the maximum download bandwidth of each terminal;
    根据所述文件服务器的内存利用率、CPU利用率、带宽利用率调整并发升级的终端数量。The number of concurrently upgraded terminals is adjusted according to the memory usage, CPU utilization, and bandwidth utilization of the file server.
  4. 根据权利要求3所述的方法,其中,所述根据所述文件服务器的内存利用率、CPU利用率、带宽利用率调整并发升级的终端数量,包括:The method of claim 3, wherein the number of terminals that are concurrently upgraded according to the memory utilization, CPU utilization, and bandwidth utilization of the file server includes:
    根据所述文件服务器的内存利用率、CPU利用率、带宽利用率,并通过压力测试得出内存利用率、CPU利用率、带宽利用率与并发升级的终端数量的函数关系;According to the memory utilization of the file server, the CPU utilization rate, the bandwidth utilization rate, and the stress test, the function relationship between the memory utilization rate, the CPU utilization rate, the bandwidth utilization rate, and the number of concurrently upgraded terminals is obtained;
    将所述带宽利用率与预设的带宽利用率阈值进行对比,若所述带宽利用率大于所述带宽利用率阈值,则根据所述函数关系并按照设定步长减小并发升级的终端数量直至所述带宽利用率小于等于所述带宽利用率阈值;或者,The bandwidth utilization is compared with a preset bandwidth utilization threshold. If the bandwidth utilization is greater than the bandwidth utilization threshold, the number of concurrently upgraded terminals is reduced according to the function relationship and according to a set step size. Until the bandwidth utilization is less than or equal to the bandwidth utilization threshold; or
    根据所述文件服务器的内存利用率、CPU利用率、带宽利用率,并通 过压力测试得出内存利用率、CPU利用率、带宽利用率与并发升级的终端数量的函数关系;According to the memory utilization, CPU utilization, and bandwidth utilization of the file server, Over-stress testing yields a functional relationship between memory utilization, CPU utilization, bandwidth utilization, and the number of concurrently upgraded terminals;
    将所述带宽利用率与预设的带宽利用率阈值进行对比,若所述带宽利用率小于等于所述带宽利用率阈值,则将所述CPU利用率与预设的CPU利用率阈值进行对比;若所述CPU利用率大于所述CPU利用率阈值,则保持当前并发升级的终端数量;或者,Comparing the bandwidth utilization with a preset bandwidth utilization threshold, and if the bandwidth utilization is less than or equal to the bandwidth utilization threshold, comparing the CPU utilization with a preset CPU utilization threshold; If the CPU utilization is greater than the CPU utilization threshold, the number of terminals currently concurrently upgraded is maintained; or
    根据所述文件服务器的内存利用率、CPU利用率、带宽利用率,并通过压力测试得出内存利用率、CPU利用率、带宽利用率与并发升级的终端数量的函数关系;According to the memory utilization of the file server, the CPU utilization rate, the bandwidth utilization rate, and the stress test, the function relationship between the memory utilization rate, the CPU utilization rate, the bandwidth utilization rate, and the number of concurrently upgraded terminals is obtained;
    将所述带宽利用率与预设的带宽利用率阈值进行对比,若所述带宽利用率小于等于所述带宽利用率阈值,则将所述CPU利用率与预设的CPU利用率阈值进行对比,若所述CPU利用率小于等于所述CPU利用率阈值,则将所述内存利用率与预设的内存利用率阈值进行对比;若所述内存利用率大于所述内存利用率阈值,则保持当前并发升级的终端数量;或者,The bandwidth utilization is compared with a preset bandwidth utilization threshold. If the bandwidth utilization is less than or equal to the bandwidth utilization threshold, the CPU utilization is compared with a preset CPU utilization threshold. If the CPU utilization is less than or equal to the CPU utilization threshold, comparing the memory utilization with a preset memory utilization threshold; if the memory utilization is greater than the memory utilization threshold, maintaining the current The number of terminals that are concurrently upgraded; or,
    根据所述文件服务器的内存利用率、CPU利用率、带宽利用率,并通过压力测试得出内存利用率、CPU利用率、带宽利用率与并发升级的终端数量的函数关系;According to the memory utilization of the file server, the CPU utilization rate, the bandwidth utilization rate, and the stress test, the function relationship between the memory utilization rate, the CPU utilization rate, the bandwidth utilization rate, and the number of concurrently upgraded terminals is obtained;
    将所述带宽利用率与预设的带宽利用率阈值进行对比,若所述带宽利用率小于等于所述带宽利用率阈值,则将所述CPU利用率与预设的CPU利用率阈值进行对比,若所述CPU利用率小于等于所述CPU利用率阈值,则将所述内存利用率与预设的内存利用率阈值进行对比;若所述内存利用率小于等于所述内存利用率阈值,则根据所述函数关系并按照设定步长增加并发升级的终端数量直至所述内存利用率大于所述内存利用率阈值。The bandwidth utilization is compared with a preset bandwidth utilization threshold. If the bandwidth utilization is less than or equal to the bandwidth utilization threshold, the CPU utilization is compared with a preset CPU utilization threshold. If the CPU usage is less than or equal to the CPU utilization threshold, compare the memory utilization with a preset memory utilization threshold; if the memory utilization is less than or equal to the memory utilization threshold, The function relationship increases the number of concurrently upgraded terminals according to the set step size until the memory utilization is greater than the memory utilization threshold.
  5. 根据权利要求1所述的方法,其中,通过定时方式触发软件升级时,所述根据调整后并发升级的终端数量对终端进行升级管理,包括: The method according to claim 1, wherein, when the software upgrade is triggered by the timed mode, the terminal is upgraded and managed according to the number of terminals that are concurrently upgraded after the adjustment, including:
    按照调整后并发升级的终端数量N,并发N条软件升级指令分别给第一终端至第N终端,启动第一终端至第N终端同时与所述文件服务器交互进行软件升级;其中,N为自然数;According to the number N of concurrently upgraded terminals, concurrently sending N software upgrade instructions to the first terminal to the Nth terminal respectively, starting the first terminal to the Nth terminal and simultaneously interacting with the file server to perform software upgrade; wherein N is a natural number ;
    N个终端中某个终端完成软件升级时,向第N+1终端发送软件升级指令,启动第N+1终端与所述文件服务器交互进行软件升级;其中,定时周期大于所有终端总共的升级时间。When a terminal of the N terminals completes the software upgrade, the software upgrade command is sent to the N+1 terminal, and the N+1 terminal is started to interact with the file server to perform software upgrade; wherein the timing period is greater than the total upgrade time of all the terminals. .
  6. 根据权利要求1所述的方法,其中,通过事件触发方式触发软件升级时,所述根据调整后并发升级的终端数量对终端进行升级管理,包括:The method of claim 1, wherein when the software upgrade is triggered by the event triggering method, the terminal is upgraded and managed according to the number of terminals that are concurrently upgraded after the adjustment, including:
    若所述文件服务器当前并发升级的终端数量小于等于调整后并发升级的终端数量,则向终端发送软件升级指令,所述软件升级指令用于指示所述终端与所述文件服务器交互进行软件升级;或者,If the number of terminals that are concurrently upgraded by the file server is less than or equal to the number of terminals that are concurrently upgraded, the software upgrade instruction is sent to the terminal, and the software upgrade instruction is used to instruct the terminal to interact with the file server to perform software upgrade. or,
    若所述文件服务器当前并发升级的终端数量大于所述调整后并发升级的终端数量,则结束处理流程。If the number of terminals currently concurrently upgraded by the file server is greater than the number of terminals that are concurrently upgraded after the adjustment, the process ends.
  7. 一种软件升级管理方法,所述方法包括:A software upgrade management method, the method comprising:
    获取自身的网络带宽信息及主机资源信息;Obtaining its own network bandwidth information and host resource information;
    将所述网络带宽信息及所述主机资源信息发送给网络管理服务器,所述网络带宽信息及所述主机资源信息用于指示所述网络管理服务器根据所述网络带宽信息及所述主机资源信息调整并发升级的终端数量。Transmitting the network bandwidth information and the host resource information to the network management server, where the network bandwidth information and the host resource information are used to instruct the network management server to adjust according to the network bandwidth information and the host resource information The number of terminals that are concurrently upgraded.
  8. 根据权利要求7所述的方法,其中,所述网络带宽信息包括与自身连接的每个终端的最大下载带宽、当前并发升级的终端数量;所述主机资源信息包括自身内存利用率、自身CPU利用率。The method according to claim 7, wherein the network bandwidth information comprises a maximum download bandwidth of each terminal connected to itself, and a number of terminals currently concurrently upgraded; the host resource information includes self memory utilization and self CPU utilization. rate.
  9. 根据权利要求7所述的方法,其中,所述方法还包括:The method of claim 7 wherein the method further comprises:
    按照设定时间间隔或设定频率方式获取自身的网络带宽信息及主机资源信息;Obtaining its own network bandwidth information and host resource information according to a set time interval or a set frequency mode;
    将重新获取的网络带宽信息及主机资源信息发送给网络管理服务器。 The re-acquired network bandwidth information and host resource information are sent to the network management server.
  10. 根据权利要求7所述的方法,其中,所述方法还包括:The method of claim 7 wherein the method further comprises:
    为与自身连接的每个终端分配最大下载带宽。The maximum download bandwidth is allocated for each terminal connected to itself.
  11. 一种网络管理服务器,所述网络管理服务器包括:调整模块、升级管理模块;其中,A network management server, the network management server includes: an adjustment module, an upgrade management module, wherein
    所述调整模块,配置为触发软件升级时,根据收到的文件服务器的网络带宽信息及主机资源信息调整并发升级的终端数量;The adjustment module is configured to adjust the number of concurrently upgraded terminals according to the network bandwidth information and the host resource information of the received file server when the software upgrade is triggered;
    所述升级管理模块,配置为根据调整后并发升级的终端数量对终端进行软件升级管理。The upgrade management module is configured to perform software upgrade management on the terminal according to the number of terminals that are concurrently upgraded after the adjustment.
  12. 根据权利要求11所述的网络管理服务器,其中,所述网络带宽信息包括与文件服务器连接的每个终端的最大下载带宽、所述文件服务器当前并发升级的终端数量;所述主机资源信息包括所述文件服务器的内存利用率、中央处理器CPU利用率。The network management server according to claim 11, wherein the network bandwidth information comprises a maximum download bandwidth of each terminal connected to the file server, and a number of terminals currently concurrently upgraded by the file server; the host resource information includes The memory utilization of the file server and CPU utilization of the central processing unit.
  13. 根据权利要求11所述的网络管理服务器,其中,所述调整模块配置为:The network management server according to claim 11, wherein the adjustment module is configured to:
    根据所述文件服务器当前并发升级的终端数量以及每个终端的最大下载带宽确定所述文件服务器的带宽利用率;并根据所述文件服务器的内存利用率、CPU利用率、带宽利用率调整并发升级的终端数量。Determining the bandwidth utilization of the file server according to the number of terminals currently concurrently upgraded by the file server and the maximum download bandwidth of each terminal; and adjusting concurrent upgrade according to the memory utilization, CPU utilization, and bandwidth utilization of the file server. The number of terminals.
  14. 根据权利要求13所述的网络管理服务器,其中,所述调整模块配置为:The network management server of claim 13, wherein the adjustment module is configured to:
    根据所述文件服务器的内存利用率、CPU利用率、带宽利用率,并通过压力测试得出内存利用率、CPU利用率、带宽利用率与并发升级的终端数量的函数关系;将所述带宽利用率与预设的带宽利用率阈值进行对比,若所述带宽利用率大于所述带宽利用率阈值,则根据所述函数关系并按照设定步长减小并发升级的终端数量直至所述带宽利用率小于等于所述带宽利用率阈值;或者, Calculating the memory utilization, CPU utilization, bandwidth utilization, and the number of concurrently upgraded terminals according to the memory utilization, CPU utilization, and bandwidth utilization of the file server, and using the stress test; using the bandwidth The rate is compared with the preset bandwidth utilization threshold. If the bandwidth utilization is greater than the bandwidth utilization threshold, the number of concurrently upgraded terminals is reduced according to the function relationship and according to the set step size until the bandwidth utilization. The rate is less than or equal to the bandwidth utilization threshold; or,
    根据所述文件服务器的内存利用率、CPU利用率、带宽利用率,并通过压力测试得出内存利用率、CPU利用率、带宽利用率与并发升级的终端数量的函数关系;将所述带宽利用率与预设的带宽利用率阈值进行对比,若所述带宽利用率小于等于所述带宽利用率阈值,则将所述CPU利用率与预设的CPU利用率阈值进行对比;若所述CPU利用率大于所述CPU利用率阈值,则保持当前并发升级的终端数量;或者,Calculating the memory utilization, CPU utilization, bandwidth utilization, and the number of concurrently upgraded terminals according to the memory utilization, CPU utilization, and bandwidth utilization of the file server, and using the stress test; using the bandwidth The rate is compared with a preset bandwidth utilization threshold. If the bandwidth utilization is less than or equal to the bandwidth utilization threshold, the CPU utilization is compared with a preset CPU utilization threshold; if the CPU utilizes If the rate is greater than the CPU utilization threshold, the number of terminals that are currently concurrently upgraded is maintained; or,
    根据所述文件服务器的内存利用率、CPU利用率、带宽利用率,并通过压力测试得出内存利用率、CPU利用率、带宽利用率与并发升级的终端数量的函数关系;将所述带宽利用率与预设的带宽利用率阈值进行对比,若所述带宽利用率小于等于所述带宽利用率阈值,则将所述CPU利用率与预设的CPU利用率阈值进行对比,若所述CPU利用率小于等于所述CPU利用率阈值,则将所述内存利用率与预设的内存利用率阈值进行对比;若所述内存利用率大于所述内存利用率阈值,则保持当前并发升级的终端数量;或者,Calculating the memory utilization, CPU utilization, bandwidth utilization, and the number of concurrently upgraded terminals according to the memory utilization, CPU utilization, and bandwidth utilization of the file server, and using the stress test; using the bandwidth The rate is compared with a preset bandwidth utilization threshold. If the bandwidth utilization is less than or equal to the bandwidth utilization threshold, the CPU utilization is compared with a preset CPU utilization threshold, if the CPU utilizes If the rate is less than or equal to the CPU usage threshold, the memory usage is compared with a preset memory utilization threshold; if the memory utilization is greater than the memory utilization threshold, the number of terminals currently concurrently upgraded is maintained. ;or,
    根据所述文件服务器的内存利用率、CPU利用率、带宽利用率,并通过压力测试得出内存利用率、CPU利用率、带宽利用率与并发升级的终端数量的函数关系;将所述带宽利用率与预设的带宽利用率阈值进行对比,若所述带宽利用率小于等于所述带宽利用率阈值,则将所述CPU利用率与预设的CPU利用率阈值进行对比,若所述CPU利用率小于等于所述CPU利用率阈值,则将所述内存利用率与预设的内存利用率阈值进行对比,若所述内存利用率小于等于所述内存利用率阈值,则根据所述函数关系并按照设定步长增加并发升级的终端数量直至所述内存利用率大于所述内存利用率阈值。Calculating the memory utilization, CPU utilization, bandwidth utilization, and the number of concurrently upgraded terminals according to the memory utilization, CPU utilization, and bandwidth utilization of the file server, and using the stress test; using the bandwidth The rate is compared with a preset bandwidth utilization threshold. If the bandwidth utilization is less than or equal to the bandwidth utilization threshold, the CPU utilization is compared with a preset CPU utilization threshold, if the CPU utilizes If the rate is less than or equal to the CPU utilization threshold, the memory usage is compared with a preset memory utilization threshold. If the memory utilization is less than or equal to the memory utilization threshold, according to the function relationship The number of concurrently upgraded terminals is increased according to the set step size until the memory utilization is greater than the memory utilization threshold.
  15. 根据权利要求11所述的网络管理服务器,其中,所述升级管理模块配置为: The network management server according to claim 11, wherein the upgrade management module is configured to:
    按照调整后并发升级的终端数量N,并发N条软件升级指令分别给第一终端至第N终端,启动第一终端至第N终端同时与所述文件服务器交互进行软件升级;其中,N为自然数;According to the number N of concurrently upgraded terminals, concurrently sending N software upgrade instructions to the first terminal to the Nth terminal respectively, starting the first terminal to the Nth terminal and simultaneously interacting with the file server to perform software upgrade; wherein N is a natural number ;
    N个终端中某个终端完成软件升级时,向第N+1终端发送软件升级指令,启动第N+1终端与所述文件服务器交互进行软件升级;其中,定时周期大于所有终端总共的升级时间。When a terminal of the N terminals completes the software upgrade, the software upgrade command is sent to the N+1 terminal, and the N+1 terminal is started to interact with the file server to perform software upgrade; wherein the timing period is greater than the total upgrade time of all the terminals. .
  16. 根据权利要求11所述的网络管理服务器,其中,所述升级管理模块配置为:The network management server according to claim 11, wherein the upgrade management module is configured to:
    若所述文件服务器当前并发升级的终端数量小于等于调整后并发升级的终端数量,则向终端发送软件升级指令,所述软件升级指令用于指示所述终端与所述文件服务器交互进行软件升级;或者,If the number of terminals that are concurrently upgraded by the file server is less than or equal to the number of terminals that are concurrently upgraded, the software upgrade instruction is sent to the terminal, and the software upgrade instruction is used to instruct the terminal to interact with the file server to perform software upgrade. or,
    若所述文件服务器当前并发升级的终端数量大于所述调整后并发升级的终端数量,则结束处理流程。If the number of terminals currently concurrently upgraded by the file server is greater than the number of terminals that are concurrently upgraded after the adjustment, the process ends.
  17. 一种文件服务器,所述文件服务器包括:获取模块、发送模块;其中,A file server, the file server includes: an obtaining module and a sending module; wherein
    所述获取模块,配置为获取自身的网络带宽信息及主机资源信息;The acquiring module is configured to acquire its own network bandwidth information and host resource information;
    所述发送模块,配置为将所述网络带宽信息及所述主机资源信息发送给网络管理服务器,所述网络带宽信息及所述主机资源信息用于指示所述网络管理服务器根据所述网络带宽信息及所述主机资源信息调整并发升级的终端数量。The sending module is configured to send the network bandwidth information and the host resource information to a network management server, where the network bandwidth information and the host resource information are used to indicate that the network management server is configured according to the network bandwidth information. And the number of terminals that are concurrently upgraded by the host resource information.
  18. 根据权利要求17所述的文件服务器,其中,所述网络带宽信息包括与自身连接的每个终端的最大下载带宽、当前并发升级的终端数量;所述主机资源信息包括自身内存利用率、自身CPU利用率。The file server according to claim 17, wherein the network bandwidth information comprises a maximum download bandwidth of each terminal connected to itself, and a number of terminals currently concurrently upgraded; the host resource information includes its own memory utilization rate and its own CPU. Utilization rate.
  19. 根据权利要求17所述的文件服务器,其中,所述获取模块,配置为按照设定时间间隔或设定频率方式获取自身的网络带宽信息及主机资源 信息;The file server according to claim 17, wherein the obtaining module is configured to acquire its own network bandwidth information and host resources according to a set time interval or a set frequency mode. information;
    所述发送模块,还配置为将重新获取的网络带宽信息及主机资源信息发送给网络管理服务器。The sending module is further configured to send the re-acquired network bandwidth information and host resource information to the network management server.
  20. 根据权利要求17至19任一项所述的文件服务器,其中,所述文件服务器还包括:The file server according to any one of claims 17 to 19, wherein the file server further comprises:
    分配模块,配置为为与自身连接的每个终端分配最大下载带宽。An allocation module configured to allocate a maximum download bandwidth for each terminal connected to itself.
  21. 一种软件升级管理系统,所述系统包括:终端、网络管理服务器、文件服务器;其中,A software upgrade management system, the system comprising: a terminal, a network management server, and a file server; wherein
    所述终端,配置为接收到软件升级指令时,与所述文件服务器交互进行软件升级;The terminal is configured to perform software upgrade with the file server when receiving the software upgrade instruction;
    所述网络管理服务器,配置为触发软件升级时,根据收到的文件服务器的网络带宽信息及主机资源信息调整并发升级的终端数量;根据调整后并发升级的终端数量对终端进行软件升级管理;The network management server is configured to adjust the number of concurrently upgraded terminals according to the network bandwidth information and the host resource information of the received file server when the software upgrade is triggered; and perform software upgrade management on the terminal according to the number of concurrently upgraded terminals;
    所述文件服务器,配置为获取自身的网络带宽信息及主机资源信息;并将所述网络带宽信息及主机资源信息发送给所述网络管理服务器。The file server is configured to obtain its own network bandwidth information and host resource information, and send the network bandwidth information and host resource information to the network management server.
  22. 一种计算机存储介质,所述计算机存储介质包括一组指令,当执行所述指令时,引起至少一个处理器执行如权利要求1至6任一项所述的软件升级管理方法,或者执行如权利要求7至10任一项所述的软件升级管理方法。 A computer storage medium comprising a set of instructions that, when executed, cause at least one processor to perform the software upgrade management method of any one of claims 1 to 6, or perform the right The software upgrade management method described in any one of 7 to 10 is required.
PCT/CN2015/074338 2014-08-04 2015-03-16 Software upgrade management method, device, system and computer storage medium WO2016019725A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410380692.7A CN105323106B (en) 2014-08-04 2014-08-04 Software upgrading management method, device and system
CN201410380692.7 2014-08-04

Publications (1)

Publication Number Publication Date
WO2016019725A1 true WO2016019725A1 (en) 2016-02-11

Family

ID=55249750

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/074338 WO2016019725A1 (en) 2014-08-04 2015-03-16 Software upgrade management method, device, system and computer storage medium

Country Status (2)

Country Link
CN (1) CN105323106B (en)
WO (1) WO2016019725A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113127021A (en) * 2019-12-30 2021-07-16 深圳Tcl新技术有限公司 Application upgrading method and computer equipment
CN114422486A (en) * 2022-03-14 2022-04-29 潍柴动力股份有限公司 Software version upgrading method and system for terminal and vehicle
CN114650208A (en) * 2020-12-18 2022-06-21 华为技术有限公司 Equipment firmware upgrading method, device, equipment and medium

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106790577A (en) * 2016-12-27 2017-05-31 中国建设银行股份有限公司 A kind of data transmission method and system
CN109428936B (en) * 2017-09-04 2021-07-13 中国移动通信有限公司研究院 APP upgrading method, device, system, electronic equipment and storage medium
CN108599997A (en) * 2018-04-04 2018-09-28 北京奇艺世纪科技有限公司 Upgrade control method and device
CN109067559A (en) * 2018-06-13 2018-12-21 四川斐讯信息技术有限公司 A kind of device updating method and device
CN111078241B (en) * 2018-10-22 2023-10-03 成都鼎桥通信技术有限公司 OTA upgrading method and device
CN111723015A (en) * 2020-06-24 2020-09-29 湖南快乐阳光互动娱乐传媒有限公司 Software testing method and device and electronic equipment
CN111782253A (en) * 2020-06-29 2020-10-16 中国工商银行股份有限公司 Rolling upgrade control method, device, equipment and storage medium
CN112328274A (en) * 2020-09-28 2021-02-05 宜通世纪物联网研究院(广州)有限公司 Software upgrading control method and system, server and intelligent terminal equipment
CN112887146A (en) * 2021-01-28 2021-06-01 杭州迪普科技股份有限公司 Network node upgrading method and device and electronic equipment
CN113596125B (en) * 2021-07-21 2023-11-14 咪咕互动娱乐有限公司 Resource downloading method, device, data system and readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101056280A (en) * 2007-05-24 2007-10-17 中国联合通信有限公司 An upgrade management method and system for instant message client
CN101335641A (en) * 2007-06-29 2008-12-31 华为技术有限公司 Method, apparatus and system for updating apparatus
CN103259672A (en) * 2012-02-17 2013-08-21 阿里巴巴集团控股有限公司 Software upgrading method and software upgrading system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6308061B1 (en) * 1996-08-07 2001-10-23 Telxon Corporation Wireless software upgrades with version control
CN102708011B (en) * 2012-05-11 2014-03-26 南京邮电大学 Adaptive task scheduling method of cloud computing platform

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101056280A (en) * 2007-05-24 2007-10-17 中国联合通信有限公司 An upgrade management method and system for instant message client
CN101335641A (en) * 2007-06-29 2008-12-31 华为技术有限公司 Method, apparatus and system for updating apparatus
CN103259672A (en) * 2012-02-17 2013-08-21 阿里巴巴集团控股有限公司 Software upgrading method and software upgrading system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113127021A (en) * 2019-12-30 2021-07-16 深圳Tcl新技术有限公司 Application upgrading method and computer equipment
CN114650208A (en) * 2020-12-18 2022-06-21 华为技术有限公司 Equipment firmware upgrading method, device, equipment and medium
CN114650208B (en) * 2020-12-18 2023-08-22 华为技术有限公司 Device firmware upgrading method, device and medium
CN114422486A (en) * 2022-03-14 2022-04-29 潍柴动力股份有限公司 Software version upgrading method and system for terminal and vehicle
CN114422486B (en) * 2022-03-14 2024-01-16 潍柴动力股份有限公司 Terminal software version upgrading method, system and vehicle

Also Published As

Publication number Publication date
CN105323106A (en) 2016-02-10
CN105323106B (en) 2020-09-22

Similar Documents

Publication Publication Date Title
WO2016019725A1 (en) Software upgrade management method, device, system and computer storage medium
US10768960B2 (en) Method for affinity binding of interrupt of virtual network interface card, and computer device
CN108011935B (en) Program upgrading method of NB-IOT (network node B-IOT) equipment, server and NB-IOT equipment
WO2019075980A1 (en) Thread adjustment method and terminal thereof
US9699233B1 (en) Adaptive performance control of multi-stream data transfer from a source system to a target system
WO2014176927A1 (en) Method, device and system for downloading file
CN103957237A (en) Architecture of elastic cloud
JP2020501237A (en) Server load balancing method, device, and server device
US9952911B2 (en) Dynamically optimized device driver protocol assist threads
CN110730136A (en) Method, device, server and storage medium for realizing flow control
CN107205248B (en) Resource allocation method and system
WO2015127850A1 (en) Data upgrading method and central server
US10404568B2 (en) Agent manager for distributed transaction monitoring system
WO2016155291A1 (en) Method and apparatus for managing virtualized network function scaling
US10531402B2 (en) Power allocation method and apparatus
US9055091B2 (en) Adaptive timing of distributed device response to maximize channel capacity utilization
US10028285B2 (en) Method, device and terminal for allocating network services to data channels
CN111586140A (en) Data interaction method and server
WO2012032373A1 (en) Dynamic configuration of interconnected devices for measuring performance characteristics in a network
JP6189545B2 (en) Network application parallel scheduling to reduce power consumption
CN103873294A (en) Keep-alive method and device for PPP (Point-to-Point Protocol) link during ISSU (In Service Software Upgrade) process
CN104104969B (en) Video interception method and device
CN108347341A (en) A kind of acceleration capacity method of adjustment and device for adjusting virtual machine acceleration capacity
US20150229701A1 (en) Sending files with multiple job sessions
WO2017193675A1 (en) Uplink resource scheduling method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15830143

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15830143

Country of ref document: EP

Kind code of ref document: A1