System upgrade method, upgrade server, medium and product

Through batch division and verification of equipment thresholds, performance, load and windows, the problem of inefficient system upgrades is solved, efficient upgrades and stable recovery of multiple devices are achieved, and manual operation and business interruptions are reduced.

CN117971282BActive Publication Date: 2025-08-12北京卫达信息技术有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410343703.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-25
Publication Date
2025-08-12
Estimated Expiration
2044-03-25

AI Technical Summary

Technical Problem

The system upgrade method in the prior art is inefficient, especially when multiple devices are upgraded, it is necessary to perform backup of old versions and copy new version codes one by one, resulting in an increase in manual operation time and repeated labor.

Method used

By obtaining device thresholds, equipment performance, business load and maintenance windows, batch division of equipment is carried out, upgrade batch plans are generated, upgrade mirror files are sent, equipment applications are controlled, verification results are obtained, and rollback operations are performed, and manual operations are reduced through batch upgrade methods.

Benefits of technology

A one-time system upgrade for multiple devices is achieved, reducing manual operation time, improving system upgrade efficiency, preventing data loss and reducing business interruption time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117971282B_ABST
    Figure CN117971282B_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of computer technology, and in particular to a system upgrade method, upgrade server, medium and product. The method comprises: dividing the equipment into batches based on the equipment threshold, the equipment performance corresponding to each device to be upgraded, the business load and the maintenance window, and obtaining an equipment upgrade batch plan. Then, according to the equipment upgrade batch plan, an upgrade image file is sent to each device to be upgraded. Furthermore, the upgrade verification result of each device to be upgraded is obtained, and the abnormal upgraded device is controlled to perform a rollback operation. The batch upgrade method is adopted, so that the system upgrade operation can be performed on multiple devices to be upgraded at one time, without the need to perform steps such as backing up the old version code and copying the new version code one by one, so that the batch upgrade method greatly reduces the manual operation time and repetitive work in the system upgrade process, and significantly improves the system upgrade efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of computer technology, and in particular to a system upgrade method, upgrade server, medium and product. Background Art

[0002] With the rapid development of information technology, various systems and application software are constantly being updated to meet the growing needs of users. System upgrades, as an important means of improving system performance, enhancing functionality, and fixing vulnerabilities, are crucial to maintaining system advancement and security.

[0003] However, in the related art, after completing the development of a new version of the system according to the upgrade requirements, technicians back up the old version of the code and copy the new version of the code to the service devices that need to be upgraded to complete the system upgrade. However, when there are a large number of service devices that need to be upgraded, performing these operations for each service device one by one will result in an inefficient upgrade process.

[0004] Therefore, how to improve the efficiency of system upgrade is an urgent problem to be solved by those skilled in the art. Summary of the Invention

[0005] The purpose of this application is to provide a system upgrade method, upgrade server, medium and product to solve at least one of the above technical problems.

[0006] The above invention objectives of this application are achieved through the following technical solutions:

[0007] In a first aspect, the present application provides a system upgrade method, which adopts the following technical solutions:

[0008] A system upgrade method, comprising:

[0009] Obtain the device threshold for batch upgrades, the device performance, service load, and maintenance window corresponding to each device to be upgraded. The device threshold is the number of devices to be upgraded in the same batch, and the maintenance window is used to represent the pre-set upgrade period for the devices to be upgraded.

[0010] Divide the equipment into batches based on the equipment threshold, the equipment performance corresponding to each of the equipment to be upgraded, the service load, and the maintenance window to obtain an equipment upgrade batch plan;

[0011] According to the device upgrade batch plan, the upgrade image file is sent to each device to be upgraded, and each device to be upgraded is controlled to apply the upgrade image file to achieve system upgrade;

[0012] The upgrade verification result of each device to be upgraded is obtained, and the abnormal upgraded device is controlled to perform a rollback operation, wherein the abnormal upgraded device is a device to be upgraded whose upgrade verification result is abnormal.

[0013] By adopting the above technical solution, the equipment batches are divided based on the equipment threshold, the equipment performance of each device to be upgraded, the business load and the maintenance window, and the equipment upgrade batch plan is obtained. Then, according to the equipment upgrade batch plan, the upgrade image file is sent to each device to be upgraded, and each device to be upgraded is controlled to apply the upgrade image file to achieve the system upgrade. Furthermore, the upgrade verification result of each device to be upgraded is obtained, and the abnormal upgraded device is controlled to perform a rollback operation, which helps to restore the system stability of the abnormal upgraded device, prevent data loss, reduce business interruption time, and provide opportunities for repair and retry. The use of a batch upgrade method makes it possible to perform system upgrade operations on multiple devices to be upgraded at one time, without the need to perform steps such as backing up the old version code and copying the new version code one by one, so that the batch upgrade method greatly reduces the manual operation time and repetitive work in the system upgrade process, and significantly improves the system upgrade efficiency.

[0014] In a preferred example, the present application may be further configured as follows: dividing the devices into batches based on the device threshold, the device performance corresponding to each device to be upgraded, the service load, and the maintenance window to obtain a device upgrade batch plan, including:

[0015] Performing score conversion based on the device performance, the service load, and the maintenance window corresponding to each device to be upgraded, to obtain a score set for each device to be upgraded, wherein the score set includes: a first score corresponding to the device performance, a second score corresponding to the service load, and a third score corresponding to the maintenance window;

[0016] Acquire a three-dimensional coordinate system for device evaluation, and perform coordinate point positioning based on the three-dimensional coordinate system for device evaluation and the score set of each device to be upgraded to obtain a multi-point positioning coordinate system;

[0017] Equipment batches are divided based on the multi-point positioning coordinate system and the equipment threshold to obtain an equipment upgrade batch plan.

[0018] In a preferred example, the present application may be further configured as follows: before sending the upgrade image file to each device to be upgraded according to the device upgrade batch plan, the method further includes:

[0019] Divide the upgrade period based on the device upgrade batch plan to obtain a first upgrade batch plan and a second upgrade batch plan, and determine a first upgrade file type corresponding to the first upgrade batch plan and a second upgrade file type corresponding to the second upgrade batch plan;

[0020] Accordingly, sending the upgrade image file to each device to be upgraded according to the device upgrade batch plan includes:

[0021] According to the first upgrade batch plan, the second upgrade batch plan, the first upgrade file type and the second upgrade file type, an upgrade image file of a target file type is sent to each device to be upgraded, wherein the target file type is the upgrade file type corresponding to the device to be upgraded.

[0022] In a preferred example, the present application may be further configured as follows: after obtaining the upgrade verification result of each device to be upgraded, the following steps are further included:

[0023] For each normally upgraded device, obtain current operation information and historical operation information of the normally upgraded device, perform system upgrade analysis based on the current operation information and the historical operation information, and determine upgrade impact information;

[0024] For each abnormally upgraded device, the device information and old system version information of the abnormally upgraded device are obtained, and the abnormal cause is analyzed based on the device information, the old system version information and the upgraded system version information to determine the upgrade abnormality information.

[0025] In a preferred example, the present application can be further configured as follows: a method for determining the threshold value of devices for batch upgrade includes:

[0026] Obtaining performance parameters corresponding to the upgrade server and historical resource consumption information corresponding to the device to be upgraded, wherein the historical resource consumption information is the resource consumption of a single device to be upgraded for system upgrade;

[0027] Based on the performance parameters, a load threshold corresponding to the upgrade server is determined, and the number of devices is calculated based on the historical resource consumption information and the load threshold to obtain the device threshold for batch upgrade.

[0028] In a preferred example, the present application may be further configured as follows: before sending the upgrade image file to each device to be upgraded, the method further includes:

[0029] The network connection, data transmission speed, and communication environment between the upgrade server and the device to be upgraded are obtained, and a file sending analysis is performed based on the network connection, the data transmission speed, and the communication environment to obtain a sending analysis result, so that the subsequent operation of sending the upgrade image file is performed only when the sending analysis result indicates that the sending is allowed.

[0030] In a second aspect, the present application provides an upgrade server, which adopts the following technical solution:

[0031] at least one processor;

[0032] Memory;

[0033] At least one application, wherein the at least one application is stored in the memory and configured to be executed by at least one processor, and the at least one application is configured to: execute the above-mentioned system upgrade method.

[0034] In a third aspect, the present application provides a computer-readable storage medium, which adopts the following technical solution:

[0035] A computer-readable storage medium stores a computer program, which, when executed in a computer, causes the computer to execute the system upgrade method described above.

[0036] In a fourth aspect, the present application provides a computer program product that adopts the following technical solution:

[0037] A computer program product includes a computer program, wherein the computer program implements the above-mentioned system upgrade method when executed by a processor.

[0038] In summary, this application includes at least one of the following beneficial technical effects:

[0039] Based on the device threshold, the device performance, business load and maintenance window corresponding to each device to be upgraded, the device batches are divided to obtain the device upgrade batch plan. Then, according to the device upgrade batch plan, the upgrade image file is sent to each device to be upgraded, and each device to be upgraded is controlled to apply the upgrade image file to achieve the system upgrade. Furthermore, the upgrade verification result of each device to be upgraded is obtained, and the abnormal upgraded device is controlled to perform a rollback operation, which helps to restore the system stability of the abnormal upgraded device, prevent data loss, reduce business interruption time, and provide opportunities for repair and retry. The use of a batch upgrade method makes it possible to perform system upgrade operations on multiple devices to be upgraded at one time, without the need to perform steps such as backing up the old version code and copying the new version code one by one, so that the batch upgrade method greatly reduces the manual operation time and repetitive work in the system upgrade process, and significantly improves the system upgrade efficiency.

[0040] A score conversion is performed based on the device performance, service load, and maintenance window corresponding to each device to be upgraded, resulting in a score set for each device to be upgraded. Next, coordinate point positioning is performed based on the device evaluation three-dimensional coordinate system and the score set for each device to be upgraded, resulting in a multi-point positioning coordinate system. Furthermore, device batches are divided based on the multi-point positioning coordinate system and device thresholds to generate a device upgrade batch plan. The multi-point positioning coordinate system makes it easier to perform device batch grouping. Specifically, multiple devices to be upgraded with similar coordinates are grouped together, allowing system upgrades to be performed within the same timeframe. This improves upgrade efficiency and reduces the impact of system upgrades on services. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 This is a flowchart of a system upgrade method according to one embodiment of the present application;

[0042] Figure 2 A schematic diagram of a three-dimensional coordinate system dividing regions according to one embodiment of the present application;

[0043] Figure 3 This is a structural diagram of a system upgrade device according to one embodiment of the present application;

[0044] Figure 4 This is a structural diagram of an upgrade server according to one embodiment of the present application. DETAILED DESCRIPTION

[0045] The following combination Figures 1 to 4 This application is described in further detail.

[0046] This specific embodiment is merely an explanation of the present application and is not a limitation of the present application. After reading this specification, those skilled in the art may make non-creative modifications to the present embodiment as needed, but as long as they are within the scope of the present application, they are protected by patent law.

[0047] To make the purpose, technical solutions, and advantages of the embodiments of this application more clear, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0048] In this document, the term "and / or" simply describes a relationship between related objects, indicating that three possible relationships exist. For example, "A and / or B" can represent: A exists alone, A and B exist simultaneously, or B exists alone. Furthermore, the character " / " in this document, unless otherwise specified, generally indicates an "or" relationship between the related objects.

[0049] The embodiments of the present application are described in further detail below with reference to the accompanying drawings.

[0050] The embodiment of the present application provides a system upgrade method, which is executed by an upgrade server, such as Figure 1 As shown, the method includes step S101, step S102, step S103 and step S104, wherein:

[0051] Step S101: Obtain the device threshold for batch upgrade, the device performance, business load and maintenance window corresponding to each device to be upgraded, where the device threshold is the number of devices to be upgraded in the same batch, and the maintenance window is used to represent the pre-set upgrade period for the devices to be upgraded.

[0052] For the embodiment of the present application, a batch upgrade method is adopted, which enables system upgrade operations to be performed on multiple devices to be upgraded at one time, without the need to perform steps such as backing up the old version code and copying the new version code one by one. The batch upgrade method greatly reduces the manual operation time and repetitive labor in the system upgrade process, and significantly improves the system upgrade efficiency.

[0053] Specifically, the device threshold for batch upgrades, the device performance, business load and maintenance window of each device to be upgraded are obtained. Among them, the device threshold helps to determine the stability and security of the system upgrade process, and avoids the performance degradation or crash of the upgrade server due to excessive load; the device performance is used to characterize the current status and performance of the device to be upgraded; the business load is used to characterize the business processing volume and work pressure currently borne by the device to be upgraded; the maintenance window is used to characterize the time schedule of maintenance operations in the device to be upgraded, that is, a pre-set time schedule similar to the system upgrade.

[0054] Step S102: Divide the devices into batches based on the device threshold, the device performance of each device to be upgraded, the service load, and the maintenance window to obtain a device upgrade batch plan.

[0055] For the embodiment of the present application, when performing device batch division, the device performance, business load and maintenance window of the device to be upgraded are comprehensively considered, which can ensure that the devices to be upgraded in the same batch are relatively balanced in terms of resource consumption, business impact and maintenance requirements. At the same time, the number of devices to be upgraded in the same batch is limited, which helps to avoid resource competition or business interruption caused by too many devices to be upgraded in a single batch, thereby improving the efficiency of system upgrade. In the device upgrade batch plan, the devices to be upgraded with the same batch device threshold are divided into a group, and a corresponding upgrade period is set for each group of devices to be upgraded. Considering the device performance dimension in the process of device batch division can ensure that devices to be upgraded with similar performance are upgraded in the same batch, which is used to reduce the problem of uneven resource allocation caused by performance differences. Considering the business load dimension in the process of device batch division, since the system resources required by devices to be upgraded with similar business loads are similar during the system upgrade process, therefore, dividing them into the same batch can make the allocation of resources during the system upgrade process more reasonable and efficient, helping to avoid upgrade failure or performance degradation in some batches due to excessive resource requirements, thereby improving the efficiency and success rate of the entire upgrade process. Considering the maintenance window dimension in the process of equipment batch division can coordinate the equipment upgrade batch plan with the daily maintenance work of the equipment to be upgraded, thereby improving the flexibility of maintenance management. There are many methods for equipment batch division, which are no longer limited in the embodiments of the present application. In one feasible method, score conversion is performed based on the equipment performance, business load and maintenance window corresponding to each equipment to be upgraded to obtain a score set for each equipment to be upgraded, wherein the score set includes: a first score corresponding to the equipment performance, a second score corresponding to the business load and a third score corresponding to the maintenance window; then, coordinate point positioning is performed based on the equipment evaluation three-dimensional coordinate system and the score set of each equipment to be upgraded to obtain a multi-point positioning coordinate system; further, equipment batch division is performed based on the multi-point positioning coordinate system and the equipment threshold to obtain an equipment upgrade batch plan.

[0056] Step S103: sending an upgrade image file to each device to be upgraded according to the device upgrade batch plan, and controlling each device to be upgraded to apply the upgrade image file to achieve system upgrade.

[0057] In the embodiments of the present application, the device upgrade batch plan details the devices included in each batch and the system upgrade period. Therefore, the upgrade image file is sent to each device to be upgraded according to the batch information and system upgrade period in the device upgrade batch plan. Regarding the transmission of the upgrade image file, the upgrade image file is sent to each device to be upgraded via a secure network protocol (e.g., FTP, HTTP, or a dedicated upgrade protocol). This process can be implemented using automated scripts or tools to improve file transmission efficiency. Simultaneously, during the transmission of the upgrade image file, the transmission status of the upgrade image file is monitored in real time to ensure that the file is transmitted completely and accurately to each device to be upgraded. Furthermore, upon detecting that the upgrade image file has been successfully transmitted to the device to be upgraded, the device to be upgraded is controlled to apply the upgrade image file to achieve the system upgrade. Regarding the process of applying the upgrade image file by the device to be upgraded, the device to be upgraded performs necessary preparatory work, such as shutting down unnecessary services and backing up important data, to ensure the smooth progress of the system upgrade process. After receiving the upgrade image file, the device to be upgraded performs file integrity verification to ensure that the file has not been damaged during transmission. Next, the system upgrade program is launched, and the upgrade image file is applied to the device to be upgraded according to the pre-set upgrade process. This process includes, but is not limited to, decompressing the image file, installing the new system software, and updating the configuration file. Finally, the device to be upgraded will regularly report upgrade verification results to the upgrade server, allowing real-time monitoring of upgrade progress and potential issues.

[0058] Step S104: obtaining the upgrade verification result of each device to be upgraded, and controlling the abnormal upgraded device to perform a rollback operation, wherein the abnormal upgraded device is the device to be upgraded whose upgrade verification result is abnormal.

[0059] In the embodiments of the present application, the upgrade verification results of each device to be upgraded are obtained, and the abnormal upgraded device is controlled to perform a rollback operation. The rollback operation is used to restore the abnormal upgraded device to the state before the system upgrade, that is, to undo all changes made during the system upgrade process, returning the upgraded device to a stable and usable state. The rollback operation helps restore the system stability of the abnormal upgraded device, prevents data loss, reduces service interruption time, and provides an opportunity for repair and retry.

