An adaptive state data update method, device and medium

By breaking down the status data update action into multiple action sets and dynamically adjusting the time interval according to system resource utilization, the timeliness problem caused by the fixed status data update frequency is solved, achieving adaptive status data updates, reducing resource contention, and improving system resource utilization and data timeliness.

CN115664956BActive Publication Date: 2026-05-26INSPUR NETWORK TECH (SHANDONG) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
INSPUR NETWORK TECH (SHANDONG) CO LTD
Filing Date
2022-10-25
Publication Date
2026-05-26

AI Technical Summary

Technical Problem

In existing technologies, the update frequency of status data is a pre-set fixed value, which leads to a lack of guarantee of the timeliness of the status data captured by the protocol status interface. Especially when management protocols are diversified, this can easily cause system resource shortages and data consistency problems.

Method used

By breaking down status data update actions into multiple action sets and dynamically adjusting the time interval strategy based on system resource utilization, status data updates are performed in batches, including a priority update mechanism for queued tasks, ensuring that the data update frequency matches system resources.

Benefits of technology

It achieves adaptive adjustment of the status data update frequency, reduces instantaneous resource contention, maximizes the utilization of system resources, and ensures the timeliness of status data and the availability of interfaces.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115664956B_ABST
    Figure CN115664956B_ABST
Patent Text Reader

Abstract

This specification discloses an adaptive state data update method, device, and medium, relating to the field of data update technology. The method includes: acquiring state data update actions and determining the category of state data corresponding to the state data update actions; splitting the state data update actions into multiple action sets based on the category of state data corresponding to the state data update actions; determining a time interval adjustment strategy corresponding to the current state according to preset rules, wherein the time interval adjustment strategy includes a state data update time interval; updating the state data corresponding to each action set sequentially according to the state data update time interval in the time interval adjustment strategy; and evenly distributing the resource consumption of the data update actions over the time dimension to minimize instantaneous resource contention while maximizing the utilization of system resources and ensuring the timeliness of the state data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This specification relates to the field of data update technology, and in particular to an adaptive state data update method, device and medium. Background Technology

[0002] Network device management protocols typically provide two types of interfaces: configuration interfaces and status interfaces. Configuration interfaces are used to modify device configurations, while status interfaces are used to obtain device status data. In a single management protocol scenario, a status update action can be triggered before the status interface obtains status data. This ensures the timeliness of data acquisition, but it increases the processing flow of the status interface and poses a risk of blocking.

[0003] With the diversification of configuration management protocols, applying the same approach to each protocol would result in frequent state updates, straining system resources and introducing data inconsistencies, significantly impacting the availability of protocol state interfaces. To address this diversification and prevent frequent state updates from different protocols, thus avoiding instantaneous system resource contention and improving state data reusability, a common practice is to decouple the state data acquisition and update processes. This reduces interface processing steps and ensures efficiency and reliability. However, with a fixed, pre-defined update frequency, the timeliness of state data capture by the protocol state interfaces is not guaranteed. Summary of the Invention

[0004] This specification provides one or more embodiments of an adaptive state data update method, device, and medium to solve the following technical problem: the update frequency of state data is a preset fixed value, which lacks guarantee for the timeliness of state data captured by the protocol state interface.

[0005] One or more embodiments of this specification employ the following technical solutions:

[0006] This specification provides one or more embodiments of an adaptive state data update method, the method comprising: acquiring a state data update action and determining the category of state data corresponding to the state data update action; splitting the state data update action into multiple action sets based on the category of state data corresponding to the state data update action; determining a time interval adjustment strategy corresponding to the current state according to a preset rule, wherein the time interval adjustment strategy includes a state data update time interval; and updating the state data corresponding to each action set sequentially according to the state data update time interval in the time interval adjustment strategy.

[0007] Furthermore, according to preset rules, the time interval adjustment strategy corresponding to the current state is determined, specifically including: determining the system resource utilization rate corresponding to the current state; and determining the time interval adjustment strategy corresponding to each action set based on the preset data update time interval and system resource utilization rate.

