A server computing resource allocation method and system for edge collaborative computing

By analyzing the environment and operating data of the edge server and dynamically adjusting resource allocation, the problem of low resource utilization under the static allocation strategy is solved, and the efficiency and stability of edge collaborative computing are improved.

CN118394529BActive Publication Date: 2024-08-23CHANGSHA RUITENG INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410814363.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-24
Publication Date
2024-08-23
Estimated Expiration
2044-06-24

AI Technical Summary

Technical Problem

The existing technology uses static strategies in edge server resource allocation, which is difficult to cope with dynamic demand changes, resulting in low resource utilization, reduced system efficiency, and inability to take advantage of edge collaborative computing.

Method used

By obtaining the temperature time series data and humidity time series data of the edge server, analyze the temperature impact characteristic value and resource allocation confidence, and determine the load redundancy and importance parameters based on the CPU usage, memory usage, response time and processing data volume. Calculate allocation fault tolerance and implement dynamic resource allocation.

Benefits of technology

It improves resource utilization, ensures server load balancing, improves system performance and stability, prioritizes server resource allocation of high importance, effectively responds to dynamic demands, and takes advantage of edge collaborative computing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118394529B
    Figure CN118394529B
Patent Text Reader

Abstract

The present invention relates to the technical field of resource allocation in edge computing scenarios, and specifically to a server computing resource allocation method and system for edge collaborative computing. By analyzing the temperature and humidity time series data of the edge server and their relationship, the resource allocation confidence is determined, and the CPU usage, memory usage, response time, and data processing volume are comprehensively considered to obtain the load redundancy for subsequent dynamic adjustment of resource allocation to ensure load balancing. By quantifying the role of the edge server in the overall system, the importance parameter is obtained. Finally, the allocation fault tolerance rate is determined in combination with multiple indicators to achieve dynamic resource allocation. The present invention comprehensively considers factors such as the environment, operating status, load, and importance, effectively responds to the dynamic needs of edge servers, can improve resource utilization and system efficiency, and give full play to the advantages of edge collaborative computing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of resource allocation in edge computing scenarios, and specifically to a server computing resource allocation method and system for edge collaborative computing. Background Art

[0002] Edge server is a distributed computing architecture used to perform edge collaborative computing tasks. These servers are usually located at the edge of the network, close to data generation sources and end users. They aim to deploy computing resources at the edge of the network to process and analyze data close to where the data is generated, thereby reducing data transmission delays and providing data centers with lower latency and higher real-time performance.

[0003] The existing technology often adopts a static allocation strategy when allocating resources to edge servers, that is, allocating computing resources to edge nodes in advance. However, since the environment in which the edge servers are located, the task requirements of the servers, and the status of the servers are all changing in real time, the static allocation strategy is difficult to cope with the ever-changing dynamic needs, which will lead to low resource utilization, reduce the overall efficiency of the system, and fail to give full play to the advantages of edge collaborative computing. Summary of the invention

[0004] In order to solve the technical problem that the static allocation strategy is difficult to cope with the constantly changing dynamic needs of the edge server, which will lead to low resource utilization of the edge server, reduce the overall efficiency of the system, and fail to give full play to the advantages of edge collaborative computing, the purpose of the present invention is to provide a server computing resource allocation method and system for edge collaborative computing, and the technical solutions adopted are as follows:

[0005] Obtaining the temperature time series data and humidity time series data of each edge server in each cycle of a preset historical period;

[0006] In each cycle, the temperature impact characteristic value of each edge server is obtained according to the change of the temperature value in the temperature time series data of each edge server and the difference between the preset temperature threshold and the temperature value; the resource allocation confidence of each edge server is obtained according to the change synchronization of the temperature time series data and the humidity time series data of each edge server and the temperature impact characteristic value of each edge server;

[0007] In each cycle, the load redundancy of each edge server is determined based on the CPU usage rate, memory usage ratio, response time of each data, and data processing volume of each edge server. The importance parameters of each edge server are obtained by comprehensively analyzing the changes in the data processing volume and total data processing time among all edge servers.

[0008] In each cycle, the allocation fault tolerance rate of each edge server is determined based on the resource allocation confidence, load redundancy, importance parameters and processed data volume of each edge server; in all cycles of the preset historical period, dynamic resource allocation is performed on each edge server in the current cycle according to the allocation fault tolerance rate of all edge servers.

[0009] Furthermore, the method for obtaining the temperature influence characteristic value includes:

[0010] For any edge server, in each cycle, the difference between the preset temperature threshold and the temperature value at each moment in the temperature time series data of the edge server is used as the temperature difference factor, and the average of the temperature difference factors corresponding to all moments is used as the first temperature factor;

[0011] Calculate the average of the temperature values ​​at all times as the temperature average, and use the difference between the preset temperature threshold and the temperature average as the second temperature factor;

[0012] The first temperature factor and the second temperature factor are merged to obtain a temperature impact characteristic value of the edge server in each cycle, and the first temperature factor and the second temperature factor are both negatively correlated with the temperature impact characteristic value.

[0013] Furthermore, the method for obtaining the resource allocation confidence includes:

[0014] In each cycle, based on the correlation between the data values ​​of the temperature time series data and the humidity time series data of each edge server, an environmental impact factor of each edge server is determined;

[0015] According to the environmental impact factor and the temperature impact characteristic value of each edge server, the resource allocation confidence of each edge server in each cycle is obtained, and the environmental impact factor and the temperature impact characteristic value are both negatively correlated with the resource allocation confidence.

[0016] Further, the determining of the environmental impact factor of each edge server based on the correlation between the data values ​​of the temperature time series data and the humidity time series data of each edge server includes:

[0017] The Pearson correlation coefficient of the data values ​​in the temperature time series data and the humidity time series data is calculated, and the value after the Pearson correlation coefficient is numerically adjusted is used as the environmental influencing factor.

[0018] Furthermore, the method for obtaining the load redundancy includes:

[0019] In each cycle, for any edge server, the ratio of the memory usage of the edge server to the total memory capacity is taken as the memory usage ratio;