[0060] It can be seen that in the embodiment of the present application, the equipment batches are divided based on the equipment threshold, the equipment performance corresponding to each device to be upgraded, the business load and the maintenance window, and the equipment upgrade batch plan is obtained. Then, according to the equipment upgrade batch plan, the upgrade image file is sent to each device to be upgraded, and each device to be upgraded is controlled to apply the upgrade image file to achieve the system upgrade. Furthermore, the upgrade verification result of each device to be upgraded is obtained, and the abnormal upgraded device is controlled to perform a rollback operation, which helps to restore the system stability of the abnormal upgraded device, prevent data loss, reduce business interruption time, and provide opportunities for repair and retry. The use of a batch upgrade method makes it possible to perform system upgrade operations on multiple devices to be upgraded at one time, without the need to perform steps such as backing up the old version code and copying the new version code one by one, so that the batch upgrade method greatly reduces the manual operation time and repetitive work in the system upgrade process, and significantly improves the system upgrade efficiency.

[0061] Furthermore, in order to improve the efficiency of system upgrades and reduce the impact of system upgrades on services, in an embodiment of the present application, device batches are divided based on device thresholds, device performance corresponding to each device to be upgraded, service load, and maintenance window, to obtain a device upgrade batch plan, including:

[0062] Performing score conversion based on device performance, service load, and maintenance window corresponding to each device to be upgraded to obtain a score set for each device to be upgraded, wherein the score set includes: a first score corresponding to the device performance, a second score corresponding to the service load, and a third score corresponding to the maintenance window;

[0063] Obtaining a three-dimensional coordinate system for device evaluation, performing coordinate point positioning based on the three-dimensional coordinate system for device evaluation and a score set for each device to be upgraded, and obtaining a multi-point positioning coordinate system;

[0064] Equipment batches are divided based on the multi-point positioning coordinate system and equipment thresholds to obtain equipment upgrade batch plans.

[0065] For the embodiment of the present application, the upgrade server pre-stores the device performance scoring standard, the business load scoring standard and the maintenance window scoring standard. For the device performance scoring standard, a scoring standard is formulated based on the hardware configuration, processing power, storage capacity and other performance indicators of the device to be upgraded, so that the higher the performance of the device to be upgraded, the higher the first score corresponding to the device to be upgraded; for the business load scoring standard, a scoring standard is formulated based on the business load of the device to be upgraded, such as traffic size, request frequency, number of concurrent users, etc., so that the heavier the business load of the device to be upgraded, the higher the second score corresponding to the device to be upgraded; for the maintenance window scoring standard, each hour in 24 hours is corresponding to a score, so that the corresponding third score can be quickly selected according to the maintenance window with the upgraded device. If the maintenance window is a time period including multiple hourly points, the score of the hourly point corresponding to the middle value of the maintenance window can be selected as the third score.

[0066] Next, a three-dimensional device evaluation coordinate system is obtained. In this three-dimensional coordinate system, the three coordinate axes represent the three dimensions of device performance, service load, and maintenance window, respectively. Furthermore, each dimension in the three-dimensional device evaluation coordinate system is pre-assigned with unit values. Next, based on the score set for each device to be upgraded, coordinate points are located in the three-dimensional device evaluation coordinate system to obtain a multi-point positioning coordinate system. For the multi-point positioning coordinate system, the corresponding position of each device to be upgraded is marked on the basis of the three-dimensional device evaluation coordinate system, thereby combining the three-dimensional device evaluation coordinate system with the specific information items of the device to be upgraded. This helps to intuitively display the status of each device to be upgraded in the three dimensions of device performance, service load, and maintenance window in three-dimensional space. Based on the multi-point positioning coordinate system, batch device segmentation can be performed more easily. That is, multiple devices to be upgraded with similar coordinate points can be grouped together to facilitate system upgrades within the same time period, thereby improving system upgrade efficiency and reducing the impact of system upgrades on services.

[0067] Furthermore, based on the multi-point positioning coordinate system and the device threshold, the equipment batch is divided into groups to obtain the equipment upgrade batch plan. There are many ways to divide the equipment batch, which are not limited in the embodiment of this application. In one achievable method, the initial radius is obtained, and the origin of the multi-point positioning coordinate system is selected as the center of the sphere. The origin is used as the center of the sphere and the initial radius to divide the area of one-eighth sphere in the multi-point positioning coordinate system. Figure 2 As shown, in Figure 2OA, OB, and OC are of equal length, and O, A, B, and C together form the aforementioned one-eighth sphere area. The devices to be upgraded within this area include: Device A, Device B, Device C, and Device D. Next, a determination is made as to whether the number of devices to be upgraded within this one-eighth sphere area meets the device threshold requirement. If so, the devices within this area are grouped into the same system upgrade batch, and any time period within this one-eighth sphere area is selected as the system upgrade period. If not, the radius of the sphere is adjusted until the number of devices to be upgraded within the area meets the requirement. The initial radius is determined by taking into account the distribution of devices in the multi-point positioning coordinate system and the device threshold to avoid repeated adjustments to the radius of the partitioned area during device batch partitioning. After the multiple devices to be upgraded in the first batch of system upgrades are determined, the radius length is continuously adjusted after the initial partitioning to achieve device batch partitioning for each device to be upgraded, resulting in a device upgrade batch plan.

[0068] As can be seen, in the embodiment of the present application, a score conversion is performed based on the device performance, business load, and maintenance window corresponding to each device to be upgraded to obtain a score set for each device to be upgraded. Then, coordinate point positioning is performed based on the device evaluation three-dimensional coordinate system and the score set of each device to be upgraded to obtain a multi-point positioning coordinate system. Furthermore, based on the multi-point positioning coordinate system and the device threshold, the device batches are divided to obtain a device upgrade batch plan. Based on the multi-point positioning coordinate system, it is easier to perform device batch division, that is, multiple devices to be upgraded with similar coordinate points are grouped together to facilitate system upgrades within the same time period, thereby improving system upgrade efficiency and reducing the impact of system upgrades on services.

[0069] Furthermore, in order to make the system upgrade more flexible and adaptable to different business scenarios, in the embodiment of the present application, before sending the upgrade image file to each device to be upgraded according to the device upgrade batch plan, the following steps are also included:

[0070] Divide the upgrade period based on the device upgrade batch plan to obtain a first upgrade batch plan and a second upgrade batch plan, and determine a first upgrade file type corresponding to the first upgrade batch plan and a second upgrade file type corresponding to the second upgrade batch plan;

[0071] Accordingly, according to the device upgrade batch plan, the upgrade image file is sent to each device to be upgraded, including:

[0072] According to the first upgrade batch plan, the second upgrade batch plan, the first upgrade file type and the second upgrade file type, an upgrade image file of a target file type is sent to each device to be upgraded, wherein the target file type is the upgrade file type corresponding to the device to be upgraded.

[0073] In the embodiments of the present application, there are two ways to upgrade the system: incremental upgrade and complete replacement upgrade. Incremental upgrade requires only the transmission and installation of necessary updates, significantly reducing the amount of data transmission and storage space required for the upgrade. Complete replacement upgrade ensures system stability and consistency, reducing the number of steps and operations required during the system upgrade. During the system upgrade process, the device being upgraded will be affected by the system load. By dividing the upgrade period and selecting the appropriate upgrade file type based on different upgrade requirements, the system upgrade can be made more flexible and adaptable to different business scenarios.

[0074] Specifically, based on historical data and business forecasts, the potential impact of each upgrade batch on system load and services is assessed. Then, based on the results of the system load and business impact assessment, the upgrade period is divided into different intervals. For example, off-peak periods can be designated as the execution period for the first upgrade batch plan, while peak periods or periods with light system load can be designated as the execution period for the second upgrade batch plan. Furthermore, based on the device types, upgrade requirements, and assessed system load and business impact corresponding to the first and second upgrade batch plans, the corresponding upgrade file types are determined. For the first upgrade batch plan, which includes diverse device types, complex upgrade requirements, and is executed during periods of low system load, a complete upgrade package can be selected as the first upgrade file type to ensure upgrade integrity and consistency. For the second upgrade batch plan, which is executed during periods of moderate system load or before peak periods, a patch package can be selected as the second upgrade file type to minimize business impact and reduce upgrade risk. Finally, according to the first and second upgrade batch plans, the first and second upgrade file types, the upgrade image file of the target file type is sent to each device to be upgraded.

[0075] It can be seen that in the embodiment of the present application, the upgrade period is divided based on the device upgrade batch plan, a first upgrade batch plan and a second upgrade batch plan are obtained, and the first upgrade file type corresponding to the first upgrade batch plan and the second upgrade file type corresponding to the second upgrade batch plan are determined. Then, according to the first upgrade batch plan, the second upgrade batch plan, the first upgrade file type and the second upgrade file type, an upgrade image file of the target file type is sent to each device to be upgraded. During the process of executing the system upgrade, the device to be upgraded will be affected by the system load. By dividing the upgrade period and selecting the appropriate upgrade file type according to different upgrade requirements, the system upgrade can be made more flexible and adaptable to different business scenarios.

[0076] Furthermore, in order to improve the transparency and controllability of system operation and optimize system performance and resource utilization, in the embodiment of the present application, after obtaining the upgrade verification result of each device to be upgraded, the following steps are further included:

[0077] For each normally upgraded device, obtain the current and historical operation information of the normally upgraded device, perform system upgrade analysis based on the current and historical operation information, and determine the upgrade impact information;

[0078] For each abnormally upgraded device, the device information and old system version information of the abnormally upgraded device are obtained, and the abnormal cause is analyzed based on the device information, old system version information and upgraded system version information to determine the upgrade abnormality information.

[0079] For the embodiment of the present application, for each normal upgrade device, the current operation information and historical operation information of the normal upgrade device are obtained, wherein the current operation information refers to the operation status of the normal upgrade device after the system upgrade is successful, and the historical operation information refers to the operation status before the system upgrade. The current operation information and the historical operation information include but are not limited to: performance data, resource usage, log records, etc. Then, based on the current operation information and the historical operation information, a system upgrade analysis is performed to determine the upgrade impact information. For the system upgrade analysis, various information such as the performance changes, resource consumption and error rates of the device before and after the upgrade can be analyzed to determine whether the system upgrade has brought advantages such as performance improvement and resource optimization. Furthermore, based on the results of the system upgrade analysis, an upgrade impact information is generated, which lists the positive effects brought by the system upgrade (for example, performance improvement, resource optimization) and issues that need attention (for example, potential performance bottlenecks, newly introduced errors, etc.).

[0080] At the same time, for each abnormally upgraded device, the device information and old system version information are obtained. Device information includes, but is not limited to, device model and configuration. The old system version information refers to the old system version information of the abnormally upgraded device before the system upgrade. Then, based on the device information, old system version information, and upgraded system version information, the cause of the abnormality is analyzed to determine the upgrade anomaly information. This upgrade anomaly information includes, but is not limited to, the upgraded device not meeting upgrade requirements, incompatibility between the old and new versions, and system upgrade vulnerabilities. After obtaining the upgrade verification results for each device to be upgraded, an in-depth analysis of the status of both normal and abnormally upgraded devices improves the transparency and controllability of system operations, optimizing system performance and resource utilization.

[0081] As can be seen, in the embodiments of the present application, for each normally upgraded device, a system upgrade analysis is performed based on current and historical operating information to determine upgrade impact information. For each abnormally upgraded device, an abnormality cause analysis is performed based on device information, old system version information, and upgraded system version information to determine upgrade abnormality information. After obtaining the upgrade verification results for each device to be upgraded, an in-depth analysis of the status of both normally upgraded and abnormally upgraded devices improves the transparency and controllability of system operation, optimizing system performance and resource utilization.

[0082] Furthermore, in order to improve the system upgrade efficiency of the devices to be upgraded, in the embodiment of the present application, the method for determining the threshold value of the devices to be upgraded in batches includes:

[0083] Obtain the performance parameters corresponding to the upgrade server and the historical resource consumption information corresponding to the device to be upgraded, wherein the historical resource consumption information is the resource consumption of a single device to be upgraded during the system upgrade;

[0084] Based on the performance parameters, the load threshold corresponding to the upgrade server is determined, and the number of devices is calculated based on historical resource consumption information and the load threshold to obtain the device threshold for batch upgrade.

[0085] For the embodiment of the present application, the performance parameters are the hardware configuration corresponding to the upgrade server, including but not limited to: the model and number of cores of the processor, memory capacity, storage capacity and network bandwidth, etc.; the historical resource consumption information is obtained by analyzing the resource consumption of historical upgrade operations, including but not limited to: the memory occupancy of the upgrade program, CPU usage and network bandwidth consumption, etc. The historical resource consumption information can be used to evaluate the resources required for the system upgrade of a single device to be upgraded, wherein the historical resource consumption information can be obtained through monitoring tools, log analysis, etc. Then, based on the performance parameters, the load threshold corresponding to the upgrade server is determined. When determining the load threshold, the performance parameters and business requirements of the upgrade server can be comprehensively considered, wherein the load threshold is any one of the following: CPU usage threshold, memory occupancy threshold, network bandwidth utilization threshold. At the same time, the load threshold should be within a certain percentage of the performance limit of the upgrade server to ensure that the upgrade server has sufficient resource supply during normal use and can cope with unexpected high load conditions. Next, the device count is calculated based on historical resource consumption information and the load threshold to determine the device threshold for batch upgrades. When calculating the device count, the historical resource consumption information is compared with the load threshold to determine the ratio of a single device to be upgraded relative to the load threshold. For example, if the load threshold is set at 80% CPU utilization, and the average CPU utilization of a single device to be upgraded is 20% in the historical resource consumption information, then the ratio of a single device to be upgraded relative to the load threshold is 20% / 80% = 0.25. The total resources of the upgrade server are then divided by the ratio of a single device to be upgraded relative to the load threshold to determine the device threshold. The device threshold represents the maximum number of devices that can be upgraded within the normal load range of the upgrade server. The calculation formula is as follows: Device threshold = Total server resources / Ratio of devices relative to the load threshold. Calculating the device threshold ensures that the number of devices upgraded at each time is within the load capacity of the upgrade server, thereby improving the system upgrade efficiency of the devices to be upgraded.

[0086] As can be seen, in the embodiments of the present application, the load threshold corresponding to the upgrade server is determined based on performance parameters, and the number of devices is calculated based on historical resource consumption information and the load threshold to obtain the device threshold for batch upgrades. The upgrade device number threshold is calculated to ensure that the number of devices upgraded each time is within the load capacity of the upgrade server, thereby improving the system upgrade efficiency of the devices to be upgraded to a certain extent.

[0087] Furthermore, in order to prevent the upgrade image file from being damaged during the file transmission process and to ensure that the upgrade image file transmitted to the device to be upgraded is complete and correct, in an embodiment of the present application, before sending the upgrade image file to each device to be upgraded, the following steps are further included:

[0088] The network connection, data transmission speed, and communication environment between the upgrade server and the device to be upgraded are obtained, and a file sending analysis is performed based on the network connection, data transmission speed, and communication environment to obtain a sending analysis result, so that the subsequent operation of sending the upgrade image file is performed only when the sending analysis result indicates that the sending is allowed.

[0089] For the embodiments of the present application, the complete transmission of the upgrade image file plays an important role in the system upgrade. If the upgrade image file is lost or erroneous during the transmission process, the file will be damaged or incomplete. Therefore, in order to avoid damage to the upgrade image file during the file transmission process and ensure that the upgrade image file transmitted to the device to be upgraded is complete and correct, the network status between the upgrade server and the device to be upgraded is pre-detected before sending the upgrade image file to avoid sending the file when the network is congested or unstable.

[0090] Specifically, the network connection, data transmission speed, and communication environment between the upgrade server and the device to be upgraded are obtained. The network connection status between the upgrade server and the device to be upgraded is detected using the Ping command or other network detection tools to ensure that the network between the two is connected. A small test file is sent from the upgrade server to the device to be upgraded, and the time required to send the file is recorded. Based on the size of the test file and the sending time, the approximate data transmission speed is calculated. The communication environment is evaluated using network bandwidth information or specialized network testing tools. The communication environment evaluation indicators include packet loss rate, latency, and other related indicators to ensure that there are no serious network fluctuations during the file sending process. Then, a file sending analysis is performed based on the network connection, data transmission speed, and communication environment to obtain a sending analysis result, wherein the sending analysis result includes: allowing sending or prohibiting sending. For file sending analysis, the upgrade server has corresponding analysis rules for each dimension of network connection, data transmission speed, and communication environment. Only when the analysis results corresponding to each dimension are all allowing sending, the sending analysis result is finally set to allowing sending; otherwise, the sending analysis result is determined to prohibit sending.

[0091] It can be seen that in the embodiment of the present application, in order to avoid damage to the upgrade image file during the file transmission process and ensure that the upgrade image file transmitted to the device to be upgraded is complete and correct, before sending the upgrade image file to each device to be upgraded, a file sending analysis is performed based on the network connection, data transmission speed and communication environment to obtain a sending analysis result.

[0092] The above embodiment introduces a system upgrade method from the perspective of method flow, and the following embodiment introduces a system upgrade device from the perspective of a virtual module or a virtual unit. Please refer to the following embodiment for details.

[0093] The embodiment of the present application provides a system upgrade device, such as Figure 3 As shown, the system upgrade device may specifically include:

[0094] Acquisition module 210 is used to obtain the device threshold for batch upgrade, the device performance, service load, and maintenance window corresponding to each device to be upgraded. The device threshold is the number of devices to be upgraded in the same batch, and the maintenance window is used to represent the pre-set upgrade period for the devices to be upgraded.

[0095] Batch partitioning module 220, configured to partition devices into batches based on device thresholds, device performance, service load, and maintenance window corresponding to each device to be upgraded, and obtain a device upgrade batch plan;