[0008] Further, based on the pre-set data update time interval and system resource utilization rate, a time interval adjustment strategy is determined for each action set. Specifically, this includes: determining a real-time resource utilization level based on the current system resource utilization rate, wherein the resource utilization level includes Level 1 utilization, Level 2 utilization, and Level 3 utilization, where Level 1 utilization is less than Level 2 utilization, and Level 2 utilization is less than Level 3 utilization; when the real-time resource utilization level is Level 1 utilization, updating the status data corresponding to the action set according to the data update time interval; when the real-time resource utilization level is Level 2 utilization, calculating the product of the data update time interval and a specified coefficient to generate the current data update time interval, and updating the status data corresponding to the action set according to the current data update time interval, wherein the specified coefficient satisfies a preset condition; when the real-time resource utilization level is Level 3 utilization, calculating the product of the data update time interval and a preset coefficient to generate a preset data update time interval, and updating the status data corresponding to the action set according to the preset data update time interval, wherein the preset coefficient is greater than the specified coefficient.

[0009] Further, determining the system resource utilization rate corresponding to the current state specifically includes obtaining the system memory utilization rate and system CPU utilization rate under the current state; and determining the system resource utilization rate corresponding to the current state based on the system memory utilization rate, system CPU utilization rate, preset memory impact factor, and preset CPU impact factor, wherein the sum of the memory impact factor and the CPU impact factor is a specified value.

[0010] Furthermore, according to the time interval adjustment strategy, the state data corresponding to each action set is updated, specifically including: pre-setting an action monitoring period, wherein the action monitoring period is less than the state data update time interval in the time interval adjustment strategy; when updating the state data corresponding to each action set according to the time interval adjustment strategy, monitoring whether there is a queue-jumping task according to the action monitoring period; when there is a queue-jumping task, obtaining the queue-jumping state data update action set corresponding to the queue-jumping task, and prioritizing the update of the queue-jumping state data corresponding to the queue-jumping state data update action set.

[0011] Further, obtaining the queue-jumping status data update action set corresponding to the queue-jumping task specifically includes: setting a mapping relationship between multiple configuration interfaces and the status data update action set corresponding to each configuration interface; determining the specified configuration interface in the queue-jumping task where the configuration interface action occurs; and determining the queue-jumping status data update action set corresponding to the specified configuration interface based on the specified configuration interface and the mapping relationship.

[0012] Furthermore, prioritizing the update of the queue-jumping state data corresponding to the set of update actions specifically includes: determining the update process of multiple action sets corresponding to the current time of the queue-jumping task, wherein the update process includes the update order of multiple action sets and the state data update status corresponding to each action set, and the update status includes updated and unupdated; determining the insertion position of the set of update actions in the update process according to the update order of multiple action sets and the state data update status corresponding to each action set, and generating a queue-jumping update process, wherein the insertion position is the position before the multiple action sets with unupdated status and after the multiple action sets with updated status; and updating the state data sequentially according to the update order in the queue-jumping update process to achieve priority update of the queue-jumping state data.

[0013] Furthermore, based on the system resource utilization rate corresponding to the current state, a real-time resource utilization level is determined, specifically including: preset a first utilization rate threshold and a second utilization rate threshold, wherein the first utilization rate threshold is greater than the second utilization rate threshold; when the system resource utilization rate is greater than the first utilization rate threshold, the real-time resource utilization level is set to level three utilization; when the system resource utilization rate is greater than the second utilization rate threshold but not greater than the first utilization rate threshold, the real-time resource utilization level is set to level two utilization; when the system resource utilization rate is not greater than the second utilization rate threshold, the real-time resource utilization level is set to level one utilization.

[0014] This specification provides one or more embodiments of an adaptive state data update device, comprising:

[0015] At least one processor; and,

[0016] A memory communicatively connected to the at least one processor; wherein,

[0017] The memory stores instructions executable by the at least one processor. These instructions, when executed by the at least one processor, enable the at least one processor to: acquire a state data update action and determine the category of the state data corresponding to the state data update action; based on the category of the state data corresponding to the state data update action, split the state data update action into multiple action sets; determine a time interval adjustment strategy corresponding to the current state according to a preset rule, wherein the time interval adjustment strategy includes a state data update time interval; and update the state data corresponding to each action set sequentially according to the state data update time interval in the time interval adjustment strategy.

