A multi-frequency resource scheduling method for edge computing

By using a combination of global scheduling components and local coordination components in the cloud-edge environment, the problem of resource allocation mismatch between edge clusters and cloud data centers is solved, dynamic matching and adjustment of resources is achieved, and the resource efficiency of the cloud-edge system is improved. and computational analysis performance.

CN118467114BActive Publication Date: 2024-10-29JIANGSU ELECTRIC POWER INFORMATION TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410935150.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-12
Publication Date
2024-10-29
Estimated Expiration
2044-07-12

AI Technical Summary

Technical Problem

In a cloud-edge environment, resource allocation mismatch between edge clusters and cloud data centers affects computing and analysis performance, especially multi-frequency problems caused by differences in the frequency of data collection and processing between local computing and global computing.

Method used

Using the combination method of global scheduling component and local coordination component, the global scheduling component is used to formulate a resource scheduling plan for global computing in the cloud data center, and the local coordination component is combined with the local coordination component to perform resource scheduling in the edge cluster to achieve dynamic matching and adjustment of resources to meet the needs of requirements on different time scales.

Benefits of technology

Effectively coordinate multi-frequency resource scheduling, improve the resource efficiency of cloud-edge systems, adapt to changes in application computing requirements, and improve the efficiency of computing analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118467114B_ABST
    Figure CN118467114B_ABST
Patent Text Reader

Abstract

The present invention discloses a multi-frequency resource scheduling method for edge computing, including a global scheduling component and a local coordination component; the global scheduling component is used to minimize the resource overhead and energy consumption of transmission and calculation in the global calculation process; the local coordination component minimizes the computing resource overhead in the edge cluster or maximizes resource utilization while meeting the needs of local computing of the edge cluster, and interacts and coordinates with the global scheduling component; it can coordinate resource scheduling for multiple time frequencies, continuously utilize the feedback of resource scheduling effects on multiple time frequencies, and mutually correct resource scheduling decisions, so that the scheduling on each time frequency can be asymptotically optimal, and the overall performance of the system can also continue to improve. The resource scheduling of the present invention for multiple time frequencies can also continuously adapt to the changes in application computing needs in the edge cluster, adjust and match local computing and global computing in a timely manner, and improve the resource efficiency of the entire cloud-edge system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of edge computing technology and relates to a multi-frequency resource scheduling method for edge computing. Background Art

[0002] Although cloud data centers have strong computing power, they are far away from edge users. Therefore, many applications are deployed directly to the edge of the network to store and calculate user data nearby and provide high-quality service responses to users. Nowadays, many companies and organizations have deployed various edge clusters at the edge of the network. Edge clusters are essentially edge infrastructure with storage, computing and transmission capabilities. For example, servers can be deployed next to base stations to process user requests.

[0003] In the context of deploying various applications at the edge of the network, some enterprises and organizations often need to perform various computational analyses on deployed applications and use the results of the analysis to make timely adjustments to their business decisions, applications, and network deployment. In this process, there is a difference between the frequency at which cloud data centers collect results from each edge cluster and the frequency at which data is continuously generated and calculated within each edge cluster, which can easily lead to a mismatch in resource allocation and affect the performance of computational analysis.

[0004] For example, taking the typical abnormal traffic detection as an example, the edge cluster will continuously generate traffic data due to the deployment of various applications. The frequency of this data generation is at the minute or even second level. After such a large amount of traffic data is generated, the edge cluster will perform calculation screening on it, such as screening and saving the traffic that exceeds the mean to obtain the intermediate calculation results, or using the existing traffic information to predict the traffic generated in the next minute, etc. In order to count and analyze the traffic of all edge clusters, the cloud data center needs to collect the intermediate calculation results from all edge clusters. The frequency of this data collection is often at the hourly or even daily level. In addition, based on the intermediate calculation results received from each edge cluster, the cloud data center will further perform calculation analysis, such as counting the scale of abnormal traffic, edge clusters with abnormal traffic, or returning the criteria for screening abnormal traffic to each edge cluster in a timely manner. This process is continuously iterated, which involves the coordination between the local calculation at the minute level and the global calculation at the hourly level in the edge cluster. This coordination process is carried out in the form of resource allocation, that is, the scheduler needs to allocate resources for local and global calculations, including the number of instances and resources for local calculations on each edge cluster, and the collection of intermediate calculation results in global calculations. If resources are not allocated properly, it will lead to performance loss in local and global computing. For example, insufficient local computing resources will lead to the inability to process the data generated in each edge cluster in a timely manner; too frequent collection of intermediate computing results will lead to a large amount of transmission between the cloud data center and the edge cluster. In essence, this inconsistency is caused by the difference in the frequency of data collection and processing between local and global computing, that is, there are multi-frequency computing and analysis needs.