[0096] The file sending module 230 is used to send the upgrade image file to each device to be upgraded according to the device upgrade batch plan, and control each device to be upgraded to apply the upgrade image file to achieve system upgrade;

[0097] The abnormal rollback module 240 is configured to obtain the upgrade verification result of each device to be upgraded and control the abnormal upgraded device to perform a rollback operation, wherein the abnormal upgraded device is a device to be upgraded whose upgrade verification result is abnormal.

[0098] For the embodiment of the present application, the equipment is divided into batches based on the equipment threshold, the equipment performance, business load and maintenance window corresponding to each device to be upgraded, and the equipment upgrade batch plan is obtained. Then, according to the equipment upgrade batch plan, the upgrade image file is sent to each device to be upgraded, and each device to be upgraded is controlled to apply the upgrade image file to achieve system upgrade. Furthermore, the upgrade verification result of each device to be upgraded is obtained, and the abnormal upgraded device is controlled to perform a rollback operation, which helps to restore the system stability of the abnormal upgraded device, prevent data loss, reduce business interruption time, and provide opportunities for repair and retry. The use of a batch upgrade method makes it possible to perform system upgrade operations on multiple devices to be upgraded at one time, without the need to perform steps such as backing up the old version code and copying the new version code one by one, so that the batch upgrade method greatly reduces the manual operation time and repetitive work in the system upgrade process, and significantly improves the system upgrade efficiency.

[0099] In one possible implementation of the embodiment of the present application, the batch partitioning module 220, when performing device batch partitioning based on the device threshold, the device performance, service load, and maintenance window corresponding to each device to be upgraded, to obtain a device upgrade batch plan, is configured to:

[0100] Performing score conversion based on device performance, service load, and maintenance window corresponding to each device to be upgraded to obtain a score set for each device to be upgraded, wherein the score set includes: a first score corresponding to the device performance, a second score corresponding to the service load, and a third score corresponding to the maintenance window;

[0101] Obtaining a three-dimensional coordinate system for device evaluation, performing coordinate point positioning based on the three-dimensional coordinate system for device evaluation and a score set for each device to be upgraded, and obtaining a multi-point positioning coordinate system;

[0102] Equipment batches are divided based on the multi-point positioning coordinate system and equipment thresholds to obtain equipment upgrade batch plans.

[0103] In a possible implementation of the embodiment of the present application, the system upgrade device further includes:

[0104] A time period division module is used to divide the upgrade period based on the equipment upgrade batch plan, obtain a first upgrade batch plan and a second upgrade batch plan, and determine a first upgrade file type corresponding to the first upgrade batch plan and a second upgrade file type corresponding to the second upgrade batch plan;

[0105] Accordingly, when executing the device upgrade batch plan and sending the upgrade image file to each device to be upgraded, the file sending module 230 is used to:

[0106] According to the first upgrade batch plan, the second upgrade batch plan, the first upgrade file type and the second upgrade file type, an upgrade image file of a target file type is sent to each device to be upgraded, wherein the target file type is the upgrade file type corresponding to the device to be upgraded.

[0107] In a possible implementation of the embodiment of the present application, the system upgrade device further includes:

[0108] An upgrade analysis module is used to obtain the current and historical operating information of each normally upgraded device, perform system upgrade analysis based on the current and historical operating information, and determine upgrade impact information;

[0109] For each abnormally upgraded device, the device information and old system version information of the abnormally upgraded device are obtained, and the abnormal cause is analyzed based on the device information, old system version information and upgraded system version information to determine the upgrade abnormality information.

[0110] In a possible implementation of the embodiment of the present application, the system upgrade device further includes:

[0111] The device threshold determination module is used to obtain the performance parameters corresponding to the upgrade server and the historical resource consumption information corresponding to the device to be upgraded, wherein the historical resource consumption information is the resource consumption of a single device to be upgraded during the system upgrade;

[0112] Based on the performance parameters, the load threshold corresponding to the upgrade server is determined, and the number of devices is calculated based on historical resource consumption information and the load threshold to obtain the device threshold for batch upgrade.

[0113] In a possible implementation of the embodiment of the present application, the system upgrade device further includes:

[0114] The environment detection module is used to obtain the network connection, data transmission speed and communication environment between the upgrade server and the device to be upgraded, and perform file sending analysis based on the network connection, data transmission speed and communication environment to obtain the sending analysis result, so that the subsequent operation of sending the upgrade image file will be carried out only when the sending analysis result indicates that the sending is allowed.

[0115] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system upgrading device described above can refer to the corresponding process in the aforementioned method embodiment and will not be repeated here.

[0116] In the embodiment of the present application, an upgrade server is provided, such as Figure 4 As shown, Figure 4 The upgrade server 300 shown includes a processor 301 and a memory 303. The processor 301 and the memory 303 are connected, for example, via a bus 302. Optionally, the upgrade server 300 may also include a transceiver 304. It should be noted that in actual applications, the number of transceivers 304 is not limited to one, and the structure of the upgrade server 300 does not constitute a limitation on the embodiments of the present application.

[0117] Processor 301 can be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic device, transistor logic device, hardware component, or any combination thereof. It can implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. Processor 301 can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.

[0118] Bus 302 may include a path for transmitting information between the above components. Bus 302 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. Bus 302 may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, Figure 4 Only one thick line is used in the diagram, but it does not mean that there is only one bus or one type of bus.

[0119] The memory 303 may be a ROM (Read Only Memory) or other type of static storage device that can store static information and instructions, a RAM (Random Access Memory) or other type of dynamic storage device that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.

[0120] The memory 303 is used to store application code for executing the solution of the present application, and the execution is controlled by the processor 301. The processor 301 is used to execute the application code stored in the memory 303 to implement the content shown in the above method embodiment.