[0020] The average CPU usage rate when the edge server processes all data is used as the average usage rate; the average response time of all data of the edge server is used as the response mean, and the ratio of the response mean to the amount of processed data is used as the load factor of the edge server;

[0021] Based on the memory usage percentage, average usage rate and load factor of the edge server, the load redundancy of the edge server in each cycle is determined, and the memory usage percentage, average usage rate and load factor are all positively correlated with the load redundancy.

[0022] Furthermore, the method for obtaining the importance parameter includes:

[0023] In each cycle, the computing rate of each edge server is determined based on the total processing time and the amount of data processed by each edge server;

[0024] Select any edge server as the target server, calculate the difference between the target server and the calculation rate of other edge servers as the rate difference factor; take the mean of all rate difference factors of the target server as the significance factor of the target server;

[0025] The importance parameter of each edge server in each cycle is determined according to the significance factor and the calculation rate of each edge server, wherein the significance factor and the calculation rate both change in the same direction as the significance parameter.

[0026] Furthermore, the method for obtaining the allocation fault tolerance rate includes:

[0027] In each cycle, based on the load redundancy, importance parameter and processed data volume of each edge server, a penalty item of the fault tolerance rate of each edge server is determined, and the load redundancy, importance parameter and processed data volume are all positively correlated with the value of the penalty item;

[0028] The penalty item and resource allocation confidence of each edge server are integrated to obtain the allocation fault tolerance rate of each edge server in each cycle, wherein the value of the penalty item and the resource allocation confidence rate both change in the same direction as the allocation fault tolerance rate.

[0029] Furthermore, in all cycles of the preset historical period, dynamically allocating resources to each edge server in the current cycle according to the allocation fault tolerance of all edge servers includes:

[0030] For any edge server, determine a resource allocation weight value of the edge server based on the allocation fault tolerance rate of the edge server in all cycles in a preset historical period;

[0031] The amount of resources required by each edge server in the current cycle is calculated based on the resource allocation weight values ​​of each edge server.

[0032] Furthermore, the method for obtaining the resource allocation weight value includes:

[0033] For any edge server, the average of the allocation fault tolerance rates of the edge server in all cycles in a preset historical period is used as a weight factor;

[0034] The resource allocation weight value of the edge server is determined based on the proportion of the weight factor of the edge server in the weight factors of all edge servers.

[0035] The present invention also proposes a server computing resource allocation system for edge collaborative computing, the system comprising:

[0036] A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the steps of any one of the methods can be implemented when the processor executes the computer program.

[0037] The present invention has the following beneficial effects:

[0038] The purpose of the present invention is to dynamically allocate computing resources of edge servers, so that resource utilization is improved and the advantages of edge collaborative computing are brought into play. Since environmental factors have a great impact on the performance of edge servers, especially temperature and humidity changes, when the impact is large, the allocation of computing resources will be limited. Therefore, by analyzing the relationship between the temperature time series data and the humidity time series data of the edge server and the data change characteristics, the resource allocation confidence of the edge server is determined for subsequent dynamic adjustment of the resource allocation strategy; further, by analyzing the CPU usage, memory usage, response time and data processing volume of the edge server, the load of the server can be understood. Based on these data, dynamic adjustment of resource allocation can ensure load balancing between servers and improve the performance and stability of the overall system. Then, the amount of data processed and the total time of data processing of all edge servers are comprehensively analyzed, and the role of the edge server in the overall system can be quantified to obtain the importance parameter, which ensures that when performing resource allocation in the future, the edge server with higher importance can be given priority, thereby improving data processing efficiency. Finally, the allocation fault tolerance rate of each edge server is determined by combining the above-mentioned multiple indicators, and then dynamic resource allocation is performed on each edge server. The present invention comprehensively considers multiple factors, including environmental factors, the operating status of the edge server, load conditions, importance, etc., realizes dynamic allocation of resources, and helps to cope with ever-changing dynamic needs. Therefore, it can effectively improve resource utilization and the overall efficiency of the system, and give full play to the advantages of edge collaborative computing. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0040] Figure 1 A method flow chart of a method for allocating computing resources of a server for edge collaborative computing provided by an embodiment of the present invention;

[0041] Figure 2 A schematic diagram of an edge computing application scenario provided by an embodiment of the present invention;

[0042] Figure 3 A method flow chart of a method for obtaining a temperature influence characteristic value provided by an embodiment of the present invention;

[0043] Figure 4 A method flow chart of a method for obtaining resource allocation confidence provided by an embodiment of the present invention;

[0044] Figure 5 A system block diagram of a server computing resource allocation system for edge collaborative computing provided by an embodiment of the present invention;

[0045] Figure 6 A schematic diagram of the system structure of a server computing resource allocation system for edge collaborative computing provided by an embodiment of the present invention;

[0046] Figure 7 A schematic diagram of a computer-readable storage medium provided for one embodiment of the present invention. DETAILED DESCRIPTION

[0047] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the server computing resource allocation method and system for edge collaborative computing proposed by the present invention, its specific implementation method, structure, features and effects, in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.

[0048] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.

[0049] The following is a detailed description of a method and system for allocating server computing resources for edge collaborative computing provided by the present invention in conjunction with the accompanying drawings.

[0050] See also Figure 1 , which shows a method flow chart of a method for allocating computing resources of a server for edge collaborative computing provided by an embodiment of the present invention, the method comprising the following steps:

[0051] Step S1: Obtaining the temperature time series data and humidity time series data of each edge server in each cycle of a preset historical period.

[0052] Edge collaborative computing technology plays an important role in the field of data processing. It reduces latency and saves bandwidth by moving computing tasks from traditional clouds to edge nodes that are closer to the data source. Edge collaborative computing is a branch of edge computing. Edge servers can not only process local data, but also cooperate with other edge servers to share resources and process tasks. Figure 2, an edge computing application scenario provided by an embodiment of the present invention, includes a terminal device 200, an edge server 201, and a cloud computing center 202. The terminal device 200 can be, for example, various sensors, cameras, mobile phones and other IoT terminal devices. The terminal device 200 sends data to the edge server, and the edge server 201 performs real-time analysis, processing and decision-making on the collected data, and then uploads a small amount of data, such as important information such as calculation results, to the cloud computing center 202. The cloud computing center 202 can integrate the data from the edge server 201 and further implement large-scale holistic data analysis.