[0005] Therefore, how to reasonably schedule resources for such multi-frequency edge computing applications in a cloud-edge environment and improve the efficiency of computing and analysis in the cloud-edge system is a technical problem that technical personnel in this field urgently need to solve. Summary of the invention

[0006] In order to overcome the deficiencies in the prior art, the purpose of the present invention is to provide a multi-frequency resource scheduling method for edge computing. The present invention can continuously adapt to the changes in application computing requirements in the edge cluster, adjust and match local computing and global computing in a timely manner, and improve the resource efficiency of the entire cloud-edge system.

[0007] The purpose of the present invention is achieved through the following technical solutions:

[0008] A multi-frequency resource scheduling method for edge computing, characterized by: comprising a global scheduling component and a local coordination component; the global scheduling component is used to minimize the resource overhead and energy consumption of transmission and calculation in the global computing process, is located in the cloud data center, and is responsible for formulating a resource scheduling plan for global computing on a larger time scale based on the state acquisition of each edge cluster, including whether to collect intermediate computing results from each edge cluster, and selecting the most appropriate computing location for collecting and processing these intermediate computing results from each edge cluster;

[0009] The local coordination component minimizes the computing resource overhead in the edge cluster or maximizes resource utilization while meeting the local computing needs of the edge cluster. It is located in each edge cluster and formulates a resource scheduling plan for the edge cluster on a smaller time scale, including scaling and deploying computing instances according to changes in application flows, and interacting and coordinating with the global scheduling component based on the intermediate computing results obtained by local computing.

[0010] The global scheduling component and the local coordination component are nested to support multi-frequency resource scheduling.

[0011] Step 1: In each edge cluster, the local coordination component continuously schedules local computing resources based on the scale and location of the raw data generated by the application flow. This resource scheduling includes three decisions: deciding on the sampling scale of the raw data of each application flow, deploying and deciding on the computing instances required within the edge cluster, and deciding to map the raw data generated by different application flows to the deployed computing instances for local computing.

[0012] The content of decision scheduling is the above three decisions, as follows:

[0013] For each application flow , remember the current local coordination component in the time slice The data size generated in In this time slice, the local coordination component controls the data scale generated by the application flow, samples the application flow according to a certain ratio, and uses the generated sampling result, that is, the application flow data obtained on the application flow according to a predetermined ratio, as the original data for local calculation; the local coordination component controls the sampling of the application flow in each unit time to obtain the desired scale ;

[0014] For the edge cluster, the target server of an application flow is , then on the server, the application stream The size of the original data generated is ; For all application flows in the edge cluster, the server The scale of all raw data generated is ; In order to process such a large amount of raw data, the number of computing instances that the local coordination component needs to open is In this process, the computing instance may not be directly deployed on the server. This is because the server The computing resources on the local coordinator may not be sufficient, or the local coordinator may intentionally use the computing instances that have been opened on other servers to process the raw data. If the data scale that a computing instance can process is , then the enabled computing instance needs to be able to process the generated raw data, that is ;

[0015] The above decision variables It reflects the correspondence between the original data generated by the application flow and each computing instance, that is, for the server The original data of the application flow generated on A computing instance processes it. In order to further distinguish the deployment location of the computing instance, For the server The number of compute instances enabled on the server to process data from the server The application stream raw data on the server and performs local calculations; in this process, the processing server deployed on all servers The total number of compute instances is ,Right now ;

[0016] Step 2: The local coordination component solves the problem based on the algorithm Perform instance deployment, data collection, and local calculations; in this process, if in the previous time slice, on the server If there are already enough compute instances on the server, you do not need to start a new compute instance. Open on A new computing instance, where the function , indicating the number of new computing instances that need to be started;

