A method and device for scheduling edge computing tasks
By determining multiple constraints on tasks and servers in 5G mobile edge computing, delay-sensitive task scheduling in multi-task and multi-server scenarios is realized, solving the problems of limited resources and heterogeneity, and optimizing server operation overhead. and task delays.
Patent Information
- Application Number
- CN202311678753.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-08
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2043-12-08
AI Technical Summary
In 5G mobile edge computing, how to design a delay-sensitive task scheduling scheme that can not only meet the limited and heterogeneous server resources in multi-task multi-server scenarios, but also ensure the delay requirements of tasks.
By determining the CPU calculation amount, storage space size, task processing data amount and delay requirements of the target task, configure the preset communication bandwidth, storage space, number of virtual machines and the preset computing speed of the edge server to establish four Constraints ensure that each task is uniquely matched to an edge server, the resources occupied do not exceed the preset limit, the number of tasks does not exceed the number of virtual machines, and the completion delay does not exceed the requirements to achieve task scheduling.
It achieves the goal of minimizing server operating overhead while meeting the maximum task delay requirements, and provides an optimized delay-sensitive task scheduling solution suitable for multi-task and multi-server scenarios.
Smart Images

Figure CN117651044B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of smart grid technology, and in particular to an edge computing task scheduling method and device. Background Art
[0002] In 5G mobile edge computing, after the power equipment offloads the application tasks to the edge, it makes certain task scheduling decisions while comprehensively considering the task service quality requirements and system performance, and schedules each application task to the appropriate server for processing.
[0003] At present, it should be used for multi-task and multi-server task scheduling scenarios, such as Figure 1 As shown in the figure, it is necessary to consider the limited and heterogeneous nature of server resources at the same time. How to design a delay-sensitive task scheduling solution is an urgent problem to be solved. Summary of the invention
[0004] The present application provides an edge computing task scheduling method and device, the main purpose of which is to use the number of edge servers that can support services, the resources that can be occupied on the edge servers, the number of tasks that can be processed on the edge servers, and the quantitative delay requirements of each target task as constraints to allocate to the target task, so as to combine these four constraints to achieve a scheduling optimization solution suitable for delay-sensitive tasks.
[0005] In order to achieve the above objectives, this application mainly provides the following technical solutions:
[0006] The first aspect of the present application provides an edge computing task scheduling method, the method comprising:
[0007] Identify target tasks to be processed in the edge environment of the smart grid;
[0008] Determine the CPU computing amount, storage space size, task processing data volume and latency requirement quantity required for each target task;
[0009] In the edge environment, each edge server is configured with a preset communication bandwidth, a preset storage space, a preset number of virtual machines, a preset computing speed of the virtual machines, and a preset server operation overhead;
[0010] Constraining each of the target tasks to uniquely correspond to and be processed on one of the edge servers as a first constraint condition;
[0011] When processing at least one of the target tasks on the edge server, constraining the corresponding storage resources occupied by the edge server to be no greater than the preset storage space on the edge server as a second constraint condition;
[0012] When processing at least one of the target tasks on the edge server, constraining the number of the target tasks to be no greater than the preset number of virtual machines on the edge server as a third constraint condition;
[0013] Constraining the completion delay required for the target task to be completed is not greater than the delay requirement corresponding to the target task, as a fourth constraint condition;
[0014] At each task decision scheduling moment in the edge environment, a task scheduling operation for the plurality of target tasks is performed based on the first constraint condition, the second constraint condition, the third constraint condition, and the fourth constraint condition.
[0015] A second aspect of the present application provides an edge computing task scheduling device, the device comprising:
[0016] A first determination unit, configured to determine a target task to be processed in an edge environment of a smart grid;
[0017] The second determination unit is used to determine the CPU computing amount, storage space size, task processing data amount and latency requirement quantity required for each target task;
[0018] A configuration unit, configured to configure a preset communication bandwidth, a preset storage space, a preset number of virtual machines and a preset computing speed of the virtual machines, and a preset server operation overhead for each edge server in the edge environment;
[0019] A first construction unit, used to constrain each of the target tasks to uniquely correspond to and be processed on one of the edge servers as a first constraint condition;
[0020] A second construction unit is configured to constrain, when processing at least one of the target tasks on the edge server, a corresponding storage resource occupied on the edge server to be no greater than the preset storage space on the edge server as a second constraint condition;
[0021] A third construction unit is used to constrain the number of the target tasks to be no greater than the preset number of virtual machines on the edge server when processing at least one of the target tasks on the edge server, as a third constraint condition;
[0022] A fourth construction unit is used to constrain the completion delay required for the target task to be completed to be no greater than the delay requirement quantity corresponding to the target task, as a fourth constraint condition;
[0023] An execution unit is used to implement a task scheduling operation on the plurality of target tasks based on the first constraint condition, the second constraint condition, the third constraint condition and the fourth constraint condition at each task decision scheduling moment in the edge environment.
[0024] The third aspect of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned edge computing task scheduling method is implemented.
[0025] The fourth aspect of the present application provides an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the above-mentioned edge computing task scheduling method when executed by the processor.
[0026] By means of the above technical solution, the technical solution provided by this application has at least the following advantages:
[0027] The present application provides an edge computing task scheduling method and device. For each target task to be processed in the edge environment of the smart grid, the CPU computing amount, storage space size, task processing quantity and delay requirement corresponding to each target task are first estimated and determined, and each edge server is configured with a preset communication bandwidth, preset storage space, preset number of virtual machines and preset computing speed of virtual machines, and preset server operation overhead; then, multiple constraints are constructed based on the data information obtained by estimating and determining the target task and the data information configured on the edge server, and the multiple constraints involve: each target task is uniquely assigned to an edge server. The first constraint condition, the second constraint condition that constrains the resources that can be occupied by executing the processing task on the edge server, the third constraint condition that constrains the number of executable processing tasks on the edge server, and the fourth constraint condition that constrains the completion delay of the target task, thereby implementing the task scheduling operation of the target task in the edge environment based on these four constraints. In response to the existing multi-task and multi-server task scheduling scenario, in order to minimize the server's operating overhead while meeting the maximum task delay requirement, an optimized delay-sensitive task scheduling scheme is provided.
[0028] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present application. Also, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0030] Figure 1 A schematic diagram of a multi-task and multi-server task scheduling scenario provided in an embodiment of the present application;
[0031] Figure 2 A flow chart of an edge computing task scheduling method provided in an embodiment of the present application;
[0032] Figure 3 A block diagram of the composition of an edge computing task scheduling device provided in an embodiment of the present application;
[0033] Figure 4 A block diagram of another edge computing task scheduling device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0034] The exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.
[0035] The present application embodiment provides an edge computing task scheduling method, such as Figure 2 As shown, the present application embodiment provides the following specific steps:
[0036] 101. Identify target tasks to be processed in the edge environment of the smart grid.
[0037] like Figure 1 As shown, in the 5G mobile edge computing (MEC) environment of the smart grid, a multi-task and multi-server task scheduling scenario can be provided, in which the target tasks to be processed can come from a large number of terminal devices, such as mobile phones, laptops, etc.
[0038] 102. Determine the amount of CPU computing, storage space, task processing data volume and latency requirements required for each target task.
[0039] In the embodiment of the present application, it is assumed that there are n target tasks to be processed in the edge environment, and the set thereof can be expressed as T = {t1, t2…, t n}, since each target task has corresponding requirements such as CPU computing capacity, storage space size and minimum completion delay, the task model of the i-th target task can be expressed as t i ={w i ,s i ,δ i ,d i}, where w i It is the task i CPU calculation amount, s i is the required storage capacity (i.e. storage space size), δ i is the minimum delay requirement (i.e., the delay requirement is quantitative), d i is the data size (i.e. the amount of data processed by the task).
[0040] 103. In the edge environment, each edge server is configured with a preset communication bandwidth, a preset storage space, a preset number of virtual machines and a preset computing speed of the virtual machines, and a preset server operation overhead.
[0041] In the embodiment of the present application, it is assumed that there are m heterogeneous MEC servers (i.e., edge servers) in the edge environment, and these server sets can be expressed as E = {e1, e2…, e n}, each edge server is deployed with a certain number of V virtual machines to handle the offloaded tasks. j The server model can be expressed as e j = {B j ,S j ,V j ,R j ,C j}, where B j It is the edge server j The maximum communication bandwidth (i.e., the preset communication bandwidth), S j is the maximum storage space (i.e. the preset storage space), V j is the number of deployed virtual machines (i.e., the preset computing speed of the virtual machines), R j is the computing speed of each virtual machine (i.e., the preset computing speed of the virtual machine), C j is the operating cost of the edge server (i.e., the default server operating cost).
[0042] It should be noted that, although the computing rates of different edge servers may be different, the embodiment of the present application assumes that the computing rate of each virtual machine in the same edge server is the same.
[0043] 104. Constrain each target task to uniquely correspond to and be matched to an edge server for processing, as a first constraint condition.
[0044] In order to avoid the same target task being assigned to different edge servers for processing, which increases the overall overhead of the edge servers, each target task is constrained to be uniquely matched to one edge server for processing. It should be noted that in order to distinguish the different constraints proposed, the embodiments of the present application use the words "first", "second", "third", "fourth" and "fifth" for identification, and these words only serve as identification, and there is no other sorting ambiguity in the operation.
[0045] For example, at each scheduling decision moment, the task scheduler obtains all pending target tasks and the status information of the currently available MEC servers, and schedules each task to be executed on a suitable MEC server based on a certain task scheduling algorithm. Assume that after all current tasks are processed, the task scheduler will make the next task scheduling decision. Define the task scheduling decision variable as x ij , expressed as:
[0046]
[0047] Among them, t i From the set T = {t1, t2t, t n} (i.e. n target tasks to be processed), e j From E = {e1, e2…, e n} (i.e., m heterogeneous MEC servers).
[0048] In order to ensure that each target task is processed by one and only one MEC server, the following constraints need to be met:
[0049]
[0050] Among them, the task scheduling decision variable is x ij , i represents the number of target tasks to be processed, and there are n target tasks in total, j represents the number of edge servers, and there are m edge servers in total.
[0051] 105. When processing at least one target task on the edge server, constraining the corresponding storage resources occupied on the edge server to be no greater than a preset storage space on the edge server as a second constraint condition.
[0052] Since the various resources on each MEC server are limited, the task scheduling strategy needs to ensure that the resource requirements of each application are met. Therefore, each server must have sufficient storage space to save the tasks to be processed; otherwise, the task data will be lost. Therefore, there are the following storage resource constraints:
[0053]
[0054] Among them, the task scheduling decision variable is x ij , i represents the number of target tasks to be processed, and there are n target tasks in total, j represents the number of edge servers, and there are m edge servers in total, S j Indicates the maximum storage space on an edge server.
[0055] 106. When processing at least one target task on the edge server, constraining the number of target tasks to be no greater than the preset number of virtual machines on the edge server as a third constraint condition.
[0056] Since the number of virtual machines deployed on each MEC server is limited, the number of tasks scheduled to the edge server cannot exceed the number of virtual machines, so there are the following constraints:
[0057]
[0058] Among them, the task scheduling decision variable is x ij , i represents the number of target tasks to be processed, and there are n target tasks in total, j represents the number of edge servers, and there are m edge servers in total, V j Indicates the number of virtual machines deployed on an edge server.
[0059] 107. The fourth constraint condition is that the completion delay required for the target task to be completed is not greater than the delay requirement quantity corresponding to the target task.
[0060] Since each target task has a corresponding delay requirement, in order to ensure the service quality of the task, the target task needs to be completed within the specified delay. Therefore, constraints are constructed, such as: constraining the target task to be completed at a delay not greater than the delay requirement quantity corresponding to the target task.
[0061] 108. At each task decision scheduling moment in the edge environment, a task scheduling operation for multiple target tasks is implemented based on the first constraint condition, the second constraint condition, the third constraint condition, and the fourth constraint condition.
[0062] In the embodiment of the present application, it should be noted that the above steps 104, 105, 106 and 107 can be executed in any order or in parallel, so as to help ultimately improve the overall task scheduling efficiency.
[0063] As mentioned above, the embodiment of the present application provides an edge computing task scheduling method, which constructs multiple constraints for the target tasks to be processed and the edge servers in the edge computing environment of the smart grid, such as: each target task is uniquely assigned to an edge server. The second constraint condition constrains the resources that can be occupied by the edge server to execute the processing task, the third constraint condition constrains the number of executable processing tasks on the edge server, and the fourth constraint condition constrains the completion delay of the target task, thereby implementing the task scheduling operation for the target task in the edge environment based on these four constraints. In response to the existing multi-task and multi-server task scheduling scenario, in order to minimize the operating overhead of the server while meeting the maximum task delay requirement, an optimized delay-sensitive task scheduling scheme is provided.
[0064] Further, in the embodiment of the present application, the fourth constraint condition constructed in step 107 can be refined to include: the sum of the processing delay corresponding to the constrained target task, the task input transmission delay and the result output delay is not greater than the delay requirement quantity. The specific explanation is as follows:
[0065] Since each task has a corresponding delay requirement, in order to ensure the service quality of the task, the task needs to be completed within the specified delay. Among them, the task completion delay is mainly composed of three parts: processing delay Task input transmission delay and result output delay The details are as follows:
[0066]
[0067] Where i represents the number of target tasks to be processed, and there are n target tasks in total; j represents the number of edge servers, and there are m edge servers in total. Represents the target task t i The size of the input task, Represents the target task t i The size of the resulting output, Represents the target task t i Transfer to server j Uplink bandwidth, Representative server j Returns the target task t i The downlink bandwidth of the processing result. In building a scheduling model, assume
[0068] In order to ensure that each task can be completed within the specified delay, the following formula needs to be satisfied:
[0069]
[0070] in, d i is the data size of the target task; i represents the number of target tasks to be processed, and there are n target tasks in total; j represents the number of edge servers, and there are m edge servers in total; w i is the target task t i The CPU computation amount, δ i is the target task t i Minimum latency requirement; R j is the computing speed of each virtual machine; the task scheduling decision variable is x ij .
[0071] Furthermore, in some modified embodiments, the embodiments of the present application estimate the communication bandwidth required for each target task based on the first constraint, the second constraint, the third constraint and the fourth constraint, and constrain the bandwidth requirements of multiple target tasks called to the edge server in the edge environment to not exceed the preset communication bandwidth on the edge server, as the fifth constraint.
[0072] For example, in order to ensure that each task can be completed within the specified delay, the following formula needs to be satisfied:
[0073]
[0074] in, d i is the data size of the target task; i represents the number of target tasks to be processed, and there are n target tasks in total; j represents the number of edge servers, and there are m edge servers in total; w i is the target task t i The CPU computation amount, δ i is the target task t i Minimum latency requirement; R j is the computing speed of each virtual machine; the task scheduling decision variable is x ij .
[0075] According to the above formula, if the target task t i Dispatched to edge server j The minimum communication bandwidth required is:
[0076]
[0077] In order to reduce the system resource consumption as much as possible and process more tasks, the completion delay of all target tasks is considered to be equal to the maximum tolerable delay. Then, the communication bandwidth required for each task is:
[0078]
[0079] Since the bandwidth resources of each MEC server are also limited, the bandwidth requirements of all tasks scheduled to the server cannot exceed the available communication bandwidth of the server, that is:
[0080]
[0081] Among them, B j It is the edge server j The maximum communication bandwidth of d i is the data size of the target task; i represents the number of target tasks to be processed, and there are n target tasks in total; j represents the number of edge servers, and there are m edge servers in total; w i is the target task t i The CPU computation amount, δ i is the target task t i Minimum latency requirement; R j is the computing speed of each virtual machine; the task scheduling decision variable is x ij .
[0082] Further, in some modified embodiments, the embodiment of the present application implements a task scheduling operation for multiple target tasks based on the first constraint condition, the second constraint condition, the third constraint condition, the fourth constraint condition and the fifth constraint condition, and further refines the operation including:
[0083] One solution is: based on the preset server operating overhead configured for each edge server, in order from low to high, at each task decision scheduling moment in the edge environment, the scheduling operation of the target task is executed.
[0084] And on this basis, further optimization and improvement are as follows:
[0085] First, evaluate the benefits corresponding to each target task; then combine the preset server operation costs of each edge server from low to high, and the benefits of each target task from high to low, and perform the scheduling operation of the target task at each task decision scheduling moment in the edge environment. Specific explanation is as follows: Example 1:
[0086] The embodiment of the present application provides a low-overhead delay-sensitive task scheduling algorithm: First, the complexity of solving the above optimization problem is analyzed, and the results show that the solution to this problem is NP-hard. Secondly, based on the best-fit greedy idea, a heuristic low-overhead delay-sensitive task scheduling algorithm (Two-stage Task Scheduling Cost Optimization, TTSCO) is designed to achieve a fast solution to the optimization problem.
[0087] Based on the Best-fit greedy idea, a fast task scheduling algorithm (TTSCO) is designed, which consists of two stages. In the first stage, the improved Best-fit algorithm is used to obtain the preliminary task scheduling decision; in the second stage, the preliminary scheduling decision is optimized again to determine the final scheduling strategy. Next, the scheduling decisions of the two stages are explained in detail.
[0088] Among them, the first stage
[0089] For task scheduling decisions in the edge, it is necessary to determine which tasks are scheduled to which servers. Therefore, selecting the right server and selecting tasks that match it are two important steps. Below, based on the best-fit greedy idea, these two steps are explained separately.
[0090] 1) Select MEC server
[0091] Define each server j The unit cost is expressed as:
[0092]
[0093] Where Z j For server j The resource quantity function, specifically,
[0094]
[0095] Where i represents the number of target tasks to be processed, and there are n target tasks in total; j represents the number of edge servers, and there are m edge servers in total; each edge server e j The server model can be expressed as e j = {B j ,S j ,V j ,R j ,C j}, where B j It is the edge server j The maximum communication bandwidth (i.e., the preset communication bandwidth), S j is the maximum storage space (i.e. the preset storage space), V j is the number of deployed virtual machines (i.e., the preset computing speed of the virtual machines), R j is the computing speed of each virtual machine (i.e., the preset computing speed of the virtual machine), C j is the operating cost of the edge server (i.e., the default server operating cost).
[0096] In summary, since the optimization goal is to minimize the server operation overhead, the TTSCO algorithm prefers servers with lower unit overhead for task scheduling. This is because when the unit overhead of a server is lower, it means that the operation overhead caused by the server is lower when processing the same task.
[0097] 2) Select the tasks to be processed on the MEC server
[0098] Use vector Represents task t i Dispatching to server j The amount of resources required to execute In some tasks dispatched to the server j After that, the remaining available resources of the server are represented by the vector Indicates, as follows:
[0099]
[0100] Where Γ is the number of nodes that have been scheduled to server e j A collection of tasks.
[0101] If the server e j Able to meet the task i The resource demand of the task is defined as That is:
[0102]
[0103] In summary, based on the Best-fit algorithm, for the selected MEC server, the TTSCO algorithm will prioritize scheduling tasks with greater benefits on the server. This is because the greater the scheduling benefit, the more likely the task can utilize the resources of the MEC server as much as possible, and the more the various resource requirements of the task match the available resources of the server.
[0104] Among them, the second stage
[0105] After the task scheduling of the previous stage is completed, a preliminary task scheduling solution can be obtained. For the last selected server, only a small amount of resources are utilized. Therefore, after completing the task scheduling decision of the first stage, TTSCO further adjusts the scheduling decision to improve the resource utilization of the last selected server.
[0106] As the above Figure 2The implementation of the method shown in the embodiment of the present application provides an edge computing task scheduling device. This device embodiment corresponds to the aforementioned method embodiment. For ease of reading, this device embodiment will no longer repeat the details of the aforementioned method embodiment one by one, but it should be clear that the device in this embodiment can correspond to all the contents of the aforementioned method embodiment. The device is used to provide a scheduling optimization solution for delay-sensitive tasks, specifically as follows Figure 3 As shown, the device comprises:
[0107] A first determining unit 201 is used to determine a target task to be processed in an edge environment of a smart grid;
[0108] The second determining unit 202 is used to determine the CPU computing amount, storage space size, task processing data amount and latency requirement quantity required for each target task;
[0109] A configuration unit 203 is used to configure a preset communication bandwidth, a preset storage space, a preset number of virtual machines, a preset computing speed of the virtual machines, and a preset server operation overhead for each edge server in the edge environment;
[0110] A first construction unit 204 is used to constrain each of the target tasks to uniquely correspond to and be processed on one of the edge servers as a first constraint condition;
[0111] A second construction unit 205 is configured to constrain, when processing at least one of the target tasks on the edge server, the corresponding storage resource occupied on the edge server to be no greater than the preset storage space on the edge server as a second constraint condition;
[0112] A third construction unit 206 is used to constrain the number of the target tasks to be no greater than the preset number of virtual machines on the edge server when processing at least one of the target tasks on the edge server, as a third constraint condition;
[0113] A fourth construction unit 207 is used to constrain the completion delay required for the target task to be completed to be no greater than the delay requirement quantity corresponding to the target task, as a fourth constraint condition;
[0114] The execution unit 208 is used to implement a task scheduling operation on the plurality of target tasks based on the first constraint condition, the second constraint condition, the third constraint condition and the fourth constraint condition at each task decision scheduling moment in the edge environment.
[0115] Further, such as Figure 4 As shown, the fourth construction unit 207 is further specifically used for:
[0116] The sum of the processing delay, task input transmission delay and result output delay corresponding to the target task is constrained to be no greater than the delay requirement quantity.
[0117] Further, such as Figure 4 As shown, the device also includes:
[0118] A calculation unit 209, configured to estimate and calculate a communication bandwidth required for each of the target tasks based on the first constraint condition, the second constraint condition, the third constraint condition, and the fourth constraint condition;
[0119] The fifth construction unit 210 is configured to constrain, in the edge environment, bandwidth requirements of the plurality of target tasks invoked on the edge server to not exceed the preset communication bandwidth on the edge server, as a fifth constraint condition.
[0120] Further, such as Figure 4 As shown, the execution unit 208 also includes:
[0121] The first execution module 2081 is used to execute the scheduling operation of the target task at each task decision scheduling moment in the edge environment in order from low to high based on the preset server running overhead configured for each edge server.
[0122] Further, such as Figure 4 As shown, the execution unit 208 also includes:
[0123] Evaluation module 2082, used to evaluate the benefits corresponding to each of the target tasks;
[0124] The second execution module 2083 is used to comprehensively consider the preset server operation overheads configured by each edge server from low to high, and the benefits of each target task from high to low, and perform scheduling operations on the target task at each task decision scheduling moment in the edge environment.
[0125] In summary, the embodiments of the present application provide an edge computing task scheduling method and device, which allocates the number of edge servers that can support services, the resources that can be occupied on the edge servers, the number of tasks that can be processed on the edge servers, the quantitative delay requirements of each target task as constraints, and the bandwidth constraints of the edge servers to the target tasks, thereby combining these five constraints to achieve a scheduling optimization solution suitable for delay-sensitive tasks.
[0126] The edge computing task scheduling device includes a processor and a memory. The above-mentioned first determination unit, second determination unit, configuration unit, first construction unit, second construction unit, third construction unit, fourth construction unit and execution unit are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to realize corresponding functions.
[0127] The processor includes a kernel, which calls the corresponding program unit from the memory. One or more kernels can be set, and the kernel parameters can be adjusted to provide a scheduling optimization solution suitable for delay-sensitive tasks.
[0128] An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned edge computing task scheduling method is implemented.
[0129] An embodiment of the present application provides an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the above-mentioned edge computing task scheduling method is implemented.
[0130] An embodiment of the present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program that initializes the steps of an upper edge computing task scheduling method.
[0131] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0132] In a typical configuration, the device includes one or more processors (CPU), memory and bus. The device may also include input / output interface, network interface and the like.
[0133] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip. The memory is an example of a computer-readable medium.
[0134] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0135] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0136] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0137] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A method for scheduling edge computing tasks, characterized in that: The method comprises: Identify target tasks to be processed in the edge environment of the smart grid; Determine the CPU computing amount, storage space size, task processing data volume and latency requirement quantity required for each target task; In the edge environment, each edge server is configured with a preset communication bandwidth, a preset storage space, a preset number of virtual machines, a preset computing speed of the virtual machines, and a preset server operation overhead; Constraining each of the target tasks to uniquely correspond to and be processed on one of the edge servers as a first constraint condition; When processing at least one of the target tasks on the edge server, constraining the corresponding storage resources occupied by the edge server to be no greater than the preset storage space on the edge server as a second constraint condition; When processing at least one of the target tasks on the edge server, constraining the number of the target tasks to be no greater than the preset number of virtual machines on the edge server as a third constraint condition; Constraining the completion delay required for the target task to be completed is not greater than the delay requirement quantity corresponding to the target task, as a fourth constraint condition, including: constraining the sum of the processing delay, task input transmission delay and result output delay corresponding to the target task is not greater than the delay requirement quantity; Based on the first constraint condition, the second constraint condition, the third constraint condition and the fourth constraint condition, estimating and calculating the communication bandwidth required for each of the target tasks; Constraining, in the edge environment, that the bandwidth requirements of the plurality of target tasks invoked on the edge server do not exceed the preset communication bandwidth on the edge server as a fifth constraint; At each task decision scheduling moment in the edge environment, a task scheduling operation for the plurality of target tasks is performed based on the first constraint, the second constraint, the third constraint, the fourth constraint, and the fifth constraint.
2. The method according to claim 1, characterized in that Based on the first constraint condition, the second constraint condition, the third constraint condition, the fourth constraint condition and the fifth constraint condition, performing a task scheduling operation on the plurality of target tasks includes: Based on the level of the preset server operation overhead configured for each of the edge servers, in order from low to high, at each task decision scheduling moment in the edge environment, a scheduling operation for the target task is performed.
3. The method according to claim 2, characterized in that The method further comprises: Evaluate the benefits corresponding to each of the target tasks; Based on the preset server operation overheads configured for each of the edge servers from low to high, and the benefits of each of the target tasks from high to low, a scheduling operation for the target task is performed at each task decision scheduling moment in the edge environment.
4. An edge computing task scheduling device, characterized in that: The device comprises: A first determination unit, configured to determine a target task to be processed in an edge environment of a smart grid; The second determination unit is used to determine the CPU computing amount, storage space size, task processing data amount and latency requirement quantity required for each target task; A configuration unit, configured to configure a preset communication bandwidth, a preset storage space, a preset number of virtual machines and a preset computing speed of the virtual machines, and a preset server operation overhead for each edge server in the edge environment; A first construction unit is used to constrain each of the target tasks to uniquely correspond to and be processed on one of the edge servers as a first constraint condition; A second construction unit is configured to constrain, when processing at least one of the target tasks on the edge server, a corresponding storage resource occupied on the edge server to be no greater than the preset storage space on the edge server as a second constraint condition; A third construction unit is used to constrain the number of the target tasks to be no greater than the preset number of virtual machines on the edge server when processing at least one of the target tasks on the edge server, as a third constraint condition; A fourth construction unit is used to constrain the completion delay required for the target task to be completed to be no greater than the delay requirement quantity corresponding to the target task, as a fourth constraint condition; The fourth construction unit is further specifically used to: constrain the sum of the processing delay, task input transmission delay and result output delay corresponding to the target task to be no greater than the delay requirement quantity; A calculation unit, configured to estimate and calculate a communication bandwidth required for each of the target tasks based on the first constraint condition, the second constraint condition, the third constraint condition, and the fourth constraint condition; A fifth construction unit, configured to constrain, in the edge environment, a bandwidth requirement of the plurality of target tasks invoked on the edge server to not exceed the preset communication bandwidth on the edge server, as a fifth constraint condition; An execution unit is used to implement task scheduling operations on multiple target tasks based on the first constraint condition, the second constraint condition, the third constraint condition, the fourth constraint condition, and the fifth constraint condition at each task decision scheduling moment in the edge environment.
5. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the edge computing task scheduling method according to any one of claims 1 to 3 is implemented.
6. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the edge computing task scheduling method as described in any one of claims 1 to 3.