[0121] The upgrade server includes, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), and in-vehicle terminals (e.g., in-vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. Servers are also possible. Figure 4 The upgrade server shown is merely an example and should not limit the functions and scope of use of the embodiments of the present application.

[0122] An embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer-readable storage medium is run on a computer, the computer can execute the corresponding contents of the aforementioned method embodiment.

[0123] The embodiment of the present application provides a computer program product, which includes a computer program that, when executed by a processor, implements the method as described in any of the above embodiments. Compared with the related art, the embodiment of the present application divides the equipment batches based on the equipment threshold, the equipment performance corresponding to each device to be upgraded, the business load and the maintenance window, and obtains the equipment upgrade batch plan. Then, according to the equipment upgrade batch plan, the upgrade image file is sent to each device to be upgraded, and each device to be upgraded is controlled to apply the upgrade image file to achieve the system upgrade. Furthermore, the upgrade verification result of each device to be upgraded is obtained, and the abnormal upgraded device is controlled to perform a rollback operation, which helps to restore the system stability of the abnormal upgraded device, prevents data loss, reduces business interruption time, and provides an opportunity for repair and retry. The use of a batch upgrade method makes it possible to perform system upgrade operations on multiple devices to be upgraded at one time, without having to perform steps such as backing up the old version code and copying the new version code one by one, so that the batch upgrade method greatly reduces the manual operation time and repetitive work in the system upgrade process, and significantly improves the efficiency of the system upgrade.

[0124] It should be understood that although the steps in the flowcharts of the accompanying drawings are shown in sequence as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some of the steps in the flowcharts of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.

[0125] The above are only some of the implementation methods of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A system upgrade method, characterized in that: Executed by the upgrade server, including: Obtain the device threshold for batch upgrades, the device performance, service load, and maintenance window corresponding to each device to be upgraded. The device threshold is the number of devices to be upgraded in the same batch, and the maintenance window is used to represent the pre-set upgrade period for the devices to be upgraded. Divide the devices into batches based on the device threshold, the device performance corresponding to each device to be upgraded, the service load, and the maintenance window, to obtain a device upgrade batch plan, wherein one device upgrade batch plan includes multiple devices to be upgraded, and each device to be upgraded in the same device upgrade batch plan has similar device performance and similar service load; Dividing the upgrade period based on the equipment upgrade batch plan to obtain an incremental upgrade batch plan and an overall upgrade batch plan, and determining an incremental upgrade package corresponding to the incremental upgrade batch plan and an overall upgrade package corresponding to the overall upgrade batch plan; Sending an upgrade image file to each device to be upgraded according to the incremental upgrade batch plan, the overall upgrade batch plan, the incremental upgrade package, and the overall upgrade package, and controlling each device to be upgraded to apply the upgrade image file to implement a system upgrade, wherein the upgrade image file includes the upgrade package corresponding to the upgrade batch plan to which the device to be upgraded belongs; The upgrade verification result of each device to be upgraded is obtained, and the abnormal upgraded device is controlled to perform a rollback operation, wherein the abnormal upgraded device is a device to be upgraded whose upgrade verification result is abnormal.

2. The system upgrade method according to claim 1, characterized in that: The dividing the devices into batches based on the device threshold, the device performance corresponding to each device to be upgraded, the service load, and the maintenance window to obtain a device upgrade batch plan includes: Performing score conversion based on the device performance, the service load, and the maintenance window corresponding to each device to be upgraded, to obtain a score set for each device to be upgraded, wherein the score set includes: a first score corresponding to the device performance, a second score corresponding to the service load, and a third score corresponding to the maintenance window; Acquire a three-dimensional coordinate system for device evaluation, and perform coordinate point positioning based on the three-dimensional coordinate system for device evaluation and the score set of each device to be upgraded to obtain a multi-point positioning coordinate system; Equipment batches are divided based on the multi-point positioning coordinate system and the equipment threshold to obtain an equipment upgrade batch plan.

3. The system upgrade method according to claim 1, characterized in that: After obtaining the upgrade verification result of each device to be upgraded, the method further includes: For each normally upgraded device, obtain current operation information and historical operation information of the normally upgraded device, perform system upgrade analysis based on the current operation information and the historical operation information, and determine upgrade impact information; For each abnormally upgraded device, the device information and old system version information of the abnormally upgraded device are obtained, and the abnormal cause is analyzed based on the device information, the old system version information and the upgraded system version information to determine the upgrade abnormality information.

4. The system upgrade method according to claim 1, characterized in that: Methods for determining the device threshold for batch upgrades include: Obtaining performance parameters corresponding to the upgrade server and historical resource consumption information corresponding to the device to be upgraded, wherein the historical resource consumption information is the resource consumption of a single device to be upgraded for system upgrade; Based on the performance parameters, a load threshold corresponding to the upgrade server is determined, and the number of devices is calculated based on the historical resource consumption information and the load threshold to obtain the device threshold for batch upgrade.

5. The system upgrade method according to claim 1, characterized in that: Before sending the upgrade image file to each device to be upgraded, the method further includes: The network connection, data transmission speed, and communication environment between the upgrade server and the device to be upgraded are obtained, and a file sending analysis is performed based on the network connection, the data transmission speed, and the communication environment to obtain a sending analysis result, so that the subsequent operation of sending the upgrade image file is performed only when the sending analysis result indicates that the sending is allowed.

6. An upgrade server, characterized in that: include: at least one processor; Memory; At least one application, wherein the at least one application is stored in a memory and configured to be executed by at least one processor, and the at least one application is configured to: execute the system upgrade method according to any one of claims 1 to 5.

7. A computer-readable storage medium, characterized in that A computer program is stored thereon, and when the computer program is executed in a computer, the computer is caused to execute the system upgrading method according to any one of claims 1 to 5.

8. A computer program product, characterized in that The system comprises a computer program, wherein the computer program is executed by a processor to execute the system upgrade method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Intelligent rolling upgrade for data storage systems

    CN102597955A

  • BMC batch upgrading method, device and equipment and readable medium

    CN114064069A