[0017] The local coordination component summarizes the local calculation results at the end of a time slice. ; For a time slot, it contains multiple time slices. If there are large differences between the local calculation results in these time slices, then at the end of the time slot, global calculation is introduced; the differences between the local calculation results are indicated by indicator variables To judge, among them is the pre-set difference threshold; when When the indicator variable If it is 1, it means that the difference between the local calculations of two adjacent time slices is large, so global calculation is performed;

[0018] Step 3: In each time slice, perform resource scheduling for the edge cluster governed by the local coordination component and solve the following optimization problem to minimize resource overhead:

[0019] Optimization goal: ;

[0020] Optimization constraint 1: ;

[0021] Optimization constraint 2: ;

[0022] The first part of the optimization objective measures the resource overhead of the computing instances that are continuously enabled over the time slice. Indicates the resource overhead of starting a single computing instance. Indicates the resource cost of running a computing instance in a time slice. That is, the second part of the optimization goal measures the cost of running the computing instance in the running time slice. The third part of the optimization goal describes the cost of global convergence at the end of the current time slot. As shown, this variable is decided by the global scheduling component at the beginning of the entire time slot; for each calculation instance, if global calculation is required, that is, , then each computing instance needs to upload its intermediate computing results to the cluster that the global scheduling component has decided at the beginning of the time slot, where The cost of transmitting the intermediate computing results generated by a single computing instance from its edge cluster to the cluster where the global scheduling component makes decisions;

[0023] Optimization constraint 1, the calculation instance processes the raw data generated by the application flow; optimization constraint 2, indicating the correctness of the above comparison, if the deviation between two adjacent local calculations is large, a global calculation must be performed, with , indicating that the above comparison is meaningful only when the computing instance is deployed and actually performs local computing; at the beginning of the time slot, the global scheduling component makes decisions based on the global network status. , is one of the information that the global scheduling component interacts with the local coordination component. The local coordination component modifies the variable based on the local calculation result, that is, decides whether to trigger the global calculation, which is also part of the interaction;

[0024] Step 4: The constraints of the above optimization problem are about decision , The linear representation of , but the optimization objective contains difficult to handle nonlinear terms , , then a new constraint needs to be constructed, and the new constraint is required to meet Conditions; and in solving the above problem, shilling , if the deviation between two adjacent local calculations obtained from the solution is not large, then Set to the value decided by the global scheduling component at the beginning of the time slot. Under the above transformation, the original problem is transformed into a problem with the following optimization objectives:

[0025] ,

[0026] The optimization goal of this problem is a linear function of decision making; let the increased Also about the decision variables , It is a linear function. After relaxing the domain, it can be efficiently solved by calling existing convex optimization tools or linear programming tools.

[0027] Step 5: At the beginning of each time slot, the global scheduling component calculates the position for the global calculation at the end of the current time slot, that is, the selection of clusters. The main problem to be solved is the following optimization problem:

[0028] Optimization goal: ;

[0029] Optimization constraints: ;

[0030] in, Indicates whether edge clusters need to be used The intermediate calculation data is used for global calculation; Represents the edge cluster An estimate of the number of computing instances; For time slot The cost of transmitting the intermediate computing results generated by a single computing instance from its edge cluster to the cluster decided by the global scheduling component; this optimization goal measures the cost of global aggregation from different edge clusters;

[0031] The optimization constraint describes the lower limit of the number of times an edge cluster needs to participate in global computation; the lower limit is , the interaction between the global scheduling component and the local coordination component is , the global scheduling component decides at the beginning of the time slot Transmit to edge cluster , then in its optimization problem, , in the edge cluster During the optimization process of the local coordination component, that is, after all time slices in the time slot have been completed, if The result is 1, which means that there is a difference between two adjacent local calculations, so a global calculation is required; at the end of the time slot, , completed the interaction between the global scheduling component and the local coordination component;

[0032] Step 6: The global scheduling component is performing edge clustering Calculate the number of instances When estimating, edge clusters are required Historical performance information is used as the basis for its estimation; when making the estimation, the only information available is from time slot 1 to time slot The number of computing instances in the historical time slots is directly used as the estimator. For the case of application flow fluctuations in the edge cluster, the number of computing instances will continue to change. It is difficult to describe such changes by the mean alone. The mean, variance and gradient are used to perform the calculation. First, increase the time slot 1 to the time slot Calculate the instance variance as a supplement, and on this basis, use the previous k The gradient of the time slot computation instance change is estimated as a correction;

