Performance dynamic adjustment method and system based on negative feedback mechanism of power Internet of Things

By using the time series prediction model and load balancing mechanism in the power Internet of Things system, the number of threads is dynamically adjusted to solve the message accumulation problem and improve the system's operating efficiency and data processing capabilities.

CN116795534BActive Publication Date: 2024-09-27NARI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310337182.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-31
Publication Date
2024-09-27
Estimated Expiration
2043-03-31

AI Technical Summary

Technical Problem

In the traditional power Internet of Things system, equipment data processing is not timely, resulting in the accumulation of messages, which affects the overall performance of the system. A dynamic performance adjustment technology is needed to improve operating efficiency.

Method used

A dynamic performance adjustment method based on the negative feedback mechanism of the power Internet of Things is adopted. Through the time series prediction model and load balancing mechanism, the number of processing threads is dynamically adjusted to ensure data consumption traffic and load balance, and the thread demand for the next time period is predicted and calculated.

Benefits of technology

Effectively reduce message accumulation, reduce data processing delays, improve system operation efficiency, and achieve efficient processing of massive data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116795534B
    Figure CN116795534B
Patent Text Reader

Abstract

The present invention discloses a method and system for dynamically adjusting performance based on the negative feedback mechanism of the electric power Internet of Things, which pulls data from the message queue of the data reported by the terminal device in the electric power Internet of Things and parses it to obtain the time when the data is written into the message queue; calculates the time difference; calculates the data consumption flow according to the time difference and the amount of data processed within the time difference; predicts the data consumption flow prediction value of the next time difference time period; judges the load situation of the next time difference time period according to the data consumption flow prediction value and a pre-set load balancing mechanism; calculates the number of threads in the next time difference time period; and processes business data according to the number of threads in the next time difference time period. Advantages: The present invention combines the time series prediction model, the load balancing mechanism and the adaptive dynamic adjustment strategy to achieve high efficiency of massive data in the electric power Internet of Things, greatly reduce message accumulation, reduce data processing delay, and improve the operating efficiency of the system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a method and system for dynamically adjusting performance based on a negative feedback mechanism of an electric power Internet of Things, and belongs to the technical field of power system data processing. Background Art

[0002] The power system carries a huge power transmission and distribution network and processes massive amounts of complex information. With the continuous advancement of my country's power grid digital transformation, the new power system has put forward new requirements for power grid digitalization, including wider perception, denser interaction, higher timeliness and better security.

[0003] In order to solve the problems of vertical construction of traditional power grid business systems, information models and data fragmentation, a smart IoT system for perception data sharing has emerged. The common technical architecture of power smart IoT covers the unified architecture model of power IoT cloud edge terminal, efficient data sharing and interaction, edge computing and secure access, and is an important foundation for efficient collection, transmission, storage and use of perception data.

[0004] The IoT management platform is at the core of the smart IoT system, meeting the access needs of diversified devices, providing information interaction channels from the device end to the enterprise middle platform and upper-level applications, realizing data sharing, and building an open and shared application ecosystem. Data entering the IoT management platform needs to pass through multiple nodes such as MQTT forwarding units, message queues, and databases. Due to the huge amount of device data in the power IoT field, untimely message processing will cause data accumulation, affecting the overall performance of the system. Therefore, it is necessary to study a dynamic performance adjustment technology that can dynamically adjust the number of processing threads by counting and predicting the number of message accumulations in the message queue during system operation, thereby improving the overall operation efficiency of the platform. Summary of the invention

[0005] The technical problem to be solved by the present invention is to overcome the defects of the prior art and provide a performance dynamic adjustment method and system based on the negative feedback mechanism of the power Internet of Things.

[0006] In order to solve the above technical problems, the present invention provides a performance dynamic adjustment method based on the negative feedback mechanism of the power Internet of Things, comprising:

[0007] Pull data from the message queue of the terminal device reporting data in the power Internet of Things and parse it to obtain the writing message queue time of the data;

[0008] Get the processing time of the data, and calculate the time difference based on the writing time and processing time of the message queue;

[0009] Calculate the data consumption flow according to the time difference and the amount of data processed within the time difference;

[0010] Inputting the data consumption flow into a pre-acquired time series prediction model to obtain a predicted value of the data consumption flow for the next time difference period;

[0011] Determine the load condition of the next time difference period according to the data consumption flow prediction value and the preset load balancing mechanism;