[0053] However, with the development of the Internet of Things, edge servers are receiving more and more edge computing tasks, which puts higher requirements on the computing power of edge servers. Therefore, in order to meet the high efficiency requirements of the system and give full play to the advantages of edge collaborative computing, it is necessary to dynamically allocate resources to edge servers. However, environmental factors and the operating status of the edge server itself will affect the resource allocation strategy, so it is necessary to analyze these situations in order to determine a more reasonable resource allocation method.

[0054] Temperature and humidity are key factors that affect the performance of electronic devices. Temperature changes may accelerate the aging of internal components of the server, or even cause failures, thus affecting the stability and life of the server. Humidity may also have an adverse effect on the server, such as causing circuit short circuits or electrostatic discharge. Therefore, the temperature sensor and humidity sensor are used to first obtain the temperature time series data and humidity time series data of each edge server in each cycle of the preset historical period. The horizontal axis of the temperature time series data and the humidity time series data are both time, and the vertical axis is the temperature value or humidity value, and the sampling time interval is set to 1 minute.

[0055] It should be noted that in this embodiment of the present invention, the cycle is set to one day, and the preset historical period is set to one month. The settings of the specific cycle, historical period and sampling time interval can be adjusted according to the implementation scenario, and are not limited here; at the same time, the temperature sensor and the humidity sensor can be deployed on each edge server or around each edge server. The specific location is not limited and can be adjusted according to actual conditions, and the method for obtaining temperature time series data and humidity time series data can also be adjusted according to actual conditions, and are not limited here.

[0056] Step S2: In each cycle, the temperature impact characteristic value of each edge server is obtained according to the change of the temperature value in the temperature time series data of each edge server and the difference between the preset temperature threshold and the temperature value; the resource allocation confidence of each edge server is obtained according to the change synchronization of the temperature time series data and the humidity time series data of each edge server and the temperature impact characteristic value of each edge server.

[0057] The working environment of the edge server will have a certain impact on its working efficiency. When environmental factors have a greater impact on the performance of the edge server, the default is to limit the allocation of computing resources for considerations such as hardware protection and energy saving. Therefore, it is necessary to analyze the impact of the environment on the edge server to determine the resource allocation confidence of the edge server. In this embodiment of the present invention, the impact of temperature and humidity in the working environment of the edge server is mainly considered.

[0058] When the edge server runs at too high a temperature, its energy consumption may increase, resulting in energy waste and increased operating costs. At the same time, it may also affect the processing speed and efficiency of the edge server and reduce its performance. Therefore, the fluctuation of the temperature time series data can be analyzed, and the temperature value can be compared with the preset temperature threshold. The preset temperature threshold is the critical temperature threshold for the edge server to work. If it exceeds the preset temperature threshold, it is considered that the temperature is too high at this time, which will affect the heat dissipation of the edge server and affect the performance of the edge server. By comparing the difference between the preset temperature threshold and the temperature value, the impact of temperature on the working state of the edge server can be quantified, and the temperature impact characteristic value of the edge server can be obtained.

[0059] Preferably, in one embodiment of the present invention, the method for obtaining the temperature influence characteristic value includes:

[0060] See also Figure 3 , which shows a method flow chart of a method for obtaining a temperature influence characteristic value provided by an embodiment of the present invention, the method comprising the following steps:

[0061] Step S301: determining a first temperature factor of the edge server based on a deviation between a temperature value in the temperature time series data of the edge server and a preset temperature threshold.

[0062] For any edge server, in each cycle, the difference between the preset temperature threshold and the temperature value at each moment in the temperature time series data of the edge server is used as the temperature difference factor, and the average of the temperature difference factors corresponding to all moments is used as the first temperature factor. The formula model of the first temperature factor is:

[0063] ;

[0064] in, Indicates The first temperature factor of the edge server; Represents the total number of sampling moments in the temperature time series data; Indicates The temperature time series data of the edge server The temperature value at a certain moment; Indicates the preset temperature threshold.

[0065] In the formula model of the first temperature factor, since the preset temperature threshold represents the critical value of the working temperature of the edge server, the preset temperature threshold is subtracted from each temperature value in the temperature time series data of the working environment of the edge server, and the obtained temperature difference factor is It represents the deviation between the temperature value of the edge server during operation and its temperature critical value. The smaller the temperature difference factor is, the higher the temperature value in the working environment of the edge server is. Then the working efficiency of the edge server will be affected to a certain extent. The smaller the value is, the greater the impact is. At this time, the temperature value at each moment in the temperature time series data has a temperature difference factor. Then all the temperature difference factors are comprehensively averaged to obtain the first temperature factor. The first temperature factor represents the impact of temperature on the edge server during this period.

[0066] It should be noted that the preset temperature threshold is set to 55 degrees Celsius. The specific value can be adjusted according to the maximum temperature value that the edge server can withstand. It is not limited here, but the preset temperature threshold should be higher than any temperature value in the temperature time series data.

[0067] Step S302: Compare the temperature variation characteristics in the temperature time series data of the edge server with a preset temperature threshold to determine a second temperature factor of the edge server.

[0068] In step S301, based on the local concept, the deviation between each temperature value in the temperature time series data and the preset temperature threshold is calculated, so as to obtain a first temperature factor for measuring the impact of temperature on the edge server.

[0069] Here, based on the overall analysis, for any edge server, in each cycle, the average of the temperature values ​​at all times is calculated as the temperature average, and then the difference between the preset temperature threshold and the temperature average is used as the second temperature factor. The formula model of the second temperature factor is:

[0070] ;

[0071] in, Indicates A second temperature factor of an edge server; Represents the total number of sampling moments in the temperature time series data; Indicates The temperature time series data of the edge server The temperature value at a certain moment; Indicates the preset temperature threshold.