[0033] After the estimated number of computational instances is determined, the problem that the global scheduling component needs to solve is a linear integer programming problem, which is solved directly by applying the existing integer linear programming solver; or after relaxing the definition domain, it is solved using linear programming tools or convex optimization tools; finally, the obtained result is rounded by random rounding.

[0034] Furthermore, in step 2, the sampled original data is used for training. If the deviation of the trained model is not large, there is no need to perform global model training to save resources. Otherwise, global calculation is required, that is, collecting the models on all edge clusters and updating them. The results of local calculations have large deviations, which actually reflects the need for global calculations.

[0035] Furthermore, in step 6, the global scheduling component is performing edge cluster Calculate the number of instances When estimating, edge clusters are required The historical performance information is used as the basis for its estimation. The reason is that the global scheduling component makes decisions at the beginning of the time slot. It does not actually observe the size of the original data of the application flow and the difference in local calculations in each edge cluster. Therefore, it can only make estimates based on the edge cluster. Make appropriate estimates of historical performance and trends.

[0036] The present invention continuously utilizes the information of the interaction between the global scheduling component and the local coordination component to formulate asymptotically optimal resource scheduling decisions for the two components respectively. The scheduling decision can take into account the changes of large and small time scales at the same time, and guide the decision correction of the two components through feedback.

[0037] Beneficial effects of the present invention:

[0038] The present invention can coordinate resource scheduling for multiple time frequencies, continuously utilize feedback from scheduling effects at multiple time frequencies, and mutually correct resource scheduling decisions, so that the scheduling at each time frequency can be asymptotically optimal, and the overall performance of the system can continue to improve; at the same time, it can also continuously adapt to changes in application computing requirements in the edge cluster, adjust and match local and global computing in a timely manner, and improve the resource efficiency of the entire cloud-edge system. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 It is a multi-frequency resource scheduling system architecture for edge computing provided by an example of the present invention.

[0040] Figure 2 It is a core component of multi-frequency resource scheduling for edge computing provided by the example of the present invention. DETAILED DESCRIPTION

[0041] The present invention will be further described below in conjunction with specific embodiments.

[0042] A multi-frequency resource scheduling method for edge computing includes a global scheduling component and a local coordination component; the global scheduling component is used to minimize the resource overhead and energy consumption of transmission and calculation in the global computing process, and is located in the cloud data center. Based on the state acquisition of each edge cluster, it is responsible for formulating a resource scheduling plan for global computing on a larger time scale, including whether to collect intermediate computing results from each edge cluster, and selecting the most appropriate computing location for collecting and processing these intermediate computing results from each edge cluster.

[0043] Figure 1 The multi-frequency resource scheduling system architecture for edge computing provided by the embodiment is shown. The system describes a cloud-edge environment, including a cloud data center and multiple edge clusters. Application services are deployed inside each edge cluster, which will generate application flows and continuously generate raw data for local computing and processing. Each edge cluster performs local calculations on these collected data by deploying computing instances. When each edge cluster completes local calculations for a time period, the global calculation collects the intermediate calculation results obtained by these edge clusters and aggregates them to a certain cluster for global calculation. In this process, the global scheduling component controls the resource scheduling of the global calculation, and the local coordination component controls the resource scheduling within the edge cluster. Figure 2 The example shows the core component of multi-frequency resource scheduling for edge computing. Since the scheduling frequencies of local computing and global computing are different, the global scheduling component and the local coordination component complete efficient resource scheduling for multiple time frequencies through continuous interaction.

[0044] Step 1: In each edge cluster, the local coordination component continuously schedules local computing resources based on the scale and location of the raw data generated by the application flow. This resource scheduling includes three decisions: deciding on the sampling scale of the raw data for each application flow, deciding and deploying the required computing instances within the edge cluster, and deciding to map the raw data generated by different application flows to the deployed computing instances for local computing.