[0012] Obtain the number of threads in the current task, and calculate the number of threads in the next time difference period using a preset adaptive dynamic adjustment strategy according to the number of threads in the current task and the load condition;

[0013] Business data processing is performed according to the number of threads in the next time difference period.

[0014] Furthermore, the time series prediction model adopts the ARIMA time series prediction model, which is expressed as:

[0015]

[0016] Where: is the result of performing d differential operations on the original average consumption flow at time t for the i-th task module, which represents the average consumption flow in the next time difference period; is the average consumption flow in the j time difference periods before the i-th task module; μ is a constant term; γ i ,θ i is the correlation coefficient; ε i and ε i-j is the error term, ε i and ε i-j The mean is 0 and the variance is σ 2 >0 Gaussian white noise, p is the autoregressive order, q is the moving average order, and d is the number of differences.

[0017] Furthermore, the expression of the load balancing mechanism is:

[0018]

[0019] Where WI i is the i-th task module R i The initial weight, W i is the i-th task module R i The current weight, where B i is the i-th task module R i The number of threads, i = 1, ..., n, n represents the total number of task modules, W i / WI i is a fixed value;

[0020] According to the expression of the load balancing mechanism, we can get: when the i-th task module Ri The actual consumption flow L i When the number of tasks increases, in order to maintain the consumption balance, the i-th task module R i Number of threads B i Need to increase accordingly; when the actual consumption flow is L i When it decreases, in order to maintain the consumption balance, the i-th task module R i Number of threads B i Need to be reduced accordingly;

[0021] The expression of the load balancing mechanism is used to determine the i-th task module R i Number of threads B i Increase or decrease.

[0022] Further, the obtaining of the number of threads in the current task and the calculation of the number of threads in the next time difference period using a preset adaptive dynamic adjustment strategy according to the number of threads in the current task and the load condition include:

[0023] The data consumption flow L(k) is calculated based on the time difference and the amount of data pulled within the time difference;

[0024] According to the consumption flow L(k), the consumption flow L(k+1) of the next time difference period is predicted by using the ARIMA time series prediction model to obtain a predicted value predL(k+1);

[0025] Obtain the data accumulation quantity U(k-1) of the previous time difference period in the current task module, the data processing capacity capB of a single thread, and the number of threads B(k) of the current task module;

[0026] If U(k-1)+L(k)>capB×B(k), then the data is piled up, and the amount of accumulation in this time difference period is U(k)=U(k-1)+L(k)-capB×B(k); otherwise, the data is not piled up, and the amount of accumulation in this time period is U(k)=0;

[0027] If U(k)+predL(k+1)-capB×B(k)>0, the current number of threads is insufficient to consume the data in the queue in the next time difference period. Then the number of threads B(k+1) in the next time difference period is calculated. The calculation formula is:

[0028]

[0029] If U(k)+predL(k+1)-capB×B(k)≤0, the current number of threads can process all the data in the queue. The number of threads B(k+1) in the next time difference period is calculated using the following formula:

[0030]

[0031] round() is a rounding function.

[0032] A performance dynamic adjustment device based on a negative feedback mechanism of an electric power Internet of Things, comprising:

[0033] An acquisition module is used to pull data from the message queue of the terminal device reporting data in the power Internet of Things and parse it to obtain the writing message queue time of the data, and obtain the processing time of the data;

[0034] The first calculation module is used to calculate the time difference according to the writing time of the message queue and the processing time;

[0035] A second calculation module is used to calculate the data consumption flow according to the time difference and the amount of data processed within the time difference;

[0036] A prediction module, used to input the data consumption flow into a pre-acquired time series prediction model to obtain a predicted value of the data consumption flow in the next time difference period;

[0037] A judgment module, used to judge the load condition of the next time difference period according to the data consumption flow prediction value and a preset load balancing mechanism;

[0038] A third calculation module is used to obtain the number of threads in the current task, and calculate the number of threads in the next time difference period by using a preset adaptive dynamic adjustment strategy according to the number of threads in the current task and the load condition;

[0039] A processing module is used to process business data according to the number of threads in the next time difference time period.

[0040] Furthermore, the time series prediction model adopts the ARIMA time series prediction model, which is expressed as:

[0041]