[0072] In the formula model of the second temperature factor, based on the overall characteristics, the mean of all temperature values ​​in the temperature time series data is calculated as the temperature mean This value represents the average temperature level of the working environment of the edge server during the entire cycle. Then, the difference between the preset temperature threshold and this value is calculated. The smaller the value obtained, the closer the temperature of the working environment of the edge server is to the maximum working environment temperature it can withstand. In this case, the working efficiency of the edge server will be greatly affected.

[0073] Step S303: The first temperature factor and the second temperature factor of the edge server are merged to obtain a temperature impact characteristic value of the edge server.

[0074] For any edge server, in each cycle, the first temperature factor and the second temperature factor are merged to obtain the temperature influence characteristic value of the edge server in each cycle, and the first temperature factor and the second temperature factor are negatively correlated with the temperature influence characteristic value. The formula model of the temperature influence characteristic value can be, for example:

[0075] ;

[0076] in, Indicates The temperature of each edge server affects the characteristic value; Indicates The first temperature factor of the edge server; Indicates A second temperature factor of an edge server; Represents the normalization function.

[0077] In the formula model of the temperature influence characteristic value, based on the analysis of the above steps S301 and S302, it can be known that the first temperature factor and the second temperature factor both characterize the temperature influence on the edge server in this cycle, and the smaller the first temperature factor, the greater the degree of influence on the edge server's work efficiency. Similarly, the smaller the second temperature factor, the greater the degree of influence on the edge server's work efficiency. Therefore, based on this, the product of the first temperature factor and the second temperature factor is normalized, and the smaller the value, the more seriously the working state of the edge server is affected by the ambient temperature at this time, so the product is negatively correlated to achieve logical relationship correction and obtain the temperature influence characteristic value.

[0078] So far, based on the temperature time series data of the edge server, the temperature impact characteristic value of the edge server is determined. In the subsequent process, this indicator can be used as a parameter for adjusting the resource allocation strategy.

[0079] Since humidity also has a certain impact on the efficiency of edge processors, analyzing the synchronization of changes between temperature and humidity can reveal whether there is a certain pattern or trend in the environment, thereby helping to optimize resource usage and improve efficiency. Therefore, based on the synchronization of changes in the temperature time series data and humidity time series data of each edge server, combined with the temperature impact characteristic value of each edge server, the resource allocation confidence of each edge server is determined.

[0080] Preferably, in one embodiment of the present invention, the method for obtaining resource allocation confidence includes:

[0081] See also Figure 4 , which shows a method flow chart of a method for obtaining resource allocation confidence provided by an embodiment of the present invention, the method comprising the following steps:

[0082] Step S401: determining the environmental impact factor of each edge server based on the correlation between the temperature time series data and the humidity time series data of each edge server.

[0083] The synchronization of changes in the two sets of data can be characterized by the relevant situation. Specifically, the Pearson correlation coefficient of the two sets of data can be calculated. Therefore, in each cycle, the Pearson correlation coefficient of the data values ​​in the temperature time series data and the humidity time series data is calculated, and the value after the Pearson correlation coefficient is numerically adjusted is used as the environmental impact factor. The formula model of the environmental impact factor can be specifically, for example:

[0084] ;

[0085] in, Indicates Environmental impact factors of edge servers; Indicates Temperature time series data of edge servers; Indicates Humidity time series data of edge servers; Indicates The numerical standard deviation of the temperature time series data of edge servers; Indicates The numerical standard deviation of humidity time series data of edge servers; It means to find the covariance.

[0086] In the formula model of environmental impact factors, The Pearson correlation coefficient of the temperature time series data and humidity time series data of the edge server is between [-1,1], and the closer it is to 1, the higher the synchronization of the changes in the temperature time series data and the humidity time series data. Under normal circumstances, as the working time of the edge server accumulates, the temperature will gradually rise and gradually approach the critical value, then the humidity in the environment should decrease accordingly. However, if the humidity data and the temperature data show a high degree of synchronization, it means that the environmental factors have changed abnormally: the temperature increases, and the humidity also increases. High humidity may cause damage to the electronic components inside the server, and high temperature may accelerate the aging of the components, which will affect the performance of the edge server. In order to facilitate subsequent calculations, the Pearson correlation coefficient is numerically adjusted here, that is, the environmental impact factor is obtained. , so that its value is in [0,1]. Similarly, the closer the value is to 1, the more significant the impact of environmental factors on the edge server.

[0087] It should be noted that, since the purpose of numerically adjusting the Pearson correlation coefficient is to facilitate subsequent calculations, in other embodiments of the present invention, the following method may also be used to perform numerical adjustment to obtain the environmental impact factor:

[0088] ;

[0089] in, Indicates Environmental impact factors of edge servers; Indicates Temperature time series data of edge servers; Indicates Humidity time series data of edge servers; Indicates The numerical standard deviation of the temperature time series data of edge servers; Indicates The numerical standard deviation of humidity time series data of edge servers; It means to find the covariance; Represents the normalization function.

[0090] In the above formula, the value of the environmental impact factor is between (0,1), and similarly, the closer the value is to 1, the more significant the impact of environmental factors on the edge server.

[0091] Step S402: determining the resource allocation confidence of each edge server based on the environmental impact factor and the temperature impact characteristic value of each edge server.

[0092] Based on the above analysis, it can be seen that the larger the environmental impact factor, the more significant the impact of environmental factors on the edge server; the larger the temperature impact characteristic value, the more serious the impact of the ambient temperature on the working state of the edge server at this time, which means that the working state of the edge server is seriously affected by the negative impact of the environment. In this case, in order to ensure the stability and reliability of the edge server, resource allocation should be restricted, that is, the lower the resource allocation confidence.

[0093] Based on the above analysis, the resource allocation confidence of each edge server in each cycle can be obtained according to the environmental impact factor and temperature impact characteristic value of each edge server, and the environmental impact factor and temperature impact characteristic value are negatively correlated with the resource allocation confidence. The formula model of resource allocation confidence can be specifically, for example:

[0094] ;

[0095] in, Indicates The resource allocation confidence of each edge server; Indicates The temperature of each edge server affects the characteristic value; Indicates Environmental impact factors of edge servers.