[0045] In the above process, the local coordination component can make autonomous decision scheduling within a certain time range, which is usually consistent with the decision frequency of the global scheduling component, such as the hour level, referred to as a time slot. However, the local coordination component will continue to make decisions within this time range, and the time frequency of decision making is usually at the minute level, referred to as a time slice. The content of decision scheduling is the three decisions mentioned above. The following is a detailed explanation of the three decisions.

[0046] For each application flow , remember the current local coordination component in the time slice The data size generated in . The reason why the local coordination component can control the data scale generated by the application flow in this time slice is that it can also sample the application flow at a certain ratio, and the sampling result produced is the raw data required for local calculation. For example, a time slice is 1 minute, and the local coordination component can sample 1KB of application flow in each unit time; and the sampled data scale is a fixed size result, such as 10 bytes; then, for a 20KB application flow, the local coordination component will sample 60 * (20 / 1) = 1200 times within one minute, and generate 1200 * 10 = 12000 bytes of raw data for local calculation processing. In the above example, 12000 is The local coordination component can control the sampling of application flows of a specific size in each unit time to obtain the desired raw data scale. .

[0047] For the edge cluster, the target server of an application flow is Then on the server On, by application flow The size of the original data generated is Then, for all application flows in the edge cluster, The scale of all raw data generated is In order to process such a large amount of raw data, the number of computing instances that the local coordination component needs to open is In this process, the computing instance may not be directly deployed on the server. This is because the server The computing resources on the local coordinator may not be sufficient, or the local coordinator may intentionally use the computing instances that have been opened on other servers to process the raw data. , then the enabled computing instance needs to be able to process the generated raw data, that is .

[0048] In fact, the above decision variables To a certain extent, it has reflected the correspondence between the original data generated by the application flow and each computing instance. The original data of the application flow generated on To further distinguish the deployment location of the computing instance, For the server The number of compute instances enabled on the server to process data from the server The application streams raw data on the server and performs local calculations. In this process, the server is deployed on all servers to process the The total number of compute instances is ,Right now .

[0049] Step 2: The local coordination component is solved by the subsequent algorithm Perform instance deployment, data collection, and local calculation. In this process, if in the previous time slice, If there are already enough compute instances on the server, you do not need to start a new compute instance. Open on A new computing instance. Among them, the function , that is, it describes the number of new computing instances that need to be opened.

[0050] The local coordination component will summarize the results of local calculations at the end of a time slice, that is, . For a time slot, it contains multiple time slices. As mentioned above, a time slot may be 1 hour, a time slice may be 1 minute, so a time slot contains 60 time slices. If there are large differences between the local calculation results in these time slices, then at the end of the time slot, a global calculation will be introduced. The differences between the local calculation results can be indicated by indicator variables To judge. is the pre-set difference threshold; that is, when When the indicator variable If it is 1, it means that there is a large difference between the local calculations of two adjacent time slices, and global calculation is required. In actual scenarios, examples of large deviations in local calculations that require global calculations include using sampled raw data for training. If the deviation of the trained model is not large, global model training is not required to save resources. Otherwise, global calculation is required, that is, collecting and updating the models on all edge clusters. In fact, the large deviations in the results of local calculations actually reflect the need for global calculations.

[0051] Step 3: In each time slice, the local coordination component needs to combine the above modeling to schedule resources for the edge clusters governed by the component, and actually solve the following optimization problem to minimize resource overhead:

[0052] Optimization goal: ;

[0053] Optimization constraint 1: ;

[0054] Optimization constraint 2: ;

[0055] The first part of the optimization objective measures the resource overhead of the computing instances that are continuously enabled over the time slice. Indicates the resource cost of starting a single computing instance. Indicates the resource cost of running a computing instance in a time slice, that is, the second part of the optimization goal measures the cost of running a computing instance in a time slice. It should be noted here that starting a computing instance also requires resources, such as early image deployment, transmission, etc. The third part of the optimization goal describes if global convergence is to be performed at the end of the current time slot, which is determined by the indicator variable As shown, this variable is decided by the global scheduling component at the beginning of the entire time slot. That is, for each computing instance, if global computing is required, that is , then each computing instance needs to upload its intermediate computing results to the cluster that the global scheduling component has decided at the beginning of the time slot. Represents the cost of transmitting the intermediate computing results generated by a single computing instance from its edge cluster to the cluster where the global scheduling component makes decisions.