[0018] This specification provides one or more embodiments of a non-volatile computer storage medium storing computer-executable instructions, the computer-executable instructions being configured to: acquire a state data update action and determine the category of state data corresponding to the state data update action; based on the category of state data corresponding to the state data update action, split the state data update action into multiple action sets; determine a time interval adjustment strategy corresponding to the current state according to a preset rule, wherein the time interval adjustment strategy includes a state data update time interval; and update the state data corresponding to each action set sequentially according to the state data update time interval in the time interval adjustment strategy.

[0019] The above-mentioned at least one technical solution adopted in the embodiments of this specification can achieve the following beneficial effects: By using the above technical solution, the status data update action is split into multiple action sets, realizing the batch update of status data in each action set; a time interval adjustment strategy corresponding to the current status is set, the time interval adjustment strategy includes the status data update time interval, indicating that the status data update frequency can be dynamically adjusted according to the device system resources, making fuller use of system resources; according to the status data update time interval in the time interval adjustment strategy, the status data corresponding to each action set is updated sequentially, the resource consumption of data update action is evenly distributed in the time dimension, avoiding instantaneous resource competition as much as possible, while maximizing the use of system resources and ensuring the timeliness of status data. Attached Figure Description

[0020] To more clearly illustrate the technical solutions in the embodiments or prior art of this specification, the drawings used in the description of the embodiments or prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this specification. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort. In the drawings:

[0021] Figure 1A flowchart illustrating an adaptive state data update method provided in an embodiment of this specification;

[0022] Figure 2 This is a schematic diagram of an interface data flow provided in an embodiment of this specification;

[0023] Figure 3 A schematic diagram illustrating the splitting of a state data update action into an action set, as provided in an embodiment of this specification;

[0024] Figure 4 A schematic diagram illustrating the mapping relationship between a configuration interface and a set of status data update actions provided in an embodiment of this specification;

[0025] Figure 5 This diagram illustrates a queue-jumping update process provided in an embodiment of this specification.

[0026] Figure 6 This is a schematic diagram of the structure of an adaptive state data update device provided in an embodiment of this specification. Detailed Implementation

[0027] To enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this specification, and not all embodiments. Based on the embodiments of this specification, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of this specification.

[0028] Network device management protocols typically provide two types of interfaces: configuration interfaces and status interfaces. In a single management protocol scenario, a status update action can be triggered before the status interface obtains status data. This ensures the timeliness of data acquisition, but it increases the processing flow of the status interface and poses a risk of blocking.

[0029] With the diversification of configuration management protocols, applying the same approach to each protocol would result in frequent state updates, straining system resources and introducing data inconsistencies, significantly impacting the availability of protocol state interfaces. To address this diversification and prevent frequent state updates from different protocols, thus avoiding instantaneous system resource contention and improving state data reusability, a common practice is to decouple the state data acquisition and update processes. This reduces interface processing steps and ensures efficiency and reliability. However, with a fixed, pre-defined update frequency, the timeliness of state data capture by the protocol state interfaces is not guaranteed.

[0030] This specification provides an adaptive state data update method. It should be noted that the execution subject in this specification embodiment can be a server or any device with data processing capabilities. Figure 1 This is a flowchart illustrating an adaptive state data update method provided in an embodiment of this specification, as shown below. Figure 1 As shown, the main steps include the following:

[0031] Step S101: Obtain the status data update action and determine the category of the status data corresponding to the status data update action.

[0032] In practical applications, the configuration interface is used to modify device configuration, while the status interface is used to obtain device status data. Figure 2 This is a schematic diagram of an interface data flow provided in an embodiment of this specification, such as... Figure 2 As shown, configuration data is obtained through the configuration interface, configuration actions are generated based on the configuration data, the device functional modules update their status according to the configuration actions, and status data is generated after the status update. The status data is obtained through the status interface. The frequent triggering of status updates by status interfaces of different protocols can easily lead to instantaneous system resource competition.

[0033] In one embodiment of this specification, a status data update action is obtained, and the category of status data corresponding to the status data update action is determined. Here, the category refers to the category of device status data.

[0034] Step S102: Based on the category of the state data corresponding to the state data update action, the state data update action is split into multiple action sets.

