Silent upgrading method, device and equipment for power system and storage medium
By fragmenting the silent upgrade tasks of the power system and analyzing the real-time resource utilization, selecting the appropriate silent upgrade mode, and performing the upgrade in an independent link, the low efficiency problem of silent upgrades in the existing technology is solved, and efficient and reliable silent upgrades are achieved.
Patent Information
- Application Number
- CN202510720552.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-30
- Publication Date
- 2025-09-12
AI Technical Summary
The existing silent upgrade solution for power systems cannot perform efficient silent upgrades without affecting the normal use of equipment.
By fragmenting the silent upgrade task, multiple subtasks of different types are generated. Based on the real-time collection of key system resources, the user behavior occupancy rate is analyzed, the resource occupancy level is predicted, and the appropriate silent upgrade mode is selected. The upgrade is performed in an independent silent upgrade link, and segmented storage is used in non-volatile memory and flash memory to generate upgrade log files.
It achieves efficient completion of silent upgrades without affecting the normal use of target power system equipment, reduces system resource usage, and improves the efficiency and reliability of silent upgrades.
Smart Images

Figure CN120631398A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power systems, and in particular to a method, device, equipment and storage medium for silent upgrading of a power system. Background Art
[0002] With the rapid development of the power industry, modern power systems have penetrated into all areas of social production and life. Their complete architecture is composed of main facilities such as generator sets, transmission and distribution networks, and power terminals, and is equipped with secondary support systems including relay protection systems, safety automatic devices, intelligent metering equipment, dispatching automation platforms, and power communication networks, which together build an organically linked energy supply system.
[0003] Currently, to improve the operational efficiency of power systems, power equipment generally utilizes remote upgrade technology, primarily encompassing direct upgrade and silent upgrade approaches. Direct upgrades enable rapid functional iteration, while silent upgrades utilize intelligent scheduling to deploy updates during equipment idle periods. This non-invasive approach minimizes impacts on the normal operation of power equipment and ensures system optimization and upgrades while ensuring power continuity. However, current silent upgrade solutions for power systems are incomplete, preventing efficient silent upgrades without disrupting normal equipment operation. Summary of the Invention
[0004] Embodiments of the present invention provide a method, apparatus, device, and storage medium for silent upgrading of an electric power system, which can perform efficient silent upgrading without affecting the normal use of the device.
[0005] In a first aspect, an embodiment of the present invention provides a method for silent upgrade of a power system, the method comprising:
[0006] In response to triggering a silent upgrade task of a target power system, fragmenting the silent upgrade task to obtain a plurality of subtasks of different types, wherein the subtasks of different types have different task amounts, and the subtasks of the same type have the same task amount;
[0007] collecting key system resources of the target power system in real time, and analyzing the occupancy rate of the key system resources by user behaviors based on the key system resources;
[0008] Based on the occupancy rate, predicting the resource occupancy degree of the target power system;
[0009] In a preset independent silent upgrade link, a corresponding silent upgrade mode is selected based on the resource occupancy level to perform silent upgrade on the target power system, and in each silent upgrade mode, at most one type of subtask is upgraded.
[0010] Furthermore, the power system silent upgrade method further includes:
[0011] If it is confirmed that the equipment in the target power system is idle, the current power of the equipment in the target power system is greater than the preset power, and the network status of the target power system meets the preset conditions, the silent upgrade task of the target power system is triggered.
[0012] Furthermore, the real-time collection of key system resources of the target power system and the analysis of the occupancy rate of the key system resources by user behavior based on the key system resources include:
[0013] Collecting the key system resources based on a preset first time interval, and analyzing the occupancy rate of the key system resources by user behavior based on the key system resources;
[0014] Based on a preset second time interval, the occupancy rate obtained from the most recent m analyses is captured to obtain a continuous occupancy rate, where m is a preset value, the second time interval is greater than or equal to the first time interval, and the second time interval is less than or equal to twice the first time interval.
[0015] Furthermore, the resource occupancy level includes an idle state, a light-load state, a medium-load state, and a heavy-load state;
[0016] The predicting, based on the occupancy rate, the resource occupancy degree of the target power system includes:
[0017] Substituting the continuous occupancy rate into a preset prediction formula to obtain a prediction factor;
[0018] Determining whether the occupancy rate is increasing based on the continuous occupancy rate,
[0019] If it is confirmed that the prediction factor is less than a preset first threshold, the resource occupancy level is the light load state; if it is confirmed that the prediction factor is greater than or equal to the first threshold and less than a preset second threshold, the resource occupancy level is the medium load state; if it is confirmed that the prediction factor is greater than or equal to the second threshold and less than a preset third threshold, or the prediction factor is greater than or equal to the third threshold, the resource occupancy level is the heavy load state;
[0020] If not, confirming that the prediction factor is less than the first threshold, the resource occupancy level is the idle state; confirming that the prediction factor is greater than or equal to the first threshold and less than the second threshold, the resource occupancy level is the light load state; confirming that the prediction factor is greater than or equal to the second threshold and less than the third threshold, the resource occupancy level is the medium load state; confirming that the prediction factor is greater than or equal to the third threshold, the resource occupancy level is the heavy load state;
[0021] The first threshold is smaller than the second threshold, and the second threshold is smaller than the third threshold.
[0022] Furthermore, the silent upgrade task includes a plurality of first subtasks, a plurality of second subtasks, and a plurality of third subtasks, the task amount of the first subtask is smaller than the task amount of the second subtask, and the task amount of the second subtask is smaller than the task amount of the third subtask;
[0023] The selecting a corresponding silent upgrade mode based on the resource occupancy level to silently upgrade the target power system includes:
[0024] If the resource occupancy level is the idle state, upgrading the third subtask;
[0025] If the resource occupancy level is the light load state, upgrading the second subtask;
[0026] If the resource occupancy level is the medium load state, upgrading the first subtask;
[0027] If the resource usage level is in the overload state, the silent upgrade task is suspended.
[0028] Furthermore, selecting a corresponding silent upgrade mode based on the resource occupancy level to silently upgrade the target power system further includes:
[0029] The target power system is silently upgraded based on a multi-stage atomic commit protocol.
[0030] Furthermore, the power system silent upgrade method further includes:
[0031] During the execution of the silent upgrade task, the upgrade data of the silent upgrade task is stored in segments based on the non-volatile memory and the flash memory, and an upgrade log file is generated. The upgrade log file supports fine-grained operation records and fast rollback.
[0032] In a second aspect, an embodiment of the present invention provides a power system silent upgrade device, the power system silent upgrade device comprising:
[0033] a fragmentation processing unit, configured to, in response to triggering a silent upgrade task of a target power system, fragment the silent upgrade task to obtain a plurality of subtasks of different types, wherein the subtasks of different types have different task amounts, and the subtasks of the same type have the same task amount;
[0034] A resource analysis unit, configured to collect key system resources of the target power system in real time, and analyze the occupancy rate of the key system resources by user behaviors based on the key system resources;
[0035] a prediction unit, configured to predict a resource occupancy level of the target power system based on the occupancy rate;
[0036] An upgrading unit is configured to select a corresponding silent upgrading mode based on the resource occupancy level in a preset independent silent upgrading link to silently upgrade the target power system, and to upgrade at most one type of subtask in each silent upgrading mode.
[0037] In a third aspect, an embodiment of the present invention further provides a power system silent upgrade device, comprising a processor and a memory, wherein the memory stores a computer program. When the computer program is executed by the processor, the processor executes the steps of any power system silent upgrade method provided in an embodiment of the present invention.
[0038] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, which includes a computer program. When the computer program runs on an electronic device, the computer program is used to enable the electronic device to execute the steps of any one of the power system silent upgrade methods provided in the embodiments of the present invention.
[0039] The beneficial effects of the present invention are:
[0040] The power system silent upgrade method of the present invention obtains multiple subtasks of different types by fragmenting the silent upgrade task of the target power system when the silent upgrade task is triggered, and obtains the occupancy rate of key system resources by user behavior based on the real-time collected key system resources analysis. Then, the resource occupancy degree of the target power system is predicted based on the occupancy rate, and in a pre-set independent silent upgrade link, the corresponding silent upgrade mode is selected based on the resource occupancy degree to perform a silent upgrade on the target power system. In this way, the silent upgrade mode can be scheduled in real time based on the change in the occupancy rate of key system resources by user behavior, and the upgrade of different types of subtasks can be completed successively, thereby reducing the system resource occupancy of the target power system during the silent upgrade process, and thus being able to perform efficient silent upgrades without affecting the normal use of equipment in the target power system. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0042] Figure 1 1 is a flow chart of a method for silent upgrade of a power system provided in an embodiment of the present invention;
[0043] Figure 2 2 is a schematic diagram of the structure of a power system silent upgrade device provided in an embodiment of the present invention;
[0044] Figure 3 It is a structural diagram of the power system silent upgrade device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0045] In order to enable those skilled in the art to better understand the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0046] The following disclosure provides many different embodiments or examples for implementing different features of the subject matter provided. Specific examples of components and arrangements are described below to simplify the disclosure. Of course, these are merely examples and are not intended to be limiting. For example, in the following description, a first feature formed on or formed on a second feature may include an embodiment in which the first feature and the second feature are formed in direct contact, and may also include an embodiment in which an additional feature may be formed between the first feature and the second feature so that the first feature and the second feature may not be in direct contact. In addition, the disclosure may reuse reference numbers and / or letters in various examples. This repetition is for the purpose of simplicity and clarity and does not inherently dictate the relationship between the various embodiments and / or configurations discussed.
[0047] In addition, the descriptions of "first", "second", etc. in the present invention are only for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but it must be based on the ability of ordinary technicians in this field to implement. When the combination of technical solutions is contradictory or cannot be implemented, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices.
[0048] The term "and / or" herein simply describes an association relationship between associated objects, indicating that three relationships can exist. For example, "A and / or B" can represent the existence of three situations: A alone, A and B simultaneously, and B alone. Furthermore, the term "at least one" herein refers to any combination of at least two of any one or more of a plurality of items. For example, "at least one of A, B, and C" can represent any one or more elements selected from the set consisting of A, B, and C.
[0049] References herein to "embodiments" mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute an independent or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0050] In addition, numerous specific details are provided in the following detailed description to better illustrate the present invention. Those skilled in the art will appreciate that the present invention can be practiced without certain specific details. In some instances, methods, means, components, and circuits well known to those skilled in the art have not been described in detail in order to highlight the main points of the present invention.
[0051] As described above in the background technology, the inventors have found that:
[0052] The current silent upgrade solution for power systems is not yet perfect, and it is impossible to perform efficient silent upgrades without affecting the normal use of equipment.
[0053] Based on this, an embodiment of the present invention proposes a method, device, equipment and storage medium for silent upgrade of an electric power system. The method for silent upgrade of an electric power system fragments the silent upgrade task when the silent upgrade task of the target electric power system is triggered to obtain multiple subtasks of different types. After obtaining the occupancy rate of key system resources by user behavior based on the real-time collected key system resources analysis of the target electric power system, the method predicts the resource occupancy degree of the target electric power system based on the occupancy rate, and selects the corresponding silent upgrade mode based on the resource occupancy degree in a pre-set independent silent upgrade link to silently upgrade the target electric power system. In this way, the silent upgrade mode can be scheduled in real time based on the change in the occupancy rate of key system resources by user behavior, and the upgrade of different types of subtasks can be completed successively, thereby reducing the system resource occupancy of the target electric power system during the silent upgrade process, and thus being able to perform efficient silent upgrades without affecting the normal use of equipment in the target electric power system.
[0054] Specifically, this embodiment will be described from the perspective of a power system silent upgrade device, which can be integrated into a power system silent upgrade device. That is, the power system silent upgrade method of the embodiment of the present invention can be executed by the power system silent upgrade device.
[0055] The following detailed description is provided in conjunction with the accompanying drawings. This embodiment uses the silent upgrade device for a power system as an example. It should be noted that the order in which the following embodiments are described does not limit the preferred order of the embodiments. Although the flowcharts illustrate a logical order, in some cases, the steps shown or described may be performed in a different order than that shown in the accompanying drawings.
[0056] Please refer to Figure 1 The specific process of the power system silent upgrade method can be as follows: Step S101 to Step S104, wherein:
[0057] Step S101 : in response to triggering a silent upgrade task of a target power system, fragmenting the silent upgrade task to obtain a plurality of subtasks of different types.
[0058] The target power system is the power system on which the power system silent upgrade is to be performed in the embodiment of the present invention. The target power system may be one or more.
[0059] Specifically, the silent upgrade task is fragmented to obtain multiple subtasks of different types, which means that the silent upgrade task is decomposed into multiple subtasks of different types, wherein different types of subtasks have different task sizes, and subtasks of the same type have the same task size.
[0060] It can be understood that the embodiment of the present invention fragments the silent upgrade task, which can decompose the execution of the silent upgrade task into the execution of several subtasks, thereby avoiding the situation where a large amount of tasks are upgraded at one time and occupy too many system resources, affecting the normal use of the equipment in the target power system.
[0061] To make the task amounts of the subtasks based on the silent upgrade task more reasonable, that is, more suitable for the power system silent upgrade method according to embodiments of the present invention, in some embodiments, after the silent upgrade task is fragmented, the silent upgrade task is split into multiple first subtasks, multiple second subtasks, and multiple third subtasks. The task amount of the first subtask is smaller than that of the second subtask, and the task amount of the second subtask is smaller than that of the third subtask.
[0062] Therefore, the embodiment of the present invention makes the fragmented processing of silent upgrade tasks more suitable for this solution by rationally planning subtasks of different task sizes, and can subsequently schedule different types of subtasks for upgrades based on real-time status, thereby further improving the efficiency of silent upgrades without affecting the normal use of equipment in the target power system.
[0063] In some embodiments, the triggering conditions of the silent upgrade task of the target power system are described. In this embodiment, the power system silent upgrade method may also include:
[0064] If it is confirmed that the equipment in the target power system is idle, the current power of the equipment in the target power system is greater than the preset power, and the network status of the target power system meets the preset conditions, the silent upgrade task of the target power system is triggered.
[0065] That is, the triggering conditions for the silent upgrade task of the target power system are:
[0066] The equipment in the target power system is idle, the current power of the equipment in the target power system is greater than the preset power, and the network status of the target power system meets the preset conditions.
[0067] It can be understood that the embodiment of the present invention, by setting the trigger conditions for the silent upgrade task of the target power system as described above, can minimize the disturbance to users when performing the silent upgrade of the target power system, and ensure that the device power and network status are sufficient to support the silent upgrade operation, thereby improving the user experience of the silent upgrade function.
[0068] Optionally, the preset power level can be 50%, and the network status meeting the preset conditions can be at least one of the following: network delay is less than a preset delay threshold (such as 5ms), network jitter is less than a preset network jitter threshold (such as 4ms), packet loss rate is less than a preset packet loss rate threshold (such as 3%), and network bandwidth is greater than a preset network bandwidth threshold (such as 10Mbps).
[0069] In some embodiments, the integrity and legality of the upgrade files related to the silent upgrade task are also verified.
[0070] Step S102 : collecting key system resources of the target power system in real time, and analyzing the occupancy rate of the key system resources by user behaviors based on the key system resources.
[0071] The key system resources of the target power system refer to resources related to the use of the target power system and the devices in the target power system. The more intensively a user uses the target power system and the devices in the target power system, the more key system resources are occupied. This embodiment of the present invention analyzes the occupancy rate of the key system resources of the target power system as a result of user behavior, facilitating the subsequent rational scheduling of silent upgrade tasks based on this occupancy rate, thereby reducing the impact of the silent upgrade process on the use of the devices in the target power system.
[0072] In some embodiments, step S102 may include:
[0073] Step S1021 : collecting key system resources based on a preset first time interval, and analyzing the occupancy rate of the key system resources by user behaviors based on the key system resources.
[0074] Step S1022: capturing the occupancy rates obtained from the most recent m analyses based on a preset second time interval to obtain a continuous occupancy rate.
[0075] Wherein, m is a preset value and a positive integer; the second time interval is greater than or equal to the first time interval, and the second time interval is less than or equal to twice the first time interval.
[0076] Exemplarily, m=5, that is, the occupancy rates obtained from the last five analyses are captured based on the preset second time interval to obtain the continuous occupancy rate.
[0077] Specifically, the embodiment of the present invention monitors various types of key system resources of the target power system and the equipment therein in real time, collects the key system resources once every first time interval, and transmits the key system resources to the terminal for analysis to obtain the occupancy rate of the key system resources caused by user behavior. At the same time, the embodiment of the present invention captures the occupancy rate obtained from the most recent m analyses at every second time interval to obtain a continuous occupancy rate, which is recorded as X n ,X n-1 ,…,X n-m+1 When m=5, the continuous occupancy rate is X n ,X n-1 ,X n-2 ,X n-3 ,X n-4 .
[0078] It is understood that the embodiment of the present invention analyzes the occupancy rate of key system resources caused by user behavior through steps S1021-S1022 and captures the continuous occupancy rate, facilitating the subsequent formulation of a more accurate and reliable silent upgrade strategy based on the continuous occupancy rate, further improving the efficiency and reliability of the silent upgrade without affecting the normal use of the equipment in the target power system. Furthermore, the embodiment of the present invention collects key system resources and analyzes the occupancy rate at a first time interval, and captures the continuous occupancy rate at a second time interval, wherein the second time interval is greater than or equal to the first time interval and less than or equal to twice the first time interval. This can avoid the situation where the captured continuous occupancy rate is the same as the previously captured continuous occupancy rate when the second time interval is less than the first time interval, thereby reducing the accuracy and reliability of the silent upgrade strategy subsequently formulated based on the continuous occupancy rate. It can also avoid the situation where the captured continuous occupancy rate is not representative of the timeliness of the captured continuous occupancy rate due to the second time interval being too long, thereby reducing the accuracy and reliability of the silent upgrade strategy subsequently formulated based on the continuous occupancy rate. Thus, the embodiment of the present invention can improve the accuracy and reliability of the captured continuous occupancy rate and avoid the adverse effects of abnormal data on subsequent prediction results and the reliability of silent upgrades.
[0079] Step S103 : predicting the resource occupancy level of the target power system based on the occupancy rate.
[0080] Specifically, the embodiment of the present invention predicts the resource occupancy rate of the target power system based on the occupancy rate of key system resources obtained by real-time analysis of user behavior in step S102, so as to facilitate the subsequent selection of an appropriate silent upgrade strategy based on the resource occupancy rate and reduce the impact of the silent upgrade process on the normal use of the target power system and its equipment.
[0081] Optionally, an embodiment of the present invention can predict the resource occupancy level of the target power system based on a preset machine learning model, which is pre-trained to output the predicted resource occupancy level of the target power system when the occupancy rate is input.
[0082] In some embodiments, the resource occupancy level includes an idle state, a light load state, a medium load state, and a heavy load state. In order to more accurately predict the resource occupancy level of the target power system based on the occupancy rate, in this embodiment, step S103 may include:
[0083] Step S1031: Substitute the continuous occupancy rate into a preset prediction formula to obtain a prediction factor.
[0084] Step S1032, determining whether the occupancy rate is increasing based on the continuous occupancy rate;
[0085] If it is confirmed that the prediction factor is less than a preset first threshold, the resource occupancy level is a light load state; if it is confirmed that the prediction factor is greater than or equal to the first threshold and less than a preset second threshold, the resource occupancy level is a medium load state; if it is confirmed that the prediction factor is greater than or equal to the second threshold and less than a preset third threshold, or the prediction factor is greater than or equal to the third threshold, the resource occupancy level is a heavy load state;
[0086] If not, if the prediction factor is confirmed to be less than the first threshold, the resource occupancy level is in an idle state; if the prediction factor is confirmed to be greater than or equal to the first threshold and less than the second threshold, the resource occupancy level is in a light load state; if the prediction factor is confirmed to be greater than or equal to the second threshold and less than the third threshold, the resource occupancy level is in a medium load state; if the prediction factor is confirmed to be greater than or equal to the third threshold, the resource occupancy level is in a heavy load state.
[0087] The first threshold is less than the second threshold, the second threshold is less than the third threshold, and the resource occupancy levels are arranged in order from the smallest to the smallest, i.e., the idle state, the light-load state, the medium-load state, and the heavy-load state. It is understood that the first threshold is a threshold between the idle state and the light-load state, the second threshold is a threshold between the light-load state and the medium-load state, and the third threshold is a threshold between the medium-load state and the heavy-load state.
[0088] Specifically, the prediction formula is:
[0089]
[0090] Where Y is the prediction factor; λ1,λ2…λ m It is a preset weighting coefficient, which has a preset value and decreases in sequence. That is, the farther the occupancy is from the current time, the smaller the weighting coefficient corresponding to it is. Taking m=5 as an example, the value range of λ1 is 0.9-1, the value range of λ2 is 0.7-0.8, the value range of λ3 is 0.5-0.6, the value range of λ4 is 0.3-0.4, and the value range of λ5 is 0.1-0.2.
[0091] Therefore, the embodiment of the present invention obtains a prediction factor based on continuous occupancy prediction, and determines the resource occupancy level based on whether the occupancy level increases and the specific value of the prediction factor, so as to obtain a more accurate resource occupancy level, thereby making the subsequent silent upgrade strategy determined based on the resource occupancy level more accurate and reliable, and further improving the efficiency and reliability of the silent upgrade without affecting the normal use of the equipment of the target power system.
[0092] In some embodiments, determining whether the occupancy rate is increasing based on the consecutive occupancy rates may include:
[0093] If the continuous occupancy rate is n >X n-1 >…>Xn-m+1 , it is determined that the occupancy rate has increased.
[0094] Step S104 : In a preset independent silent upgrade link, a corresponding silent upgrade mode is selected based on the resource occupancy level to perform silent upgrade on the target power system.
[0095] In each silent upgrade mode, at most one type of subtask is upgraded.
[0096] Specifically, the embodiment of the present invention can pre-establish an independent silent upgrade link based on the dedicated communication channel or backup communication channel within the target power system, and subsequently perform a silent upgrade of the target power system in the independent silent upgrade link, thereby reducing the impact of the silent upgrade of the target power system on normal communication. At the same time, the embodiment of the present invention selects a corresponding silent upgrade mode based on the resource occupancy level predicted in the aforementioned steps to perform a silent upgrade on the target power system, and upgrades at most one type of subtask before each change in resource occupancy level, and then completes the upgrade of all subtasks in the silent upgrade task in succession, thereby enabling a highly efficient silent upgrade without affecting the normal use of the equipment in the target power system.
[0097] In some embodiments, the silent upgrade task includes the plurality of first subtasks, the plurality of second subtasks, and the plurality of third subtasks as described above. In this embodiment, step S104 of selecting a corresponding silent upgrade mode based on the resource occupancy level to perform a silent upgrade on the target power system may include:
[0098] If the resource usage is idle, the third subtask is upgraded;
[0099] If the resource usage is in a light load state, the second subtask is upgraded;
[0100] If the resource usage is in a medium load state, the first subtask is upgraded;
[0101] If the resource usage is overloaded, the silent upgrade task will be paused.
[0102] Therefore, the embodiment of the present invention can upgrade the third subtask, the second subtask, and the first subtask when the resource occupancy level is in the idle state, the light load state, and the medium load state, respectively, and suspend the silent upgrade task when the resource occupancy level is in the heavy load state, and finally complete the upgrade of all subtasks in the silent upgrade task one after another. At the same time, it has a high silent upgrade efficiency and will not affect the normal use of the equipment in the target power system.
[0103] In some embodiments, the target power system may also be silently upgraded based on a multi-phase atomic commit protocol.
[0104] The multi-phase atomic commit protocol is suitable for distributed component upgrades. It is understood that embodiments of the present invention silently upgrade the target power system based on the multi-phase atomic commit protocol, ensuring that the target power system maintains a consistent state at any interruption point.
[0105] In some embodiments, the power system silent upgrade method may further include:
[0106] During the execution of the silent upgrade task, the upgrade data of the silent upgrade task is stored in segments based on the non-volatile memory and the flash memory, and an upgrade log file is generated.
[0107] The upgrade log file supports fine-grained operation recording and fast rollback.
[0108] Therefore, the embodiment of the present invention stores the upgrade data of the silent upgrade task in segmented form based on non-volatile memory and flash memory during the silent upgrade process and generates an upgrade log file. This can not only protect the files instantaneously when the target power system loses power, but also can promptly roll back to the key position of the upgrade or the corresponding position to continue updating when the target power system resumes the execution of the silent upgrade task after the power failure, thereby avoiding data loss.
[0109] In some embodiments, after step S104, the power system silent upgrade method may further include:
[0110] Test the various functions of the upgraded target power system, optimize the functions, and check the consistency of the target power system data.
[0111] To sum up, the embodiment of the present invention fragments the silent upgrade task of the target power system when it is triggered to obtain multiple subtasks of different types. After obtaining the occupancy rate of key system resources by user behavior based on the real-time collected key system resources analysis of the target power system, the resource occupancy degree of the target power system is predicted based on the occupancy rate, and in a pre-set independent silent upgrade link, the corresponding silent upgrade mode is selected based on the resource occupancy degree to perform a silent upgrade on the target power system. In this way, the silent upgrade mode can be scheduled in real time based on the change in the occupancy rate of key system resources by user behavior, and the upgrade of different types of subtasks can be completed successively, thereby reducing the system resource occupancy of the target power system during the silent upgrade process, and thus being able to perform efficient silent upgrades without affecting the normal use of equipment in the target power system.
[0112] This embodiment also provides a power system silent upgrade device, which can be integrated into the power system silent upgrade equipment. Figure 2 As shown, the power system silent upgrade device may include:
[0113] The fragmentation processing unit 201 is used to fragment the silent upgrade task in response to triggering the silent upgrade task of the target power system to obtain multiple subtasks of different types. Different types of subtasks have different task sizes, and subtasks of the same type have the same task size.
[0114] The resource analysis unit 202 is configured to collect key system resources of the target power system in real time, and analyze the occupancy rate of the key system resources by user behaviors based on the key system resources.
[0115] The prediction unit 203 is configured to predict the resource occupancy level of the target power system based on the occupancy rate.
[0116] The upgrading unit 204 is configured to select a corresponding silent upgrading mode based on resource occupancy in a preset independent silent upgrading link to silently upgrade the target power system, and to upgrade at most one type of subtask in each silent upgrading mode.
[0117] like Figure 3 Show, Figure 3 A schematic diagram of the structure of a power system silent upgrade device provided in an embodiment of the present invention. The power system silent upgrade device 1100 includes a processor 1101 having one or more processing cores, a memory 1102 having one or more computer-readable storage media, and a computer program stored in the memory 1102 and executable on the processor. The processor 1101 is electrically connected to the memory 1102. It will be understood by those skilled in the art that the structure of the power system silent upgrade device shown in the figure does not constitute a limitation on the power system silent upgrade device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0118] Processor 1101 is the control center of power system silent upgrade device 1100. It connects various components of power system silent upgrade device 1100 using various interfaces and lines. By running or loading software programs and / or units stored in memory 1102 and invoking data stored in memory 1102, it executes various functions of power system silent upgrade device 1100 and processes data, thereby providing overall monitoring of power system silent upgrade device 1100. Processor 1101 can be a CPU, a graphics processor (GPU), a network processor (NP), etc., and can implement or execute the various methods, steps, and logic blocks disclosed in the embodiments of the present invention.
[0119] In an embodiment of the present invention, the processor 1101 in the power system silent upgrade device 1100 will load the instructions corresponding to the processes of one or more applications into the memory 1102 according to the following steps, and the processor 1101 will run the applications stored in the memory 1102 to implement various functions. Please refer to the previous embodiments and will not repeat them here.
[0120] Optional, such as Figure 3 As shown, the power system silent upgrade device 1100 also includes: a touch screen 1103, a radio frequency circuit 1104, an audio circuit 1105, an input unit 1106 and a power supply 1107. Among them, the processor 1101 is electrically connected to the touch screen 1103, the radio frequency circuit 1104, the audio circuit 1105, the input unit 1106 and the power supply 1107 respectively. Those skilled in the art will understand that Figure 3 The illustrated structure of the power system silent upgrade device does not constitute a limitation on the power system silent upgrade device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0121] The touch screen display 1103 can be used to display a graphical user interface and receive operation instructions generated by the user acting on the graphical user interface. The touch screen display 1103 may include a display panel and a touch panel. Among them, the display panel can be used to display information input by the user or information provided to the user and various graphical user interfaces of the power system silent upgrade device, and these graphical user interfaces can be composed of graphics, text, icons, videos and any combination thereof. Optionally, the display panel can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. The touch panel can be used to collect user touch operations on or near it (such as operations performed by the user using any suitable object or accessory such as a finger, stylus, etc. on or near the touch panel), and generate corresponding operation instructions, and the operation instructions execute corresponding programs. Optionally, the touch panel may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch direction, detects the signal caused by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into touch point coordinates, and then sends it to the processor 1101, and can receive commands sent by the processor 1101 and execute them. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it is transmitted to the processor 1101 to determine the type of touch event. Then the processor 1101 provides a corresponding visual output on the display panel according to the type of touch event. In an embodiment of the present invention, the touch panel and the display panel can be integrated into the touch display screen 1103 to realize input and output functions. However, in some embodiments, the touch panel and the touch panel can be used as two independent components to realize input and output functions. That is, the touch display screen 1103 can also be used as part of the input unit 1106 to realize the input function.
[0122] The RF circuit 1104 may be used to transmit and receive RF signals, thereby establishing wireless communication with network equipment or other power system silent upgrade equipment through wireless communication, and transmitting and receiving signals between the network equipment or other power system silent upgrade equipment.
[0123] Audio circuit 1105 can be used to provide an audio interface between the user and the silent power system upgrade device via a speaker and microphone. Audio circuit 1105 can convert received audio data into electrical signals and transmit them to the speaker, which then converts them into sound signals for output. The microphone, on the other hand, converts collected sound signals into electrical signals, which are then received by audio circuit 1105 and converted into audio data. The audio data is then output to processor 1101 for processing, and then transmitted via RF circuit 1104 to, for example, another silent power system upgrade device. Alternatively, the audio data can be output to memory 1102 for further processing. Audio circuit 1105 may also include an earphone jack to facilitate communication between external headphones and the silent power system upgrade device.
[0124] The input unit 1106 may be configured to receive input digital, character information, or user feature information (such as fingerprint, iris, or facial information), and to generate keyboard, mouse, joystick, optical, or trackball signal input related to user settings and function control.
[0125] Power supply 1107 is used to power various components of power system silent upgrade device 1100. Optionally, power supply 1107 can be logically connected to processor 1101 via a power management system, thereby enabling the power management system to manage charging, discharging, and power consumption. Power supply 1107 can also include one or more DC or AC power supplies, a recharging system, a power fault detection circuit, a power converter or inverter, a power status indicator, and other arbitrary components.
[0126] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0127] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be accomplished by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0128] To this end, an embodiment of the present invention provides a computer-readable storage medium storing multiple computer programs. These computer programs can be loaded by a processor to execute any of the power system silent upgrade methods provided in the embodiments of the present invention. This computer program can execute the steps of the aforementioned power system silent upgrade method, which can be found in the previous embodiments and will not be further described here.
[0129] The computer-readable storage medium may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0130] Since the computer program stored in the computer-readable storage medium can execute any one of the power system silent upgrade methods provided in the embodiments of the present invention, the beneficial effects that can be achieved by any one of the power system silent upgrade methods provided in the embodiments of the present invention can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0131] In the above-described embodiments of the power system silent upgrade apparatus, computer-readable storage medium, power system silent upgrade device, and computer program product, the descriptions of each embodiment have different focuses. For portions not described in detail in a particular embodiment, reference can be made to the relevant descriptions of other embodiments. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes and beneficial effects of the above-described power system silent upgrade apparatus, computer-readable storage medium, computer program product, power system silent upgrade device, and their corresponding units can be referred to in the description of the power system silent upgrade method in the above embodiments, and will not be further described herein.
[0132] The above is a detailed introduction to a power system silent upgrade method, power system silent upgrade device, power system silent upgrade equipment, computer-readable storage medium and computer program product provided in an embodiment of the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for technical personnel in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A method for silent upgrade of a power system, characterized in that: The method comprises: In response to triggering a silent upgrade task of a target power system, fragmenting the silent upgrade task to obtain a plurality of subtasks of different types, wherein the subtasks of different types have different task amounts, and the subtasks of the same type have the same task amount; collecting key system resources of the target power system in real time, and analyzing the occupancy rate of the key system resources by user behaviors based on the key system resources; Based on the occupancy rate, predicting the resource occupancy degree of the target power system; In a preset independent silent upgrade link, a corresponding silent upgrade mode is selected based on the resource occupancy level to perform silent upgrade on the target power system, and in each silent upgrade mode, at most one type of subtask is upgraded.
2. The power system silent upgrade method according to claim 1, characterized in that: The method further comprises: If it is confirmed that the equipment in the target power system is idle, the current power of the equipment in the target power system is greater than the preset power, and the network status of the target power system meets the preset conditions, the silent upgrade task of the target power system is triggered.
3. The power system silent upgrade method according to claim 1, characterized in that: The real-time collection of key system resources of the target power system and analysis of the occupancy rate of the key system resources by user behavior based on the key system resources include: Collecting the key system resources based on a preset first time interval, and analyzing the occupancy rate of the key system resources by user behavior based on the key system resources; Based on a preset second time interval, the occupancy rate obtained from the most recent m analyses is captured to obtain a continuous occupancy rate, where m is a preset value, the second time interval is greater than or equal to the first time interval, and the second time interval is less than or equal to twice the first time interval.
4. The power system silent upgrade method according to claim 3, characterized in that: The resource occupancy level includes an idle state, a light load state, a medium load state, and a heavy load state; The predicting, based on the occupancy rate, the resource occupancy degree of the target power system includes: Substituting the continuous occupancy rate into a preset prediction formula to obtain a prediction factor; Determining whether the occupancy rate is increasing based on the continuous occupancy rate, If it is confirmed that the prediction factor is less than a preset first threshold, the resource occupancy level is the light load state; if it is confirmed that the prediction factor is greater than or equal to the first threshold and less than a preset second threshold, the resource occupancy level is the medium load state; if it is confirmed that the prediction factor is greater than or equal to the second threshold and less than a preset third threshold, or the prediction factor is greater than or equal to the third threshold, the resource occupancy level is the heavy load state; If not, confirming that the prediction factor is less than the first threshold, the resource occupancy level is the idle state; confirming that the prediction factor is greater than or equal to the first threshold and less than the second threshold, the resource occupancy level is the light load state; confirming that the prediction factor is greater than or equal to the second threshold and less than the third threshold, the resource occupancy level is the medium load state; confirming that the prediction factor is greater than or equal to the third threshold, the resource occupancy level is the heavy load state; The first threshold is smaller than the second threshold, and the second threshold is smaller than the third threshold.
5. The power system silent upgrade method according to claim 4, characterized in that: The silent upgrade task includes multiple first subtasks, multiple second subtasks, and multiple third subtasks, the task load of the first subtasks is smaller than the task load of the second subtasks, and the task load of the second subtasks is smaller than the task load of the third subtasks; The selecting a corresponding silent upgrade mode based on the resource occupancy level to silently upgrade the target power system includes: If the resource occupancy level is the idle state, upgrading the third subtask; If the resource occupancy level is the light load state, upgrading the second subtask; If the resource occupancy level is the medium load state, upgrading the first subtask; If the resource usage level is in the overload state, the silent upgrade task is suspended.
6. The power system silent upgrade method according to claim 5, characterized in that: The selecting a corresponding silent upgrade mode based on the resource occupancy level to silently upgrade the target power system further includes: The target power system is silently upgraded based on a multi-stage atomic commit protocol.
7. The power system silent upgrade method according to any one of claims 1 to 6, characterized in that: The method further comprises: During the execution of the silent upgrade task, the upgrade data of the silent upgrade task is stored in segments based on the non-volatile memory and the flash memory, and an upgrade log file is generated. The upgrade log file supports fine-grained operation records and fast rollback.
8. A silent upgrade device for a power system, characterized in that: The power system silent upgrade device includes: a fragmentation processing unit, configured to, in response to triggering a silent upgrade task of a target power system, fragment the silent upgrade task to obtain a plurality of subtasks of different types, wherein the subtasks of different types have different task amounts, and the subtasks of the same type have the same task amount; A resource analysis unit, configured to collect key system resources of the target power system in real time, and analyze the occupancy rate of the key system resources by user behaviors based on the key system resources; a prediction unit, configured to predict a resource occupancy level of the target power system based on the occupancy rate; An upgrading unit is configured to select a corresponding silent upgrading mode based on the resource occupancy level in a preset independent silent upgrading link to silently upgrade the target power system, and to upgrade at most one type of subtask in each silent upgrading mode.
9. A power system silent upgrade device, characterized in that: The invention comprises a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the power system silent upgrade method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium includes a computer program. When the computer program is run on an electronic device, the computer program is used to enable the electronic device to execute the steps of the power system silent upgrade method according to any one of claims 1 to 7.
Citation Information
Cited By
Power load privacy joint prediction method
CN122310588A