[0056] Optimization constraint 1 states that the enabled computing instance must be able to process the raw data generated by the application flow. Optimization constraint 2 states that if the deviation between two adjacent local calculations is large, then global calculation is necessary. , which means that the above comparison is meaningful only when the computing instance is deployed and actually performs local computing. It should be noted here that although the decision variable It has been decided by the global scheduling component at the beginning of the time slot. However, the local coordination component still regards it as a decision variable and must start the global calculation when the local calculation deviation is large.

[0057] Essentially, at the beginning of a time slot, the global scheduling component makes decisions based on the global network conditions. , the specific decision will be shown later, which is one of the information exchanged between the global scheduling component and the local coordination component. In addition, the local coordination component's modification of the variable based on the local calculation result, that is, the decision whether to trigger the global calculation, is also part of the interaction.

[0058] Step 4: The constraints of the above optimization problem are about decision , The linear representation of , but the optimization objective contains difficult to handle nonlinear terms , Then, the proposed method constructs a new constraint, that is, ; and in solving the above problem, shilling , if the deviation of the solution results obtained from two adjacent local calculations is not large, that is, , and then Set to the value decided by the global scheduling component at the beginning of the time slot. Under the above transformation, the original problem can be transformed into a problem with the following optimization objectives:

[0059] ,

[0060] The optimization goal of this problem, as mentioned above, is a linear function of decision making; its constraints, in addition to the two constraints in the original problem, are to increase Also about the decision variables , It is a linear function. Therefore, after relaxing the domain, it can be solved efficiently by calling existing convex optimization tools or linear programming tools.

[0061] Step 5. As mentioned before, at the beginning of each time slot, the global scheduling component needs to calculate the position for the global calculation at the end of the current time slot, that is, the selection of the cluster. The main problem to be solved is the following optimization problem:

[0062] Optimization goal: ;

[0063] Optimization constraints: ;

[0064] in, Indicates whether edge clusters need to be used The intermediate calculation data is used for global calculation; Represents the edge cluster An estimate of the number of computing instances; As mentioned before, for time slots The cost of transmitting the intermediate computing results generated by a single computing instance from its edge cluster to the cluster where the global scheduling component makes decisions. It should be noted that in the optimization problem of the local coordination component, since only the current time slot is concerned, No subscript. This optimization objective mainly measures the cost of global aggregation from different edge clusters.

[0065] The optimization constraint describes the lower limit of the number of times an edge cluster needs to participate in global computation; the lower limit is It should be noted here that the interaction between the global scheduling component and the local coordination component is The global scheduling component makes decisions at the beginning of a time slot. Will be transmitted to the edge cluster Then in its optimization problem, As mentioned before, in edge clusters During the optimization process of the local coordination component, that is, after all time slices in the time slot have been completed, if The result is 1, which means that there is a difference between two adjacent local calculations, so a global calculation is needed. Then, at the end of the time slot, In this way, the interaction between the global scheduling component and the local coordination component is completed.

[0066] Step 6: The global scheduling component is performing edge clustering Calculate the number of instances When estimating, edge clusters are also needed This is because the global scheduling component makes decisions at the beginning of the time slot and does not actually observe the size of the original data of the application flow and the differences in local calculations in each edge cluster. The historical performance and trend of the time slot can be properly estimated. When making the estimate, the only information available is from time slot 1 to time slot A simple way is to directly use the mean of the computational instances of the historical time slots as the estimator. However, in the case of application flow fluctuations in the edge cluster, the number of computational instances will also change continuously, and it is difficult to characterize such changes only by the mean. Therefore, the proposed method adopts the mean, variance and gradient. That is, on the basis of the traditional mean, first increase the time slot 1 to the time slot Calculate the instance variance as a supplement, and on this basis, use the previous k The gradient of the change in the time slot computation instance is estimated as a correction.

[0067] Once the estimated number of computational instances is determined, the problem that the global scheduling component needs to solve is a linear integer programming problem, which can be solved directly by applying the existing integer linear programming solver; or after relaxing the definition domain, using linear programming tools or convex optimization tools to solve it; finally, the result can be rounded by random rounding.

[0068] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, the interaction between the global scheduling component and the local coordination component in the present invention is applicable to all systems. Ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents, and any modifications or equivalent replacements that do not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.