[0035] In one embodiment of this specification, the state data update action is split into multiple action sets according to category. Figure 3 This is a schematic diagram illustrating a set of actions for splitting a state data update action, as provided in an embodiment of this specification. Figure 3 As shown, the state data update actions are divided into state data update action set 1, state data update action set 2, ..., state data update action set N. The time interval t between state data update action set 1 and state data update action set 2 can be set according to requirements, for example, it can be set to a time interval T. Setting t = T ensures that t*N is within a relatively small time range, thereby updating all state data as quickly as possible. Here, the time interval t is the data update time interval.

[0036] Step S103: Determine the time interval adjustment strategy corresponding to the current state according to preset rules.

[0037] The time interval adjustment strategy includes the status data update time interval.

[0038] According to preset rules, determine the time interval adjustment strategy corresponding to the current state, specifically including: determining the system resource utilization rate corresponding to the current state; and determining the time interval adjustment strategy corresponding to each action set based on the preset data update time interval and system resource utilization rate.

[0039] In one embodiment of this specification, the system resources change in real time due to different actions performed within the system at different times, thus determining the system resource utilization rate corresponding to the current state. Different resource utilization rates correspond to different data update time intervals. Based on a pre-set initial data update time interval and the system resource utilization rate corresponding to the current state, a time interval adjustment strategy is determined for each action set.

[0040] Determining the system resource utilization rate corresponding to the current state specifically includes: obtaining the system memory utilization rate and system CPU utilization rate under the current state; and determining the system resource utilization rate corresponding to the current state based on the system memory utilization rate, system CPU utilization rate, preset memory impact factor, and preset CPU impact factor, wherein the sum of the memory impact factor and the CPU impact factor is a specified value.

[0041] In one embodiment of this specification, the system memory utilization and system CPU utilization in the current state are obtained, and the system resource utilization corresponding to the current state is generated according to the following calculation method: System resource utilization = System CPU utilization * CPU influence weight ratio + System memory utilization * Memory influence weight ratio. Here, the CPU influence weight ratio is a preset CPU influence factor, and the memory influence weight ratio is a preset memory influence factor. The CPU influence weight ratio and memory influence weight ratio can be determined according to the actual hardware performance level. Resources with weaker performance have a higher weight ratio, that is, the sum of the memory influence factor and the CPU influence factor is 1.

[0042] Based on the pre-set data update interval and system resource utilization, a time interval adjustment strategy is determined for each action set. Specifically, this includes: determining the real-time resource utilization level based on the current system resource utilization rate, where the resource utilization level includes Level 1 utilization, Level 2 utilization, and Level 3 utilization, with Level 1 utilization being less than Level 2 utilization, and Level 2 utilization being less than Level 3 utilization; when the real-time resource utilization level is Level 1 utilization, updating the status data corresponding to the action set according to the data update interval; when the real-time resource utilization level is Level 2 utilization, calculating the product of the data update interval and a specified coefficient to generate the current data update interval, and updating the status data corresponding to the action set according to the current data update interval, where the specified coefficient satisfies a preset condition; when the real-time resource utilization level is Level 3 utilization, calculating the product of the data update interval and a preset coefficient to generate a preset data update interval, and updating the status data corresponding to the action set according to the preset data update interval, where the preset coefficient is greater than the specified coefficient.

[0043] Based on the system resource utilization rate corresponding to the current state, the real-time resource utilization level is determined, specifically including: preset a first utilization rate threshold and a second utilization rate threshold, wherein the first utilization rate threshold is greater than the second utilization rate threshold; when the system resource utilization rate is greater than the first utilization rate threshold, the real-time resource utilization level is set to level three; when the system resource utilization rate is greater than the second utilization rate threshold but not greater than the first utilization rate threshold, the real-time resource utilization level is set to level two; when the system resource utilization rate is not greater than the second utilization rate threshold, the real-time resource utilization level is set to level one.