[0096] In the formula model of resource allocation confidence, since the greater the environmental impact factor and the greater the temperature impact characteristic value, the resource allocation confidence of the edge server will be reduced. Therefore, the above formula is constructed here to implement the above logic, thereby obtaining the resource allocation confidence of the edge server.

[0097] Since the negative correlation indicates that the dependent variable will decrease as the independent variable increases, and the dependent variable will increase as the independent variable decreases, the following formula can also be constructed to determine the resource allocation confidence of the edge server:

[0098] ;

[0099] in, Indicates The resource allocation confidence of each edge server; Indicates The temperature of each edge server affects the characteristic value; Indicates Environmental impact factors of edge servers; Indicates preset parameters.

[0100] In the above formula, the larger the environmental impact factor, the larger the temperature impact characteristic value, and the smaller the resource allocation confidence of the edge server. The function of is to prevent the denominator from being 0. Here, the value can be 0.001. The specific value can be adjusted according to the implementation scenario and is not limited here.

[0101] So far, by analyzing the impact of the environment in which the edge server is located on its working status, the resource allocation confidence of each edge server in each cycle is obtained, and this indicator can be used in the subsequent dynamic resource allocation strategy.

[0102] Step S3: In each cycle, the load redundancy of each edge server is determined based on the CPU usage rate of each edge server, the proportion of memory usage, the response time of each data, and the amount of data processed; the changes in the amount of data processed and the total time for processing data among all edge servers are comprehensively analyzed to obtain the importance parameters of each edge server.

[0103] In step S2, the impact of environmental factors on edge servers is mainly analyzed, but environmental factors cannot be used as the only indicator for resource allocation. By analyzing the resource usage of edge servers to obtain the load of edge servers, it is possible to understand which edge servers are under too much workload and which edge servers may be relatively idle, which helps to achieve more effective load balancing and improve overall performance and efficiency when dynamic resource allocation is performed later. Similarly, by quantifying the importance of each edge server, the priority of resource allocation can be optimized when dynamic resource allocation is performed to ensure the continuous operation of key services.

[0104] First, it is necessary to obtain the resource usage and work data of each edge server in each cycle of the preset historical period, mainly including: CPU utilization, memory usage ratio, response time of each data, amount of data processed, and total time for data processing. The above data can be obtained based on the data in the log file or memory of the edge server. It should be noted that the specific data acquisition method can be adjusted according to the implementation scenario, which is not limited or elaborated here. The response time is the time interval between the time when the task is sent and the time when the response data is received.

[0105] In each cycle, the load redundancy of each edge server is determined based on the CPU utilization rate of each edge server, the proportion of memory usage, the response time of each data, and the amount of data processed. This allows a more comprehensive understanding of the operating status and performance bottlenecks of the edge server, which can be used to improve the accuracy of subsequent dynamic resource allocation strategies.

[0106] Preferably, in one embodiment of the present invention, the method for obtaining the load redundancy includes:

[0107] In each cycle, for any edge server, the ratio of the memory usage of the edge server to the total memory capacity is taken as the memory usage ratio, and the memory usage ratio can reflect the usage status of the edge server memory.

[0108] CPU usage is one of the key indicators for evaluating edge server performance, so the average CPU usage when the edge server processes all data is used as the average usage to reflect the CPU usage of the edge server.

[0109] Response time is an important indicator to measure server performance and service quality. Therefore, the average response time of all data of the edge server is taken as the response mean, and the ratio of the response mean to the amount of processed data is taken as the load factor of the edge server, which reflects the response time of the server when processing each unit of data.

[0110] Finally, based on the memory usage percentage, average usage rate and load factor of the edge server, the load redundancy of the edge server in each cycle can be determined, and the memory usage percentage, average usage rate and load factor are positively correlated with the load redundancy, and the value of the load redundancy is a normalized value. The formula model of the load redundancy can be, for example:

[0111] ;

[0112] in, Indicates The load redundancy of the edge servers; Indicates The amount of data processed by the edge servers; Indicates Average utilization of edge servers; Indicates The average response of edge servers; Indicates Memory usage of edge servers; Indicates The total memory capacity of the edge servers; Represents the normalization function.

[0113] In the load redundancy formula model, the memory usage ratio of the edge server is calculated ,When the memory usage is closer to the total memory capacity, the larger the value will be, the more likely it is to cause performance degradation or system crash, indicating that the load is too heavy and there is a large load redundancy; similarly, the average CPU usage of the edge server is calculated as the average usage ,in, Indicates The edge server handles The CPU usage when processing data, the larger the average usage, the more likely the edge server is to be overloaded, which also means that the load is too heavy and there is a large load redundancy. At this time, more computing resources should be allocated to the edge server to process computing tasks; similarly, the ratio of the average response time of the edge server processing data to the amount of data processed is calculated to obtain the load factor , when the denominator of the load factor is smaller and the numerator is larger, it means that even if a small amount of data is processed, the average response time of the edge server is larger, reflecting that the processing capacity of the edge server is limited and the load is too heavy in the process of processing data. Based on the above analysis, it can be seen that the larger the proportion of memory usage, the larger the average usage rate, and the larger the load factor, the heavier the load of the edge server, the larger the load redundancy, and more computing resources should be obtained to process computing tasks. Therefore, the product of the three is normalized to obtain the load redundancy of the edge server. At this time, the larger the load redundancy, the heavier the load of the edge server, and more computing resources need to be allocated in the subsequent dynamic resource allocation process.

[0114] It should be noted that a positive correlation means that the dependent variable will increase as the independent variable increases, and the dependent variable will decrease as the independent variable decreases. The specific relationship may be a multiplication relationship, an addition relationship, or the idempotence of an exponential function. Since the memory usage percentage, the average usage rate, and the load factor are all positively correlated with the load redundancy, in other embodiments of the present invention, the sum of the memory usage percentage, the average usage rate, and the load factor may be normalized and used as the load redundancy of the edge server.