[0042] Where: is the result of performing d differential operations on the original average consumption flow at time t for the i-th task module, which represents the average consumption flow in the next time difference period; is the average consumption flow in the j time difference periods before the i-th task module; μ is a constant term; γ i ,θ i is the correlation coefficient; ε i and ε i-j is the error term, ε i and ε i-j The mean is 0 and the variance is σ2 >0 Gaussian white noise, p is the autoregressive order, q is the moving average order, and d is the number of differences.

[0043] Furthermore, the expression of the load balancing mechanism is:

[0044]

[0045] Where WI i is the i-th task module R i The initial weight, W i is the i-th task module R i The current weight, where B i is the i-th task module R i The number of threads, i = 1, ..., n, n represents the total number of task modules, W i / WI i is a fixed value;

[0046] According to the expression of the load balancing mechanism, we can get: when the i-th task module R i The actual consumption flow L i When the number of tasks increases, in order to maintain the consumption balance, the i-th task module R i Number of threads B i Need to increase accordingly; when the actual consumption flow is L i When it decreases, in order to maintain the consumption balance, the i-th task module R i Number of threads B i Need to be reduced accordingly;

[0047] The expression of the load balancing mechanism is used to determine the i-th task module R i Number of threads B i Increase or decrease.

[0048] Furthermore, the third computing module is used to

[0049] The data consumption flow L(k) is calculated based on the time difference and the amount of data pulled within the time difference;

[0050] According to the consumption flow L(k), the consumption flow L(k+1) of the next time difference period is predicted by using the ARIMA time series prediction model to obtain a predicted value predL(k+1);

[0051] Obtain the data accumulation quantity U(k-1) of the previous time difference period in the current task module, the data processing capacity capB of a single thread, and the number of threads B(k) of the current task module;

[0052] If U(k-1)+L(k)>capB×B(k), then the data is piled up, and the amount of accumulation in this time difference period is U(k)=U(k-1)+L(k)-capB×B(k); otherwise, the data is not piled up, and the amount of accumulation in this time period is U(k)=0;

[0053] If U(k)+predL(k+1)-capB×B(k)>0, the current number of threads is insufficient to consume the data in the queue in the next time difference period. Then the number of threads B(k+1) in the next time difference period is calculated. The calculation formula is:

[0054]

[0055] If U(k)+predL(k+1)-capB×B(k)≤0, the current number of threads can process all the data in the queue. The number of threads B(k+1) in the next time difference period is calculated using the following formula:

[0056]

[0057] round() is a rounding function.

[0058] A computer-readable storage medium storing one or more programs, characterized in that the one or more programs include instructions, which, when executed by a computing device, cause the computing device to perform any of the methods described.

[0059] A computer device comprising:

[0060] One or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for executing any of the methods described.

[0061] The beneficial effects achieved by the present invention are:

[0062] The present invention combines the time series prediction model, load balancing mechanism and adaptive dynamic adjustment strategy to achieve efficient processing of massive data in the power Internet of Things, greatly reduce message accumulation, reduce data processing delay and improve system operation efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] Figure 1 It is a schematic diagram of the process of the present invention;

[0064] Figure 2 It is a schematic diagram of the system model;

[0065] Figure 3This is a schematic diagram showing the number of accumulated messages when the platform is operating normally and the number of threads after optimization;

[0066] Figure 4 This is a schematic diagram of the message accumulation during the online period of the IoT management platform and the changes in the number of threads after optimization. DETAILED DESCRIPTION

[0067] The present invention will be further described below in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and cannot be used to limit the protection scope of the present invention.

[0068] Example 1

[0069] like Figure 1 As shown, this embodiment introduces a performance dynamic adjustment method based on the negative feedback mechanism of the power Internet of Things, including:

[0070] Pull data from the message queue of the terminal device reporting data in the power Internet of Things and parse it to obtain the writing message queue time of the data;

[0071] Get the processing time of the data, and calculate the time difference based on the writing time and processing time of the message queue;

[0072] Calculate the data consumption flow according to the time difference and the amount of data processed within the time difference;

[0073] Inputting the data consumption flow into a pre-acquired time series prediction model to obtain a predicted value of the data consumption flow for the next time difference period;

[0074] Determine the load condition of the next time difference period according to the data consumption flow prediction value and the preset load balancing mechanism;

[0075] Obtain the number of threads in the current task, and calculate the number of threads in the next time difference period using a preset adaptive dynamic adjustment strategy according to the number of threads in the current task and the load condition;

[0076] Business data processing is performed according to the number of threads in the next time difference period.