[0044] In one embodiment of this specification, the real-time resource utilization level corresponding to the current state is determined based on the system resource utilization rate corresponding to the current state. A first utilization rate threshold and a second utilization rate threshold are preset; the first utilization rate threshold can be 70%, and the second utilization rate threshold can be 30%. When the calculated system resource utilization rate is greater than 70%, the real-time resource utilization level is set to level three; when the system resource utilization rate is greater than 30% and less than or equal to 70%, the real-time resource utilization level is set to level two; and when the system resource utilization rate is less than or equal to 30%, the real-time resource utilization level is set to level one.

[0045] In one embodiment of this specification, when the real-time resource utilization level is Level 1, the data update interval remains unchanged, and the status data corresponding to the action set is updated. When the real-time resource utilization level is Level 2, the initial data update interval is adjusted. The current data update interval is generated by calculating the product of this data update interval and a specified coefficient. The status data corresponding to the action set is updated according to the current data update interval. The specified coefficient satisfies a preset condition; it should be noted that the specified coefficient here is a positive number greater than 1, for example, it can be set to 2. The product of the data update interval and 2 is used as the current status data update interval for data updates.

[0046] When the real-time resource utilization level is level three, the initial data update interval is adjusted. A preset data update interval is generated by calculating the product of the data update interval and a preset coefficient. The status data corresponding to the action set is updated according to this preset data update interval. The preset coefficient is greater than the specified coefficient and is a positive number greater than 1. For example, the preset coefficient can be set to 3. The product of the initial data update interval and 3 is calculated as the preset data update interval for the current state. The status data corresponding to the action set is updated according to the preset data update interval.

[0047] In one embodiment of this specification, it is set Figure 3 Set 1 contains updates to system resource utilization. After completing the update process of Set 1, the time interval t is adjusted based on the real-time status of system resource utilization. The table below shows the time interval adjustment information using a three-level adjustment strategy as an example:

[0048] Real-time resource utilization status Time interval adjustment strategy Resource utilization rate ≤30% Keep the time interval t = T constant 30% < Resource utilization rate ≤ 70% Adjustment time interval t = T * 2 Resource utilization rate >70% Adjustment time interval t = T * 3

[0049] After completing the update process of set 1, if the current real-time resource utilization rate is less than or equal to 30%, the data update interval remains unchanged; if the current real-time resource utilization rate is greater than 30% and less than or equal to 70%, the data update interval is adjusted to twice the initial data update interval; if the current real-time resource utilization rate is greater than 70%, the data update interval is adjusted to three times the initial data update interval.

[0050] Step S104: Adjust the state data update time interval in the strategy according to the time interval, and update the state data corresponding to each action set in sequence.

[0051] In one embodiment of this specification, the state data update time interval in the time interval adjustment strategy is used to update the state data corresponding to each action set sequentially. By using a batch update strategy, the resource consumption of data update actions can be evenly distributed over the time dimension, minimizing instantaneous resource contention and maximizing the utilization of system resources to ensure the timeliness of state data.

[0052] According to the time interval adjustment strategy, the state data corresponding to each action set is updated. Specifically, this includes: pre-setting an action monitoring period, wherein the action monitoring period is shorter than the state data update time interval in the time interval adjustment strategy; when updating the state data corresponding to each action set according to the time interval adjustment strategy, monitoring for the existence of queue-jumping tasks according to the action monitoring period; when a queue-jumping task exists, obtaining the queue-jumping state data update action set corresponding to the queue-jumping task, and prioritizing the update of the queue-jumping state data corresponding to the queue-jumping state data update action set.

[0053] When administrators modify device configurations using the management protocol configuration interface, they expect the corresponding status data obtained from the status interface to change promptly to verify the configuration's effectiveness. However, based on the above implementation, the status data may not change until at least t*N periods later. To address this, a queue-jumping update strategy is introduced to ensure that the corresponding status data is updated as quickly as possible after the configuration interface action.

[0054] In one embodiment of this specification, an action monitoring period U, also known as a polling period U, is preset. This action monitoring period is shorter than the state data update time interval in the time interval adjustment strategy, and can be set to a small time interval in the millisecond range to achieve rapid updates of specific state data. When updating the state data corresponding to each action set according to this time interval adjustment strategy, the system monitors for the existence of any "queue-jumping" tasks according to the action monitoring period. Here, a queue-jumping task refers to a set of queue-jumping state data update actions generated after a configuration interface action occurs and the configuration is successful. When a queue-jumping task exists, the system obtains the queue-jumping state data update action set corresponding to the queue-jumping task and prioritizes updating the queue-jumping state data corresponding to that set.