[0115] Through the above method, the load redundancy of each edge server in each cycle can be obtained, which helps to understand the actual load capacity of the edge server, so as to make more effective adjustments to the subsequent dynamic resource allocation strategy.

[0116] Then, by analyzing the changes in the amount of data processed and the total time of data processing between edge servers, the importance of each edge server is evaluated and the importance parameters are obtained. Edge servers that are critical to system stability and security can be identified, thereby facilitating more effective resource management and optimization in the future.

[0117] Preferably, in one embodiment of the present invention, the method for obtaining importance parameters includes:

[0118] In each cycle, the computing rate of each edge server is determined based on the total processing time and amount of data processed by each edge server. The computing rate evaluates the processing capacity and efficiency of each edge server, providing a basis for subsequent importance evaluation.

[0119] Here, for the convenience of explanation and illustration, an edge server is selected as the target server, and the difference between the computing rate of the target server and other edge servers is calculated as the rate difference factor, where the other edge servers are each remaining edge server except the target server; the rate difference factor can help identify which edge servers are more prominent in computing performance, reflecting the relative importance of different edge servers in processing tasks. Then all the rate difference factors of the target server are combined and their average is calculated as the significance factor of the target server.

[0120] Finally, the importance parameter of each edge server in each cycle is determined by combining the significance factor and calculation rate of each edge server, wherein the significance factor and calculation rate both change in the same direction as the importance parameter, and the value of the importance parameter is a normalized value. The formula model of the importance parameter can be, for example:

[0121] ;

[0122] in, Indicates The importance parameter of each edge server; Indicates The amount of data processed by the edge servers; Indicates The total time it takes for edge servers to process data; Indicates that except The total number of remaining edge servers outside the edge servers; Represents the remaining edge servers The amount of data processed by the edge servers; Represents the remaining edge servers The total time it takes for edge servers to process data; Represents the normalization function.

[0123] In the formula model of importance parameters, the ratio of the amount of data processed to the total time of data processing is used as the calculation rate of the edge server. , when the calculation rate is larger, it means that the processing speed of the edge server is faster. Therefore, the difference between the calculation rate of each edge processor and the remaining edge servers except itself is analyzed to obtain the rate difference factor The larger the value, the more significant the difference in processing speed between edge servers, which can reflect the irreplaceability of edge servers to a certain extent, that is, the degree of importance. Therefore, all the rate difference factors of each edge server are combined, and the mean is taken as the significance factor of each edge server. , the larger the significance factor is, the more obvious the difference is between the processing speed of the edge server and other edge servers. However, it is not accurate to determine the importance of the edge server only from this indicator, because if the processing speed of an edge server is too slow, the significance factor will be larger. Therefore, in order to more accurately evaluate the importance of the edge server, the computing speed of the edge server itself is also used as an indicator to quantify the importance. The value after normalization of the product of the computing speed and the significance factor is used as the importance parameter of the edge server. If the computing speed of the edge server is slow, even if the significance factor is large, the computing speed of the edge server is small, which can play a limiting role in the process of calculating the importance parameter. On the contrary, if the computing speed of the edge server itself is large, but the significance factor between it and other edge servers is small, it means that there is no significant difference between the edge server and other edge servers, so its substitutability is high, and the importance is low. When the computing speed of the edge server itself is large and the significance factor is also large, it means that the edge server is irreplaceable, that is, the higher the importance, the more computing resources should be allocated in the subsequent dynamic resource allocation process.

[0124] At this point, by analyzing the resource usage of the edge servers and quantifying the importance of each edge server, the accuracy of resource allocation can be improved in subsequent dynamic resource allocation.

[0125] Step S4: In each cycle, the allocation fault tolerance rate of each edge server is determined based on the resource allocation confidence, load redundancy, importance parameter and processing data volume of each edge server; in all cycles of the preset historical period, dynamic resource allocation is performed on each edge server in the current cycle according to the allocation fault tolerance rate of all edge servers.

[0126] In the process of allocating computing resources, it is generally believed that when the degree of environmental impact is large, in order to reduce the delay of the server, the allocation of computing resources should be limited; however, when the data processing demand in the edge server is greater, the data beyond the computing capacity may not be allocated the corresponding resources, and the data demand may cause congestion in the edge server network and increase the delay; therefore, it is necessary to dynamically allocate resources in combination with the environmental impact and the data processing of the edge server itself, so as to improve the fault tolerance rate in the process of resource allocation of the edge server, so as to ensure the timeliness of the data response and data processing efficiency of the server even when the degree of environmental impact is large.

[0127] Therefore, here, in each cycle, the allocation fault tolerance rate of each edge server is determined based on the resource allocation confidence, load redundancy, importance parameter and processing data volume of the edge server obtained in the above steps.

[0128] Preferably, in one embodiment of the present invention, the method for obtaining the allocation fault tolerance rate includes:

[0129] Due to the influence of environmental factors, the allocated resources of the edge server are limited. However, in order to ensure the normal operation of the edge server, in each cycle, the penalty item of the fault tolerance rate of each edge server is determined based on the load redundancy, importance parameters and processed data volume of each edge server. The load redundancy, importance parameters and processed data volume are positively correlated with the value of the penalty item. The role of the penalty item is to ensure that even in the case of severe environmental impact, the resources allocated to the edge server will not be greatly reduced, so that the edge server can operate normally.

[0130] Since the resource allocation confidence reflects the environmental impact on the edge server, the penalty item and resource allocation confidence of each edge server are integrated to obtain the allocation fault tolerance rate of each edge server in each cycle, where the value of the penalty item and the resource allocation confidence change in the same direction as the allocation fault tolerance rate. The formula model of the allocation fault tolerance rate can be specifically, for example:

[0131] ;

[0132] in, Indicates The allocation fault tolerance of edge servers; Indicates The load redundancy of edge servers; Indicates The importance parameter of each edge server; Indicates The amount of data processed by each edge server; Indicates The resource allocation confidence of each edge server.