[0077] Load balancing mechanisms include:

[0078] Assume that at time t, the number of messages accumulated in the message queue is M t The time when the message consumed by the consumer module is written to Kafka is T i , in T i The number of messages accumulated in the message queue at time is M i , then the consumption flow at this time is:

[0079] L=(M t-M i ) / (tT i )(1)

[0080] Assume that the i-th task module R i The actual consumption flow is L i ; In order to maintain the consumption balance of the system, the i-th task module R i The consumption flow is L ib , B i is the number of threads of the consumer module, U i is the consumption utilization rate of consumer module i, U s It is the consumption utilization rate of the platform as a whole. The consumption balance is defined as:

[0081]

[0082] Set WI i YesR i The initial weight (reflecting R i Initial flow rate), W i YesR i The current weight (reflecting the R at time t) i actual load capacity). When L ib >L i When R i In light load state, W i Greater than WI i ; When L ib <L i When R i Under heavy load, W i Less than WI i .

[0083] Use the formula To describe this relationship.

[0084]

[0085] From the above formula, it can be concluded that when the actual consumption flow L i When it increases, in order to maintain the consumption balance of the system, the number of threads of the consumer module is B i Need to increase accordingly; when the actual consumption flow L i When it decreases, in order to maintain the consumption balance of the system, the number of threads of the consumer module is B i Need to be reduced accordingly.

[0086] ARIMA time series forecasting models include:

[0087] Let the time interval be t i , the i-th task module R i At time tti The average consumption flow up to the current time t is LA i By using the ARIMA model, the average consumption flow of the task module can be predicted and analyzed. The mathematical expression of the difference operation of the first-order time series of the average consumption flow is:

[0088] ▽ (1) LA i =LA i (1) =LA i -LA i-1 (4)

[0089] The n-order difference operation expression is:

[0090]

[0091] The specific expression of the autoregressive difference moving model is:

[0092]

[0093] Where: The result of performing d differential operations on the original average consumption flow at time t can be used to predict the average consumption flow in the next period; LA i is the average consumption flow value at the current time t; μ is a constant term, usually replaced by the mean of historical data; γ j ,θ j is the correlation coefficient; ε i is the error term, and assumes that the error term has a mean of 0 and a variance of σ 2 Gaussian white noise > 0.

[0094] Adaptive dynamic adjustments include:

[0095] When the i-th task module R i Under heavy load, W i Less than WI i , to ensure the inlet flow L i and consumption flow L j To maintain stability and not generate a large amount of accumulation, the thread manager dynamically predicts and adjusts the number of threads B based on the average flow change trend of the last N batches i , in order to achieve a consumption balance state and reduce the overall message forwarding delay on the platform while minimizing resource utilization.

[0096] Obtain the number of threads in the current task, and calculate the number of threads in the next time difference period using a preset adaptive dynamic adjustment strategy according to the number of threads in the current task and the load condition, including:

[0097] The data consumption flow L(k) is calculated according to the time difference and the amount of data processed in the data pulling module within the time difference;

[0098] According to the consumption flow L(k) calculated previously, the ARIMA time series forecasting model is used to predict the consumption flow L(k+1) of the next time period predL(k+1);

[0099] If the sum of the data accumulation quantity U(k-1) and the consumption flow L(k) in the data pulling module in the previous time period is greater than the product of the data processing capacity capB of a single thread and the number of threads B(k) of the current task module, that is, U(k-1)+L(k)>capB×B(k), then data is accumulated, and the accumulation amount in this time period is U(k)=U(k-1)+L(k)-capB×B(k); otherwise, data is not accumulated, and the accumulation amount in this time period is U(k)=0;

[0100] If the sum of the amount of data accumulation U(k) in the current time period and the predicted consumption traffic forecast value predL(k+1) of the next time period minus the product of the capacity capB of a single thread to process data and the number of threads B(k) of the current task module is greater than 0, that is, U(k)+predL(k+1)-capB×B(k)>0, then the current number of threads is insufficient to consume the data in the queue in the next time period, and the number of threads needs to be increased for processing to reduce the accumulation of data, that is, Otherwise, the current number of threads can process all the data in the queue and is in a light load state. In this case, the number of threads needs to be reduced to reduce resource overhead, that is, Among them, B(k+1) is the number of threads in the next time period, and round is the rounding operation function.

[0101] Example 2