[0055] Obtain the set of queue-jumping status data update actions corresponding to the queue-jumping task, specifically including: setting a mapping relationship between multiple configuration interfaces and the set of status data update actions corresponding to each configuration interface; determining the specified configuration interface in the queue-jumping task where the configuration interface action occurs; and determining the set of queue-jumping status data update actions corresponding to the specified configuration interface based on the specified configuration interface and the mapping relationship.

[0056] In one embodiment of this specification, since there are multiple configuration interfaces in the system, and each configuration interface corresponds to a set of state data update actions, a mapping relationship is set between the multiple configuration interfaces and the set of state data update actions corresponding to each configuration interface. Figure 4 This is a schematic diagram illustrating the mapping relationship between a configuration interface and a set of state data update actions provided in an embodiment of this specification, as shown below. Figure 4 As shown, configuration interface 1 corresponds to the set of status data update actions A, and configuration interface 2 corresponds to the set of status data update actions B. The specified configuration interface in the queue-jumping task that triggers a configuration interface action is determined; based on this specified configuration interface, the set of queue-jumping status data update actions corresponding to the specified configuration interface is determined in the mapping relationship.

[0057] Prioritize updating the queue-jumping status data corresponding to the set of actions for updating queue-jumping status data. Specifically, this includes: determining the update process of multiple action sets corresponding to the current time of the queue-jumping task, wherein the update process includes the update order of multiple action sets and the status data update status corresponding to each action set, which includes updated and unupdated statuses; determining the insertion position of the set of actions for updating queue-jumping status data in the update process based on the update order of multiple action sets in the update process, and generating the queue-jumping update process, wherein the insertion position is before the multiple action sets with unupdated statuses and after the multiple action sets with updated statuses; and updating the status data sequentially according to the update order in the queue-jumping update process to achieve priority updating of the queue-jumping status data.

[0058] In one embodiment of this specification, the update process of multiple action sets corresponding to the current time of the queue-jumping task is determined. The update process includes the update order of the multiple action sets and the status data update status corresponding to each action set. The update status includes updated and not updated. It should be noted that if an update action set is being executed but not yet completed, the update status of the action set is set to updated.

[0059] Figure 5 This is a schematic diagram of a queue-jumping update process provided in an embodiment of this specification, such as... Figure 5As shown, when a configuration interface action occurs, it is determined whether the configuration was successful. If so, an update queue-jumping task is generated. This update queue-jumping task includes specific status data update actions, namely, queue-jumping status data update actions. Generating an update queue-jumping task means obtaining the set of queue-jumping status data update actions corresponding to the queue-jumping task and prioritizing the update of the queue-jumping status data corresponding to the set of queue-jumping status data update actions. Based on the update order of multiple action sets in the update process and the status data update status corresponding to each action set, the insertion position of the queue-jumping status data update action set in the update process is determined, and the queue-jumping update process is generated. For example... Figure 5 As shown, assuming the current set n is the updated state, and set n+1 is the set of actions in the update process that will execute the update operation next to set n, after completing the update in set n, a polling process is performed periodically U to check if there is an intercalation task. If so, the update action corresponding to the intercalation task is inserted after set n and before set n+1, generating an intercalation update process. The state data is updated sequentially according to the update order in the intercalation update process to achieve priority update of the intercalation state data. The polling period U of the intercalation task is designed to be a small time interval, such as milliseconds, to achieve fast update of specific state data. This can improve the timeliness of the state interface while improving its coordination performance with the configuration interface, thereby improving the interface availability.

[0060] The above technical solution breaks down the status data update action into multiple action sets, enabling batch updates of status data in each action set. A time interval adjustment strategy is set for the current status, including the status data update time interval. This indicates that the status data update frequency can be dynamically adjusted based on device system resources, making fuller use of system resources. Based on the status data update time interval in the time interval adjustment strategy, the status data corresponding to each action set is updated sequentially, distributing the resource consumption of the data update action evenly across the time dimension. This minimizes instantaneous resource contention while maximizing system resource utilization and ensuring the timeliness of status data.