[0133] In the formula model of allocating fault tolerance, when the resource allocation confidence of the edge server is smaller, it means that it is more affected by the environment, then the computing resources allocated to the edge server should be reduced. On the contrary, if the resource allocation confidence is greater, the computing resources allocated to the edge server should be increased. However, in the process of reducing computing resources, if the load redundancy of the edge server is higher, more computing resources should be allocated to the edge server so that it can balance the load; if the importance parameter of the edge server is larger, it means that the edge server is more irreplaceable in the entire system, then more computing resources should be allocated to the edge server to ensure the stability of the entire system. Similarly, if the amount of data processed by the edge server is large, it means that the edge server is responsible for heavier computing tasks during operation and needs to be allocated more computing resources. Therefore, in order to ensure the normal operation of the edge server and improve the overall robustness of the system, It represents the penalty item of the edge server, which is used to ensure that the resource allocation of the edge server will not be greatly reduced when the environmental impact is more serious. Finally, the product of the penalty item and the resource allocation confidence is used as the allocation fault tolerance of the edge server. At this time, the larger the allocation fault tolerance of the edge server, the more computing resources should be allocated to the edge server to ensure the reasonable allocation of computing resources and the stability of the system.

[0134] At this point, the allocation fault tolerance rate of each edge server in each cycle in the preset historical period can be obtained, and then the resources of each edge server in the current cycle can be dynamically allocated according to the indicator, thereby realizing the rational allocation of computing resources.

[0135] Preferably, in one embodiment of the present invention, in all cycles of a preset historical period, dynamic resource allocation is performed on each edge server in the current cycle according to the allocation fault tolerance of all edge servers, including:

[0136] For any edge server, the resource allocation weight value of the edge server is determined based on the allocation fault tolerance rate of the edge server in all cycles in the preset historical period: the average value of the allocation fault tolerance rate of the edge server in all cycles in the preset historical period is used as the weight factor, and then the sum of the weight factors of all edge servers is used as the weight sum value, and finally the ratio of the weight factor of the edge server to the weight sum value is used as the resource allocation weight value of the edge server. The formula model of the resource allocation weight value is:

[0137] ;

[0138] in, Indicates The resource allocation weight value of each edge server; Indicates the number of periods in the preset historical period; Indicated in In the cycle, The allocation fault tolerance of edge servers; Indicates the total number of edge servers.

[0139] In the formula model of resource allocation weight value, for any edge server, the allocation fault tolerance rate in each cycle in the preset historical period is averaged, and the average value is used as the weight factor , which can better represent the resource allocation ratio of the edge server in the subsequent process. In order to ensure that the sum of the resource allocation weight values ​​of each edge server is 1, the sum of the weight factors of all edge servers is calculated as the weight sum value. ,Finally, the ratio of the weight factor of each edge server to the weight sum value is used as the resource allocation weight value of each edge server.

[0140] Finally, the resource allocation weight value of each edge server is used to calculate the amount of resources required by each edge server in the current cycle: that is, the product of the resource allocation weight value of each edge server and the total amount of each type of computing resources is used as the resource allocation amount of each edge server in the current cycle. In this way, dynamic resource allocation is achieved, so that it can adapt to different application scenarios and load changes, ensuring that the system always maintains the best performance and giving full play to the advantages of edge collaborative computing.

[0141] It should be noted that computing resources refer to hardware and software resources that can be used to perform computing tasks and process data. These resources include but are not limited to: CPU, memory, storage resources (hard disk capacity, memory size), network bandwidth, etc. For example, the resource allocation weight value of edge server A is 0.3, the resource allocation weight value of edge server B is 0.4, and the number of CPU cores is 100. Then the number of CPU cores allocated to edge server A is 30, and the number of CPU cores allocated to edge server B is 40. In order to facilitate calculations, all indicator data involved in the calculations in the embodiments of the present invention are pre-processed to eliminate the dimension effect. The specific means of removing the dimension effect are technical means well known to those skilled in the art and are not limited here.

[0142] In summary, the purpose of the embodiment of the present invention is to dynamically allocate the computing resources of the edge server, so that the resource utilization rate is improved and the advantages of edge collaborative computing are brought into play. Since environmental factors will have a great impact on the performance of the edge server, especially the temperature and humidity changes, when the impact is large, the allocation of computing resources will be limited. Therefore, by analyzing the relationship between the temperature time series data and the humidity time series data of the edge server and the data change characteristics, the resource allocation confidence of the edge server is determined for subsequent dynamic adjustment of the resource allocation strategy; further, by analyzing the CPU usage, memory usage, response time and data processing volume of the edge server, the load of the server can be understood. Based on these data, dynamic adjustment of resource allocation can ensure load balancing between servers and improve the performance and stability of the overall system. Then, the amount of data processed and the total time of data processing of all edge servers are comprehensively analyzed, and the role of the edge server in the overall system can be quantified to obtain the importance parameter, which ensures that when performing resource allocation in the future, the edge server with higher importance can be given priority, thereby improving data processing efficiency. Finally, the allocation fault tolerance rate of each edge server is determined by combining the above multiple indicators, and then dynamic resource allocation is performed on each edge server. The present invention comprehensively considers multiple factors, including environmental factors, the operating status of the edge server, load conditions, importance, etc., realizes dynamic allocation of resources, and helps to cope with ever-changing dynamic needs. Therefore, it can effectively improve resource utilization and the overall efficiency of the system, and give full play to the advantages of edge collaborative computing.

[0143] This embodiment also provides a server computing resource allocation system for edge collaborative computing, the system includes a processor, a memory and a computer program, wherein the memory is used to store the corresponding computer program, the processor is used to run the corresponding computer program, and when the computer program runs on the processor, it can implement any one of the steps of the server computing resource allocation method for edge collaborative computing.

[0144] See also Figure 5 , which shows a system block diagram of a server computing resource allocation system for edge collaborative computing provided by an embodiment of the present invention, including: a data acquisition module 501: used to implement step S1 in the above method, an environmental impact factor analysis module 502: used to implement step S2 in the above method, a server performance analysis module 503: used to implement step S3 in the above method, and a dynamic resource allocation module 504: used to implement step S4 in the above method.