[0102] Based on the same inventive concept as Example 1, this embodiment introduces a performance dynamic adjustment device based on a negative feedback mechanism of the power Internet of Things, including:

[0103] An acquisition module is used to pull data from the message queue of the terminal device reporting data in the power Internet of Things and parse it to obtain the writing message queue time of the data, and obtain the processing time of the data;

[0104] The first calculation module is used to calculate the time difference according to the writing time of the message queue and the processing time;

[0105] A second calculation module is used to calculate the data consumption flow according to the time difference and the amount of data processed within the time difference;

[0106] A prediction module, used to input the data consumption flow into a pre-acquired time series prediction model to obtain a predicted value of the data consumption flow in the next time difference period;

[0107] A judgment module, used to judge the load condition of the next time difference period according to the data consumption flow prediction value and a preset load balancing mechanism;

[0108] A third calculation module is used to obtain the number of threads in the current task, and calculate the number of threads in the next time difference period by using a preset adaptive dynamic adjustment strategy according to the number of threads in the current task and the load condition;

[0109] A processing module is used to process business data according to the number of threads in the next time difference time period.

[0110] Furthermore, the time series prediction model adopts the ARIMA time series prediction model, which is expressed as:

[0111]

[0112] Where: is the result of performing d differential operations on the original average consumption flow at time t for the i-th task module, which represents the average consumption flow in the next time difference period; is the average consumption flow in the j time difference periods before the i-th task module; μ is a constant term; γ i ,θ i is the correlation coefficient; ε i and ε i-j is the error term, ε i and ε i-j The mean is 0 and the variance is σ 2 >0 Gaussian white noise, p is the autoregressive order, q is the moving average order, and d is the number of differences.

[0113] Furthermore, the expression of the load balancing mechanism is:

[0114]

[0115] Where WI i is the i-th task module R i The initial weight, W i is the i-th task module R i The current weight, where B i is the i-th task module R i The number of threads, i = 1, ..., n, n represents the total number of task modules, W i / WI i is a fixed value;

[0116] According to the expression of the load balancing mechanism, we can get: when the i-th task module R i The actual consumption flow L i When the number of tasks increases, in order to maintain the consumption balance, the i-th task module R i Number of threads B i Need to increase accordingly; when the actual consumption flow is L i When it decreases, in order to maintain the consumption balance, the i-th task module R i Number of threads B i Need to be reduced accordingly;

[0117] The expression of the load balancing mechanism is used to determine the i-th task module R i Number of threads B i Increase or decrease.

[0118] Furthermore, the third computing module is used to

[0119] The data consumption flow L(k) is calculated based on the time difference and the amount of data pulled within the time difference;

[0120] According to the consumption flow L(k), the consumption flow L(k+1) of the next time difference period is predicted by using the ARIMA time series prediction model to obtain a predicted value predL(k+1);

[0121] Obtain the data accumulation quantity U(k-1) of the previous time difference period in the current task module, the data processing capacity capB of a single thread, and the number of threads B(k) of the current task module;

[0122] If U(k-1)+L(k)>capB×B(k), then the data is piled up, and the amount of accumulation in this time difference period is U(k)=U(k-1)+L(k)-capB×B(k); otherwise, the data is not piled up, and the amount of accumulation in this time period is U(k)=0;

[0123] If U(k)+predL(k+1)-capB×B(k)>0, the current number of threads is insufficient to consume the data in the queue in the next time difference period. Then the number of threads B(k+1) in the next time difference period is calculated. The calculation formula is:

[0124]

[0125] If U(k)+predL(k+1)-capB×B(k)≤0, the current number of threads can process all the data in the queue. The number of threads B(k+1) in the next time difference period is calculated using the following formula:

[0126]

[0127] round() is a rounding function.

[0128] Example 3

[0129] Based on the same inventive concept as Example 1, this example introduces a performance dynamic adjustment system based on the negative feedback mechanism of the power Internet of Things. The system divides the message processing module into three parts: a data pulling module, a task module, and a business system message queue. Figure 2 As shown. The data pulling module pulls data from the message queue of the terminal device reporting data in the power Internet of Things, and analyzes the time when the data is written into the message queue when pulling, and calculates the time difference with the processing time; when the data is processed by the task module, the task module calculates the time difference between writing and processing the data calculated by the data pulling module and the current number of threads of the task module, and obtains the number of threads that the module needs to dynamically adjust based on the degree of data accumulation, so as to achieve the purpose of dynamic adjustment of performance; the data processed by the task module is pushed to the business system message queue for analysis and processing by different business systems.