[0061] This specification also provides an adaptive state data update device, such as... Figure 6As shown, the device includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to: acquire a state data update action and determine the category of state data corresponding to the state data update action; based on the category of state data corresponding to the state data update action, split the state data update action into multiple action sets; determine a time interval adjustment strategy corresponding to the current state according to a preset rule, wherein the time interval adjustment strategy includes a state data update time interval; and update the state data corresponding to each action set sequentially according to the state data update time interval in the time interval adjustment strategy.

[0062] This specification also provides a non-volatile computer storage medium storing computer-executable instructions, which are configured to: acquire a state data update action and determine the category of state data corresponding to the state data update action; based on the category of state data corresponding to the state data update action, split the state data update action into multiple action sets; determine a time interval adjustment strategy corresponding to the current state according to a preset rule, wherein the time interval adjustment strategy includes a state data update time interval; and update the state data corresponding to each action set sequentially according to the state data update time interval in the time interval adjustment strategy.

[0063] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the embodiments of apparatus, devices, and non-volatile computer storage media are basically similar to the method embodiments, so the descriptions are relatively simple; relevant parts can be referred to the descriptions of the method embodiments.

[0064] The foregoing has described specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in a different order than that shown in the embodiments and may still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require the specific or sequential order shown to achieve the desired result. In some embodiments, multitasking and parallel processing are possible or may be advantageous.

[0065] The devices, media, and methods provided in the embodiments of this specification are one-to-one correspondences. Therefore, the devices and media also have similar beneficial technical effects as their corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the devices and media will not be repeated here.

[0066] Those skilled in the art will understand that embodiments of this specification can be provided as methods, systems, or computer program products. Therefore, this specification may take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this specification may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0067] This specification is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this specification. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create a machine for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0068] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0069] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0070] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0071] Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

[0072] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.

[0073] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0074] The above description is merely one or more embodiments of this specification and is not intended to limit this specification. Various modifications and variations can be made to the one or more embodiments of this specification by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principle of one or more embodiments of this specification should be included within the scope of the claims of this specification.

Claims

1. An adaptive state data update method, characterized in that, The method includes: Obtain the status data update action and determine the category of the status data corresponding to the status data update action; Based on the category of the state data corresponding to the state data update action, the state data update action is split into multiple action sets; According to preset rules, the time interval adjustment strategy corresponding to the current state is determined, wherein the time interval adjustment strategy includes the state data update time interval; The state data update time interval in the time interval adjustment strategy is adjusted according to the time interval, and the state data corresponding to each action set is updated sequentially. According to preset rules, the time interval adjustment strategy corresponding to the current state is determined, specifically including: Determine the system resource utilization rate corresponding to the current state; Based on the pre-set data update interval and system resource utilization, determine the time interval adjustment strategy for each action set.

2. The adaptive state data update method according to claim 1, characterized in that, Based on the pre-set data update interval and system resource utilization, determine the time interval adjustment strategy for each action set, specifically including: Based on the system resource utilization rate corresponding to the current state, the real-time resource utilization level is determined, wherein the real-time resource utilization level includes a first-level utilization rate, a second-level utilization rate, and a third-level utilization rate, wherein the first-level utilization rate is less than the second-level utilization rate, and the second-level utilization rate is less than the third-level utilization rate; When the real-time resource utilization level is Level 1 utilization, the status data corresponding to the action set is updated according to the data update time interval; When the real-time resource utilization level is level 2 utilization, the product of the data update time interval and the specified coefficient is calculated to generate the current data update time interval. The status data corresponding to the action set is updated according to the current data update time interval, wherein the specified coefficient satisfies a preset condition. When the real-time resource utilization level is level three, the product of the data update time interval and the preset coefficient is calculated to generate the preset data update time interval. The status data corresponding to the action set is updated according to the preset data update time interval, wherein the preset coefficient is greater than the specified coefficient.

3. The adaptive state data update method according to claim 1, characterized in that, Determine the system resource utilization rate corresponding to the current state, specifically including Get the current system memory utilization and system CPU utilization; Based on the system memory utilization, system CPU utilization, preset memory impact factor, and preset CPU impact factor, the system resource utilization corresponding to the current state is determined, wherein the sum of the memory impact factor and the CPU impact factor is a specified value.