[0145] See also Figure 6, which shows a system structure diagram of a server computing resource allocation system for edge collaborative computing provided by an embodiment of the present invention, including a processor 600, a memory 601, a bus 602 and a communication interface 603, wherein the processor 600, the communication interface 603 and the memory 601 are connected via the bus 602; wherein the memory 601 may include a high-speed random access memory, the bus 602 may be an ISA bus, a PCI bus or an EISA bus, etc., and the processor 600 may be an integrated circuit chip with signal processing capabilities.

[0146] The present invention also provides a computer-readable storage medium corresponding to the method provided in the above-mentioned embodiment. Figure 7 , the storage medium shown is a CD, on which a computer program (ie, a program product) is stored. When the computer program is run by a processor, it will execute the method provided by any of the aforementioned embodiments.

[0147] It should be noted that examples of the computer-readable storage medium may also 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), and other optical and magnetic storage media, which are not listed here one by one.

[0148] It should be noted that the sequence of the above embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0149] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.

Claims

1. A method for allocating computing resources of edge collaborative computing servers, characterized in that: The method comprises: Obtaining the temperature time series data and humidity time series data of each edge server in each cycle of a preset historical period; In each cycle, the temperature impact characteristic value of each edge server is obtained according to the change of the temperature value in the temperature time series data of each edge server and the difference between the preset temperature threshold and the temperature value; the resource allocation confidence of each edge server is obtained according to the change synchronization of the temperature time series data and the humidity time series data of each edge server and the temperature impact characteristic value of each edge server; In each cycle, the load redundancy of each edge server is determined based on the CPU usage rate, memory usage ratio, response time of each data, and data processing volume of each edge server. The importance parameters of each edge server are obtained by comprehensively analyzing the changes in the data processing volume and total data processing time among all edge servers. In each cycle, the allocation fault tolerance rate of each edge server is determined based on the resource allocation confidence, load redundancy, importance parameters and processing data volume of each edge server; in all cycles of the preset historical period, dynamic resource allocation is performed on each edge server in the current cycle according to the allocation fault tolerance rate of all edge servers; The method for obtaining the resource allocation confidence comprises: In each cycle, based on the correlation between the data values ​​of the temperature time series data and the humidity time series data of each edge server, an environmental impact factor of each edge server is determined; According to the environmental impact factor and the temperature impact characteristic value of each edge server, the resource allocation confidence of each edge server in each cycle is obtained, and the environmental impact factor and the temperature impact characteristic value are both negatively correlated with the resource allocation confidence; The determining of the environmental impact factor of each edge server based on the correlation between the data values ​​of the temperature time series data and the humidity time series data of each edge server includes: Calculating the Pearson correlation coefficient of the data values ​​in the temperature time series data and the humidity time series data, and using the value of the Pearson correlation coefficient after numerical adjustment as the environmental influencing factor; The method for obtaining the importance parameter includes: In each cycle, the computing rate of each edge server is determined based on the total processing time and the amount of data processed by each edge server; Select any edge server as the target server, calculate the difference between the target server and the calculation rate of other edge servers as the rate difference factor; take the mean of all rate difference factors of the target server as the significance factor of the target server; The importance parameter of each edge server in each cycle is determined according to the significance factor and the calculation rate of each edge server, wherein the significance factor and the calculation rate both change in the same direction as the significance parameter.

2. The method for allocating server computing resources for edge collaborative computing according to claim 1, characterized in that: The method for obtaining the temperature influence characteristic value includes: For any edge server, in each cycle, the difference between the preset temperature threshold and the temperature value at each moment in the temperature time series data of the edge server is used as the temperature difference factor, and the average of the temperature difference factors corresponding to all moments is used as the first temperature factor; Calculate the average of the temperature values ​​at all times as the temperature average, and use the difference between the preset temperature threshold and the temperature average as the second temperature factor; The first temperature factor and the second temperature factor are merged to obtain a temperature impact characteristic value of the edge server in each cycle, and the first temperature factor and the second temperature factor are both negatively correlated with the temperature impact characteristic value.

3. The method for allocating server computing resources for edge collaborative computing according to claim 1, characterized in that: The method for obtaining the load redundancy comprises: In each cycle, for any edge server, the ratio of the memory usage of the edge server to the total memory capacity is taken as the memory usage ratio; The average CPU usage rate when the edge server processes all data is used as the average usage rate; the average response time of all data of the edge server is used as the response mean, and the ratio of the response mean to the amount of processed data is used as the load factor of the edge server; Based on the memory usage percentage, average usage rate and load factor of the edge server, the load redundancy of the edge server in each cycle is determined, and the memory usage percentage, average usage rate and load factor are all positively correlated with the load redundancy.

4. The method for allocating server computing resources for edge collaborative computing according to claim 1, characterized in that: The method for obtaining the allocation fault tolerance rate includes: In each cycle, based on the load redundancy, importance parameter and processed data volume of each edge server, a penalty item of the fault tolerance rate of each edge server is determined, and the load redundancy, importance parameter and processed data volume are all positively correlated with the value of the penalty item; The penalty item and resource allocation confidence of each edge server are integrated to obtain the allocation fault tolerance rate of each edge server in each cycle, wherein the value of the penalty item and the resource allocation confidence rate both change in the same direction as the allocation fault tolerance rate.

5. The method for allocating server computing resources for edge collaborative computing according to claim 1, characterized in that: The method of dynamically allocating resources to each edge server in the current cycle according to the allocation fault tolerance rate of all edge servers in all cycles of the preset historical period includes: For any edge server, determine a resource allocation weight value of the edge server based on the allocation fault tolerance rate of the edge server in all cycles in a preset historical period; The amount of resources required by each edge server in the current cycle is calculated based on the resource allocation weight values ​​of each edge server.

6. A method for allocating computing resources of edge collaborative computing servers according to claim 5, characterized in that: The method for obtaining the resource allocation weight value includes: For any edge server, the average of the allocation fault tolerance rates of the edge server in all cycles in a preset historical period is used as a weight factor; The resource allocation weight value of the edge server is determined based on the proportion of the weight factor of the edge server in the weight factors of all edge servers.

7. A server computing resource allocation system for edge collaborative computing, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.