[0130] Example 4

[0131] Based on the same inventive concept as other embodiments, this embodiment introduces a computer-readable storage medium storing one or more programs, characterized in that the one or more programs include instructions, which, when executed by a computing device, enable the computing device to perform any of the methods described.

[0132] Example 5

[0133] A computer device comprising:

[0134] One or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for executing any of the methods described.

[0135] like Figure 2 and Figure 3 As shown, in the performance dynamic adjustment experiment, the time series of the number of messages when the IoT management platform is running normally and the time series of the number of messages when the platform is initially launched are used to conduct experiments, and the performance effect is measured by the number of message accumulations in the message queue. According to the test results, it can be seen that the present invention can achieve high efficiency of massive data in the power IoT, greatly reduce message accumulation, reduce data processing delay, and improve the operating efficiency of the system.

[0136] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented 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.

[0137] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0138] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0139] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0140] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A performance dynamic adjustment method based on the negative feedback mechanism of the power Internet of Things, characterized in that: include: Pull data from the message queue of the terminal device reporting data in the power Internet of Things and parse it to obtain the writing message queue time of the data; Get the processing time of the data, and calculate the time difference based on the writing time and processing time of the message queue; Calculate the data consumption flow according to the time difference and the amount of data processed within the time difference; Inputting the data consumption flow into a pre-acquired time series prediction model to obtain a predicted value of the data consumption flow for the next time difference period; Determine the load condition of the next time difference period according to the data consumption flow prediction value and the preset load balancing mechanism; Obtain the number of threads in the current task, and calculate the number of threads in the next time difference period using a preset adaptive dynamic adjustment strategy according to the number of threads in the current task and the load condition; Processing business data according to the number of threads in the next time difference period; The expression of the load balancing mechanism is: ; In the formula, WI i It is i Task Modules R i The initial weight, W i It is i Task Modules R i The current weight, where B i It is i Task Modules R i The number of threads, i =1,…, n , n Indicates the total number of task modules, W i / WI i is a fixed value; According to the expression of load balancing mechanism, we can get: i Task Modules R i Actual consumption flow L i When the consumption increases, in order to maintain the balance of consumption, i Task Modules R i Number of threads B i Need to increase accordingly; when the actual consumption flow is L i When the consumption is reduced, in order to maintain the balance of consumption, i Task Modules R i Number of threads B i Need to be reduced accordingly; The expression of the load balancing mechanism is used to determine the i Task Modules R i Number of threads B i Increase or decrease.

2. The method for dynamic performance adjustment based on the negative feedback mechanism of the electric power Internet of Things according to claim 1 is characterized in that: The time series prediction model adopts the ARIMA time series prediction model, and the expression is: ; Where: For the i Task module pair t The original average consumption flow at the time d The result obtained by the second difference operation represents the average consumption flow in the next time difference period predicted; Before the i-th task module j Average consumption flow in the time difference period; μ is a constant term; γ i , θ i is the correlation coefficient; ε i and ε i-j is the error term, ε i and ε i-j The mean is 0 and the variance is σ 2 Gaussian white noise > 0, p is the autoregressive order, q is the moving average order, d is the number of differences.

3. The method for dynamic performance adjustment based on the negative feedback mechanism of the electric power Internet of Things according to claim 1 is characterized in that: The obtaining of the number of threads in the current task and calculating the number of threads in the next time difference period by using a preset adaptive dynamic adjustment strategy according to the number of threads in the current task and the load condition include: Calculate data consumption flow based on the time difference and the amount of data pulled within the time difference L (k); According to the consumption flow L (k) Use the ARIMA time series forecasting model to predict consumption flow in the next time period L ( k +1) prediction, get the predicted value predL ( k +1); Get the data accumulation quantity of the previous time difference period in the current task module U ( k -1) Ability of a single thread to process data volume capB And the number of threads of the current task module B ( k ); like U ( k -1)+ L (k)> capB × B ( k ), then the data is accumulated, and the amount of accumulation in this time difference period is U ( k )= U ( k -1)+ L (k)- capB × B ( k ), otherwise, there is no data accumulation, and the accumulation amount in this time period U ( k )=0; like U ( k )+ pred L ( k +1)- capB × B ( k )>0, the current number of threads is insufficient to consume the data in the queue in the next time difference period, so the number of threads in the next time difference period is calculated. B ( k+ 1), the calculation formula is: ; like U ( k )+ pred L ( k +1)- capB × B ( k )≤0, the current number of threads can process all the data in the queue, and the number of threads in the next time difference period is calculated. B ( k+ 1), the calculation formula is: ; round ( ) is the rounding operation function.