4. The adaptive state data update method according to claim 1, characterized in that, According to the time interval adjustment strategy, the state data corresponding to each action set is updated, specifically including: A pre-set action monitoring cycle is provided, wherein the action monitoring cycle is less than the status data update time interval in the time interval adjustment strategy; When updating the state data corresponding to each action set according to the strategy adjustment based on the time interval, the system monitors whether there are any queue-jumping tasks according to the action monitoring cycle. When a queue-jumping task exists, obtain the queue-jumping status data update action set corresponding to the queue-jumping task, and prioritize updating the queue-jumping status data corresponding to the queue-jumping status data update action set.

5. The adaptive state data update method according to claim 4, characterized in that, Obtain the set of queue-jumping status data update actions corresponding to the queue-jumping task, specifically including: Set up a mapping relationship between multiple configuration interfaces and the set of status data update actions corresponding to each configuration interface; Identify the specified configuration interface through which the configuration interface action occurs in the queue-jumping task; Based on the specified configuration interface and the mapping relationship, determine the set of queue-jumping status data update actions corresponding to the specified configuration interface.

6. The adaptive state data update method according to claim 4, characterized in that, Prioritize updating the queue-jumping state data corresponding to the set of queue-jumping state data update actions, specifically including: Determine the update process of multiple action sets corresponding to the current time of the queue-jumping task, wherein the update process includes the update order of multiple action sets and the update status of the status data corresponding to each action set, and the update status includes updated and not updated; Based on the update order of multiple action sets in the update process and the status data update status corresponding to each action set, the insertion position of the queued status data update action set in the update process is determined, and a queued update process is generated. The insertion position is the position before the multiple action sets with unupdated status and after the multiple action sets with updated status. The status data is updated sequentially according to the update order in the queue-jumping update process, so as to prioritize the update of the queue-jumping status data.

7. The adaptive state data update method according to claim 2, characterized in that, Based on the system resource utilization rate corresponding to the current state, the real-time resource utilization level is determined, specifically including: A first utilization threshold and a second utilization threshold are preset, wherein the first utilization threshold is greater than the second utilization threshold; When the system resource utilization rate is greater than the first utilization rate threshold, the real-time resource utilization level is set to level three. When the system resource utilization rate is greater than the second utilization rate threshold but not greater than the first utilization rate threshold, the real-time resource utilization level is set to level two utilization rate. When the system resource utilization rate is not greater than the second utilization rate threshold, the real-time resource utilization level is set to Level 1 utilization rate.

8. An adaptive state data update device, characterized in that, The device includes: At least one processor; and, A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to: Obtain the status data update action and determine the category of the status data corresponding to the status data update action; Based on the category of the state data corresponding to the state data update action, the state data update action is split into multiple action sets; According to preset rules, the time interval adjustment strategy corresponding to the current state is determined, wherein the time interval adjustment strategy includes the state data update time interval; The state data update time interval in the time interval adjustment strategy is adjusted according to the time interval, and the state data corresponding to each action set is updated sequentially. According to preset rules, the time interval adjustment strategy corresponding to the current state is determined, specifically including: Determine the system resource utilization rate corresponding to the current state; Based on the pre-set data update interval and system resource utilization, determine the time interval adjustment strategy for each action set.

9. A non-volatile computer storage medium storing computer-executable instructions, wherein the computer-executable instructions are configured as follows: Obtain the status data update action and determine the category of the status data corresponding to the status data update action; Based on the category of the state data corresponding to the state data update action, the state data update action is split into multiple action sets; According to preset rules, determine the time interval adjustment strategy corresponding to the current state, where... The time interval adjustment strategy includes the status data update time interval; The state data update time interval in the time interval adjustment strategy is adjusted according to the time interval, and the state data corresponding to each action set is updated sequentially. According to preset rules, the time interval adjustment strategy corresponding to the current state is determined, specifically including: Determine the system resource utilization rate corresponding to the current state; Based on the pre-set data update interval and system resource utilization, determine the time interval adjustment strategy for each action set.