Claims

1. A multi-frequency resource scheduling method for edge computing, Features: It includes global scheduling components and local coordination components. The global scheduling component is used to minimize the resource overhead and energy consumption of transmission and computing in the global computing process. It is located in the cloud data center and is responsible for formulating resource scheduling plans for global computing on a preset time scale based on the status of each edge cluster. This includes whether to collect intermediate computing results from each edge cluster and selecting the most appropriate computing location to collect and process these intermediate computing results from each edge cluster. The local coordination component minimizes the computing resource overhead in the edge cluster or maximizes resource utilization while meeting the local computing needs of the edge cluster. It is located in each edge cluster and formulates a resource scheduling plan for the edge cluster on a preset time scale, including scaling and deploying computing instances according to changes in application flows, and interacting and coordinating with the global scheduling component based on the intermediate computing results obtained by local computing. The global scheduling component and the local coordination component are nested to support multi-frequency resource scheduling; The specific steps are as follows: Step 1: In each edge cluster, the local coordination component continuously schedules local computing resources based on the scale and location of the raw data generated by the application flow. This resource scheduling includes three decisions: deciding on the sampling scale of the raw data of each application flow, deploying and deciding on the computing instances required within the edge cluster, and deciding to map the raw data generated by different application flows to the deployed computing instances for local computing. The content of decision scheduling is the above three decisions, as follows: For each application flow , remember the current local coordination component in the time slice The data size generated in In this time slice, the local coordination component controls the data scale generated by the application flow, samples the application flow according to a predetermined ratio, and uses the generated sampling result, that is, the application flow data obtained on the application flow according to a predetermined ratio, as the original data for local calculation; the local coordination component controls the sampling of the application flow in each unit time to obtain the desired data scale ; For the edge cluster, the target server of an application flow is , then on the server, the application stream The size of the data generated is ; For all application flows in the edge cluster, The scale of all raw data generated is ; In order to process the original data, the number of computing instances that the local coordination component needs to open is In this process, the computing instance may not be directly deployed on the server. This is because the server The computing resources on the local coordinator may not be sufficient, or the local coordinator may intentionally use the computing instances that have been opened on other servers to process the raw data. If the data scale that a computing instance can process is , then the enabled computing instance needs to be able to process the generated raw data, that is ; Calculate the number of instances It reflects the correspondence between the original data generated by the application flow and each computing instance, that is, for the server The original data of the application flow generated on A computing instance processes it. In order to further distinguish the deployment location of the computing instance, For the server The number of compute instances enabled on the server to process data from the server The application stream raw data on the server and performs local calculations; in this process, the processing server deployed on all servers The number of computing instances is ,Right now ; Step 2: The local coordination component solves the problem based on the algorithm Perform instance deployment, data collection, and local calculations; in this process, if in the previous time slice, on the server If there is already a compute instance on the server, you do not need to start a new compute instance. Open on A new computing instance, where the function , indicating the number of new computing instances that need to be started; The local coordination component summarizes the local calculation results at the end of a time slice. ; For a time slot, it contains multiple time slices. If there are large differences between the local calculation results in these time slices, then at the end of the time slot, global calculation is introduced; the differences between the local calculation results are indicated by indicator variables To judge, among them is the pre-set difference threshold; when When the indicator variable If it is 1, it means that the difference between the local calculations of two adjacent time slices is large, so global calculation is performed; Step 3: In each time slice, perform resource scheduling for the edge cluster governed by the local coordination component and solve the following optimization problem to minimize resource overhead: Optimization goal: ; Optimization constraint 1: ; Optimization constraint 2: ; The first part of the optimization objective measures the resource overhead of the computing instances that are continuously enabled over the time slice. Indicates the resource overhead of starting a single computing instance. Indicates the resource cost of running a computing instance in a time slice. That is, the second part of the optimization goal measures the cost of running the computing instance in the running time slice. The third part of the optimization goal describes the cost of global convergence at the end of the current time slot. As shown, this variable is decided by the global scheduling component at the beginning of the entire time slot; for each calculation instance, if global calculation is required, that is, , then each computing instance needs to upload its intermediate computing results to the cluster that the global scheduling component has decided at the beginning of the time slot, where The cost of transmitting the intermediate computing results generated by a single computing instance from its edge cluster to the cluster where the global scheduling component makes decisions; Optimization constraint 1, the calculation instance processes the raw data generated by the application flow; optimization constraint 2, represents the correctness of the comparison. If the deviation between two adjacent local calculations is large, a global calculation must be performed. Both sides of this constraint have , indicating that the above comparison is meaningful only when the computing instance is deployed and actually performs local computing; at the beginning of the time slot, the global scheduling component makes decisions based on the global network status. , is one of the information that the global scheduling component interacts with the local coordination component. The local coordination component modifies the variable based on the local calculation result, that is, decides whether to trigger the global calculation, which is also part of the interaction; Step 4: The constraints of the optimization problem are about decision making , The linear representation of , but the optimization objective contains difficult to handle nonlinear terms , , then a new constraint needs to be constructed, and the new constraint is required to meet Conditions; and in solving the problem, shilling , if the deviation between two adjacent local calculations obtained from the solution is not large, then Set to the value decided by the global scheduling component at the beginning of the time slot. Under the transformation, the original problem is transformed into a problem with the following optimization objectives: , The optimization goal of this problem is a linear function of decision making; let the increased Also about , It is a linear function. After relaxing the domain, it can be efficiently solved by calling existing convex optimization tools or linear programming tools. Step 5: At the beginning of each time slot, the global scheduling component calculates the position for the global calculation at the end of the current time slot, that is, the selection of clusters. The main problem to be solved is the following optimization problem: Optimization goal: ; Optimization constraints: ; in, Indicates whether edge clusters need to be used Perform global calculations on the intermediate calculation data; Represents the edge cluster An estimate of the number of computing instances; For time slot The cost of transmitting the intermediate computing results generated by a single computing instance from its edge cluster to the cluster decided by the global scheduling component; this optimization goal measures the cost of global aggregation from different edge clusters; The optimization constraint describes the lower limit of the number of times an edge cluster needs to participate in global computation; the lower limit is , the interaction between the global scheduling component and the local coordination component is , the global scheduling component decides at the beginning of the time slot Transmit to edge cluster , then in its optimization problem, , in the edge cluster During the optimization process of the local coordination component, that is, after all time slices in the time slot have been completed, if The result is 1, which means that there is a difference between two adjacent local calculations, so a global calculation is required; at the end of the time slot, , completed the interaction between the global scheduling component and the local coordination component; Step 6: The global scheduling component is performing edge clustering Calculate the number of instances When estimating, edge clusters are required Historical performance information is used as the basis for its estimation; when making the estimation, the only information available is from time slot 1 to time slot The number of computing instances in the historical time slots is directly used as the estimator. For the case of application flow fluctuations in the edge cluster, the number of computing instances will continue to change. The mean, variance and gradient are used to increase the number of time slots from 1 to 2. Calculate the instance variance as a supplement, and on this basis, use the previous k The gradient of the time slot computation instance change is estimated as a correction; After the estimated number of computational instances is determined, the problem that the global scheduling component needs to solve is a linear integer programming problem, which is solved directly by applying the existing integer linear programming solver; or after relaxing the definition domain, it is solved using linear programming tools or convex optimization tools; finally, the obtained result is rounded by random rounding.

2. According to the multi-frequency resource scheduling method for edge computing according to claim 1, Features: In step 2, the sampled original data is used for training. If the deviation of the trained model is not large, there is no need to perform global model training to save resources. Otherwise, global calculation is required, that is, collecting the models on all edge clusters and updating them. The results of local calculations have large deviations, which actually reflects the need for global calculations.

3. A multi-frequency resource scheduling method for edge computing according to claim 2, Features: In step 6, the global scheduling component is performing edge cluster Calculate the number of instances When estimating, edge clusters are required The historical performance information is used as the basis for its estimation. The reason is that the global scheduling component makes decisions at the beginning of the time slot. It does not actually observe the size of the original data of the application flow and the difference in local calculations in each edge cluster. Therefore, it can only make estimates based on the edge cluster. Make appropriate estimates of historical performance and trends.

Citation Information

Patent Citations

  • Streaming data-oriented cooperative computing method

    CN113873047A

  • Federal learning-oriented mobile edge computing resource management method

    CN115278708A