4. A performance dynamic adjustment device based on the negative feedback mechanism of the power Internet of Things, characterized in that: include: An acquisition module is used to pull data from the message queue of the terminal device reporting data in the power Internet of Things and parse it to obtain the writing message queue time of the data, and obtain the processing time of the data; The first calculation module is used to calculate the time difference according to the writing time and processing time of the message queue; A second calculation module is used to calculate the data consumption flow according to the time difference and the amount of data processed within the time difference; A prediction module, used to input the data consumption flow into a pre-acquired time series prediction model to obtain a predicted value of the data consumption flow in the next time difference period; A judgment module, used to judge the load condition of the next time difference period according to the data consumption flow prediction value and a preset load balancing mechanism; A third calculation module is used to obtain the number of threads in the current task, and calculate the number of threads in the next time difference period by using a preset adaptive dynamic adjustment strategy according to the number of threads in the current task and the load condition; A processing module, used for processing business data according to the number of threads in the next time difference period; The expression of the load balancing mechanism is: ; In the formula, WI i It is i Task Modules R i The initial weight, W i It is i Task Modules R i The current weight, where B i It is i Task Modules R i The number of threads, i =1,…, n , n Indicates the total number of task modules, W i / WI i is a fixed value; According to the expression of load balancing mechanism, we can get: i Task Modules R i Actual consumption flow L i When the consumption increases, in order to maintain the consumption balance, i Task Modules R i Number of threads B i Need to increase accordingly; when the actual consumption flow is L i When the consumption is reduced, in order to maintain the balance of consumption, i Task Modules R i Number of threads B i Need to be reduced accordingly; The expression of the load balancing mechanism is used to determine the i Task Modules R i Number of threads B i Increase or decrease.

5. The performance dynamic adjustment device based on the negative feedback mechanism of the power Internet of Things according to claim 4 is characterized in that: The time series prediction model adopts the ARIMA time series prediction model, and the expression is: ; Where: For the i Task module pair t The original average consumption flow at the time d The result obtained by the second difference operation represents the average consumption flow in the next time difference period predicted; Before the i-th task module j Average consumption flow in the time difference period; μ is a constant term; γ i , θ i is the correlation coefficient; ε i and ε i-j is the error term, ε i and ε i-j The mean is 0 and the variance is σ 2 Gaussian white noise > 0, p is the autoregressive order, q is the moving average order, d is the number of differences.

6. The performance dynamic adjustment device based on the negative feedback mechanism of the power Internet of Things according to claim 4 is characterized in that: The third computing module is used to Calculate data consumption flow based on the time difference and the amount of data pulled within the time difference L (k); According to the consumption flow L (k) Use the ARIMA time series forecasting model to predict consumption flow in the next time period L ( k +1) prediction, get the predicted value predL ( k +1); Get the data accumulation quantity of the previous time difference period in the current task module U ( k -1) Ability of a single thread to process data volume capB And the number of threads of the current task module B ( k ); like U ( k -1)+ L (k)> capB × B ( k ), then the data is accumulated, and the amount of accumulation in this time difference period is U ( k )= U ( k -1)+ L (k)- capB × B ( k ), otherwise, there is no data accumulation, and the accumulation amount in this time period U ( k )=0; like U ( k )+ pred L ( k +1)- capB × B ( k )>0, the current number of threads is insufficient to consume the data in the queue in the next time difference period, so the number of threads in the next time difference period is calculated. B ( k+ 1), the calculation formula is: ; like U ( k )+ pred L ( k +1)- capB × B ( k )≤0, the current number of threads can process all the data in the queue, and the number of threads in the next time difference period is calculated. B ( k+ 1), the calculation formula is: ; round ( ) is the rounding operation function.

7. A computer-readable storage medium storing one or more programs, characterized in that: The one or more programs include instructions which, when executed by a computing device, cause the computing device to perform any one of the methods according to claims 1 to 3.

8. A computer device, characterized in that: include, One or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for executing any one of the methods according to claims 1 to 3.