Power distribution network edge side resource rescheduling method and device considering burst task

By constructing a resource optimization rescheduling model and a mixed integer linear optimization problem solver, the resource allocation problem of the distribution network edge computing device in sudden task processing is solved, and the rapid processing of sudden tasks and the efficient operation of the edge computing device are achieved. .

CN118801344APending Publication Date: 2024-10-18STATE GRID TIANJIN ELECTRIC POWER COMPANY +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410785389.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-18
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

Distribution network edge computing devices face resource allocation and response delay problems when processing sudden tasks, and it is difficult to quickly handle sudden computing tasks without affecting the original planned tasks.

Method used

A resource rescheduling method for distribution network edge computing devices considering sudden tasks is established. By obtaining device performance parameters and task characteristics, a resource optimization rescheduling model is constructed, and a mixed integer linear optimization problem solver is used to optimize resource allocation with the minimum The completion time of sudden tasks and the delay of original planned tasks are optimized, and the loss of abandoned tasks is weighed.

Benefits of technology

It achieves rapid processing of sudden tasks and efficient utilization of edge computing device resources, ensuring the completion quality of the original planned tasks and the operating efficiency and reliability of the edge computing device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118801344A_ABST
    Figure CN118801344A_ABST
Patent Text Reader

Abstract

The invention provides a power distribution network edge side resource rescheduling method and device considering a burst task, and the method comprises the following steps: obtaining device performance parameters, the type, characteristic parameters and execution logic sequence of an original plan task, and characteristic parameters of a burst calculation task for a to-be-optimized power distribution network edge calculation device; the edge computing device presets a scheduling plan for resources; establishing a power distribution network edge computing device resource optimization rescheduling model considering the burst task; solving the rescheduling model by adopting a mixed integer linear optimization problem solver to obtain an optimized scheduling result; a power distribution network edge side resource rescheduling device considering the burst task is provided; according to the method, rapid processing of the burst task and efficient utilization of resources of the edge computing device are achieved, meanwhile, the completion quality of the original plan task is guaranteed, and the operation efficiency and reliability of the edge computing device are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of optimized operation of distribution networks, and in particular to a method and device for rescheduling resources at the edge of a distribution network taking into account sudden tasks. Background Art

[0002] Edge computing technology deploys computing and storage resources near terminal devices to achieve distributed on-site computing and processing of data. This on-site computing and data analysis method has the advantages of low latency, strong security and strong scalability. Nowadays, edge computing technology is widely used in distribution networks as an advanced digital technology to improve the ability of distribution networks to analyze and utilize massive data. Among them, the edge computing device in the distribution network, as a database and control center, needs to complete different types of power grid services such as protection, control, metering, and monitoring under limited resources, and needs to respond to sudden computing needs such as real-time cloud data requests and fault analysis processing in a timely manner. Unlike the planned computing tasks, sudden computing tasks can be generated at any time during the operation of the distribution network and are unpredictable. At the same time, they have a higher processing priority and need to be calculated and processed as soon as possible. The above facts show that in the actual operation of edge computing devices, they face huge challenges in sudden task processing and resource allocation. Therefore, it is necessary to study effective methods and devices for rescheduling resources on the edge of the distribution network that take into account burst tasks. By optimizing and rescheduling computing and storage resources, rapid processing of burst computing tasks can be achieved, while minimizing the impact on multiple types of original planned tasks and ensuring collaborative processing between tasks, thereby reducing the response delay to burst tasks and improving the resource utilization and reliability of edge computing devices. Summary of the invention

[0003] In order to overcome the shortcomings of the prior art, the present invention provides a distribution network edge computing device resource rescheduling method taking into account sudden tasks, which can achieve full utilization of computing resources and efficient and reliable operation of distribution network edge computing devices.

[0004] The present invention adopts the following technical solution:

[0005] A method and device for rescheduling resources at the edge of a distribution network considering sudden tasks, the method comprising the following steps:

[0006] For the edge computing device of the distribution network to be optimized, obtain the device performance parameters, the type, characteristic parameters and execution logic sequence of the original planned tasks, the characteristic parameters of the burst computing tasks, and the preset scheduling plan of the edge computing device resources;

[0007] Establish a resource optimization and rescheduling model for edge computing devices in a distribution network considering burst tasks, wherein the rescheduling model includes a comprehensive objective function and constraints for resource optimization and rescheduling considering burst computing tasks, wherein the objective function aims to minimize the completion time of burst computing tasks, minimize the delay in completing the original planned tasks caused by completing the burst tasks, minimize the loss of abandoning the original planned tasks, and minimize the loss of abandoning the burst computing tasks;

[0008] A mixed integer linear optimization problem solver is used to solve the rescheduling model to obtain an optimized scheduling result.

[0009] Furthermore, the constraints include rescheduling period constraints, burst task computing and processing constraints, transferable task computing and processing constraints, non-transferable task computing and processing constraints, processing status update constraints for all computing tasks, execution logic association constraints between originally planned tasks, and resource limitation constraints for the rescheduling period of the edge computing device.

[0010] Furthermore, the comprehensive objective function of resource optimization and rescheduling considering burst computing tasks is:

[0011] minf=τ1T more +τ2ψT E,R +τ3E A,r +τ4E A,e (42)

[0012] in:

[0013] Goal 1 is the completion time T of the burst computing task E,R Minimum, the specific expression is:

[0014]

[0015] Objective 2 is to complete the original planned task completion delay caused by the sudden task and T more The specific expression of goal 2 is:

[0016]

[0017] Objective 3 is to abandon the losses caused by the original planned mission and E A,r Minimum, the specific expression is:

[0018]

[0019] Objective 4 is to abandon the loss caused by the sudden task E A,e Minimum, the specific expression is:

[0020] minE A,e = l R L e(41)

[0021] Where i represents the original planned task number and i∈[1,N]; t represents the optimization period and t∈[1,H]; is an auxiliary variable used to describe whether the burst task has been completed in the rescheduling period t; ψ represents the threshold factor of the burst computing task completion time, thereby weighing the two optimization goals of quickly completing the burst task and reducing task abandonment; T E,f Indicates the completion time threshold of the burst computing task; m1 indicates a value less than 10 6 constant; m2 indicates a value greater than 10 6 The constant of represents the actual completion time of the original planned task i according to the preset scheduling plan; p i,t is an auxiliary variable used to describe whether the original planned task i has been completed in time period t; L i represents the discard weight factor of the original planned task i; L e represents the discard weight factor of the burst computing task; τ1, τ2, τ3 and τ4 represent weight coefficients; e i,t is the number of CPU cycles allocated by the edge computing device to the original planned task i in time period t according to the preset scheduling plan; represents the number of CPU cycles allocated by the edge computing device to the burst task in the rescheduling period t; Indicates the abandoned status of the original planned task i during the rescheduling period; l R Indicates the abandonment status of burst computing tasks during the rescheduling period; b i The total number of CPU cycles required to complete the processing of the original planned task i; b e The total number of CPU cycles required to complete processing for the burst task.

[0022] Furthermore, the rescheduling period constraint is expressed as:

[0023]

[0024]

[0025] Where i represents the original planned task number and i∈[1,N]; k represents the core number and k∈[1,K]; t represents the optimization period and t∈[1,H]; F t represents the flexibility of the edge computing device in time period t; H is the total duration of the optimized scheduling; K is the total number of cores owned by the edge computing device; represents the maximum number of CPU cycles of the edge computing device core k; N is the total number of original planned tasks; e i,tis the number of CPU cycles allocated by the edge computing device to the original planned task i in time period t according to the preset scheduling plan; F′ is an auxiliary variable used to indicate whether the edge computing device is capable of allocating the required resources for processing burst tasks in time period t; T A,e Indicates the time when the burst task is generated; b e The total number of CPU cycles required to complete the processing of the burst task; M indicates a value greater than 10 5 The constant of T D This is the rescheduling period.

[0026] Furthermore, the burst task calculation processing constraint is expressed as:

[0027]

[0028] Where t represents the optimization period and t∈[1,H]; l R Indicates the abandonment status of burst computing tasks during the rescheduling period; represents the number of CPU cycles allocated by the edge computing device to the burst task in the rescheduling period t; represents the working status of the burst task in the rescheduling period t; T A,e Indicates the time when the burst task is generated; b e The total number of CPU cycles required to complete the processing of the burst task; T D This is the rescheduling period.

[0029] Furthermore, the transferable task computation processing constraint is expressed as:

[0030]

[0031] Where i represents the original planned task number and i∈[1,N]; t represents the optimization period and t∈[1,H]; Indicates the abandoned status of the original planned task i during the rescheduling period; represents the number of CPU cycles allocated by the edge computing device to the original scheduled task i during the rescheduling period t; represents the working status of the original planned task i in the rescheduling period t; s i,t represents the working status of the original planned task i in time period t according to the preset scheduling plan; Ω1 and Ω2 represent the numbered sets of delayable and interruptible tasks and non-delayable tasks respectively; T A,e Indicates the time when the burst task is generated; T D It is the rescheduling period;

[0032] The non-transferable task computation processing constraint is expressed as:

[0033]

[0034] Where i represents the original planned task number and i∈[1,N]; k represents the core number and k∈[1,K]; t represents the optimization period and t∈[1,H]; c i,k It indicates the allocation of the original planned task i to core k according to the preset scheduling plan; represents the allocation of the original planned task i to core k during the rescheduling period; l i represents the abandoned status of the original planned task i in the preset scheduling plan; Ω3 and Ω4 represent the numbered sets of periodic and continuous tasks respectively; e i,t The number of CPU cycles allocated by the edge computing device to the original planned task i in time period t according to the preset scheduling plan.

[0035] Furthermore, the processing status update constraints of all computing tasks include:

[0036] Abandon the state update constraint:

[0037]

[0038] Where i represents the original planned task number and i∈[1,N]; k represents the core number and k∈[1,K]; t represents the optimization period and t∈[1,H]; Indicates the allocation of burst computing tasks to core k during the rescheduling period; Indicates the occupancy of the memory capacity of the edge computing device by the original planned task i during the rescheduling period t; Indicates the usage of the memory capacity of the edge computing device by the burst computing task during the rescheduling period t; represents the number of CPU cycles allocated by the edge computing device to the original scheduled task i during the rescheduling period t; Indicates the working status of the original planned task i in the rescheduling period t; represents the number of CPU cycles allocated by the edge computing device to the burst task in the rescheduling period t; Indicates the working status of the burst task in the rescheduling period t; Indicates the abandoned status of the original planned task i during the rescheduling period; l R Indicates the abandonment status of burst computing tasks during the rescheduling period;

[0039] Start and end state update constraints:

[0040]

[0041] Among them, the auxiliary variable q′ i,t and p i ' ,t It can be determined by the following formula:

[0042]

[0043] In the formula, Indicates the actual start computing time of the original planned task i after the edge computing device resources are rescheduled; represents the actual completion time of the original planned task i after the edge computing device resources are rescheduled; q′ ′,t and p i i ,t are auxiliary variables, which are used to describe whether the original planned task i has started and completed processing in time period t; b i The total number of CPU cycles required to complete the processing of the original scheduled task i;

[0044] Kernel allocation state update constraints:

[0045]

[0046] In the formula, v i,t represents the ability of the deferrable, interruptible and non-deferrable task i in the original scheduled task to change the kernel for computing processing during the rescheduling period t; c i,k It indicates the allocation of the original planned task i to core k according to the preset scheduling plan; Indicates the allocation of the original planned task i to core k during the rescheduling period;

[0047] Storage state update constraints:

[0048]

[0049] Where, T E,R Indicates the actual completion time of the burst computing task; represents the expected start time of the original planned task i; T A,e Indicates the generation time of burst tasks; Ω1 and Ω2 represent the numbered sets of delayable and interruptible tasks and non-delayable tasks respectively; Ω3 and Ω4 represent the numbered sets of periodic and continuous tasks respectively.

[0050] Furthermore, the execution logic association constraints between the original planned tasks are expressed as:

[0051]

[0052] In the formula, n and m represent the numbers of two tasks respectively, where n is the number of the task to be executed previously and m is the number of the task to be executed later; is the execution completion time of task n; The time when task m starts executing; Represent the abandonment status of task n and task m respectively.

[0053] Furthermore, the resource restriction constraints include:

[0054] Compute resource constraints, in the form of:

[0055]

[0056] Storage resource limit constraints, in the form of:

[0057]

[0058] Where i represents the original planned task number and i∈[1,N]; k represents the core number and k∈[1,K]; t represents the optimization period and t∈[1,H]; N represents the total number of original planned tasks; Indicates the maximum number of CPU cycles per period for core k; d i Indicates the memory capacity required for processing the original planned task i; d e Indicates the memory capacity required for burst task calculation and processing; d M Indicates the maximum memory capacity of the edge computing device; Indicates the allocation of the original planned task i to core k during the rescheduling period; represents the number of CPU cycles allocated by the edge computing device to the burst task in the rescheduling period t; represents the allocation of burst computing tasks to core k during the rescheduling period; e i,t is the number of CPU cycles allocated by the edge computing device to the original planned task i in time period t according to the preset scheduling plan; Indicates the occupancy of the memory capacity of the edge computing device by the original planned task i during the rescheduling period t; It indicates the usage of the memory capacity of the edge computing device by the burst computing task during the rescheduling period t.

[0059] A resource rescheduling device for edge computing devices in a distribution network considering sudden tasks, the device comprising:

[0060] A data acquisition module is used to obtain device performance parameters, the type, characteristic parameters and execution logic sequence of the original planned tasks, the characteristic parameters of the burst computing tasks, and the preset scheduling plan of the edge computing device resources for the distribution network edge computing device to be optimized;

[0061] A resource optimization rescheduling model establishment module is used to establish a resource optimization rescheduling model for distribution network edge computing devices considering burst tasks. The rescheduling model includes a comprehensive objective function and constraint conditions for resource optimization rescheduling considering burst computing tasks. The objective function aims to minimize the completion time of burst computing tasks, minimize the delay in completing the original planned tasks caused by completing the burst tasks, minimize the loss of abandoning the original planned tasks, and minimize the loss of abandoning the burst computing tasks;

[0062] The model solving module is used to solve the rescheduling model using a mixed integer linear optimization problem solver to obtain an optimized scheduling result.

[0063] The present invention also provides a computing device, comprising:

[0064] one or more processing units;

[0065] A storage unit for storing one or more programs,

[0066] Among them, when the one or more programs are executed by the one or more processing units, the one or more processing units execute the resource rescheduling method of the distribution network edge computing device considering burst tasks.

[0067] A computer-readable storage medium having a non-volatile program code executable by a processor is also provided. When the computer program is executed by the processor, the steps of the method for rescheduling resources of a distribution network edge computing device considering burst tasks are implemented.

[0068] The advantages and positive effects of the present invention are:

[0069] The method and device for rescheduling resources on the edge side of a distribution network considering burst tasks of the present invention are based on solving the problem of optimizing and rescheduling resources of edge computing devices of a distribution network for burst tasks, and consider burst computing tasks such as cloud data requests and fault analysis processing generated at any time during the actual operation of the distribution network. At the same time, the rescheduling period is determined according to the flexibility of the edge computing device when the burst computing task is generated, and a resource optimization and rescheduling model for edge computing devices of a distribution network considering burst tasks is established. The resource optimization and rescheduling model for edge computing devices of a distribution network considering burst tasks is established, and the constraints of the rescheduling period, the computing and processing constraints of burst tasks, the computing and processing constraints of transferable tasks, the computing and processing constraints of non-transferable tasks, the processing status update constraints of all computing tasks, the execution logic association constraints between the original planned tasks, and the resource limit constraints of the rescheduling period of the edge computing device are comprehensively considered. The completion time of the burst computing task is minimized, the completion delay of the original planned task caused by the completion of the burst task is minimized, the loss of the original planned task is minimized, and the loss of the burst computing task is minimized. A comprehensive objective function for optimizing and rescheduling resources considering burst computing tasks is established, and a resource optimization and rescheduling model for edge computing devices of a distribution network considering burst tasks is formed. The resource optimization and rescheduling strategy for edge computing devices of a distribution network considering burst tasks can be obtained. On the basis of a preset scheduling plan, the present invention utilizes the time-space transfer characteristics of the two types of transferable tasks, namely, delayable and interruptible tasks and non-delayable tasks, and reasonably reallocates the computing and storage resources of the edge computing device. In this way, the transferable tasks can be transferred to subsequent time periods for processing in time, and can be transferred to other cores for processing in space, thereby releasing computing and storage resources to quickly complete the computing and processing of burst computing tasks, while ensuring the computing requirements and processing logic associations of other originally planned tasks, realizing the rapid processing of burst tasks and the efficient use of edge computing device resources, while ensuring the completion quality of the originally planned tasks, and improving the operating efficiency and reliability of the edge computing device. BRIEF DESCRIPTION OF THE DRAWINGS

[0070] Figure 1 It is a flow chart of a method and device for rescheduling resources at the edge of a distribution network considering burst tasks in Embodiment 1 of the present invention;

[0071] Figure 2 This is the case where the edge computing device in Embodiment 1 of the present invention allocates computing resources to the original planned tasks according to the preset scheduling plan;

[0072] Figure 3 It is the computing resource occupancy of each core of the distribution network edge computing device in embodiment 1 of the present invention under the action of scheme 1;

[0073] Figure 4(a) shows the occupancy of computing resources of each core of the edge computing device of the distribution network in time periods 8-13 under the preset scheduling plan;

[0074] Figure 4(b) shows the occupancy of computing resources of each core of the edge computing device of the distribution network during time periods 8-13 under rescheduling;

[0075] Figure 5 This is the computing task processing strategy for the rescheduling period under the action of Scheme 2 in Embodiment 1 of the present invention. DETAILED DESCRIPTION

[0076] In order to make the purpose, technical scheme and advantages of the implementation of the present invention clearer, the technical scheme in the embodiment of the present invention will be described in more detail below in conjunction with the drawings in the embodiment of the present invention. In the drawings, the same or similar reference numerals throughout represent the same or similar elements or elements with the same or similar functions. The described embodiments are part of the embodiments of the present invention, not all of the embodiments. The embodiments described below with reference to the drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limitations on the present invention. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0077] The embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0078] like Figure 1 As shown, a method for rescheduling resources at the edge of a distribution network considering burst tasks comprises the following steps:

[0079] For the edge computing device of the distribution network to be optimized, obtain the device performance parameters, the type, characteristic parameters and execution logic order of the original planned task, the characteristic parameters of the burst computing task, and the preset scheduling plan of the edge computing device resources; the device performance parameters include the total number of cores K owned by the edge computing device, the maximum number of CPU cycles per time period of core k Maximum device memory capacity M ; The types of original planned tasks include delayed and interruptible tasks, non-delayed tasks, periodic tasks, and continuous tasks; The characteristic parameters of the original planned tasks include the total number of CPU cycles required for each task to complete the processing b i , the memory capacity required for task processing d i , Task arrival time Latest completion time Task abandonment weight factor L i , i represents the original planned task number; the characteristic parameters of the burst computing task include the generation time of the burst task T A,e , the weight factor L for abandoning the burst task e , the total number of CPU cycles required to complete the burst task processing b e , the memory capacity required for burst task calculation and processing e, burst computing task completion time threshold T E,f ; The preset scheduling plan of edge computing device resources includes the computing status s of each original planned task in each time period i,t , computing resource allocation i,t , core allocation status c i,k , storage status r i,t , Abandoned state i , i represents the original planned task number, t represents the time number, and k represents the core number; the total duration of the optimized scheduling is set to H;

[0080] According to the edge computing device performance parameters input in step 1) and the preset scheduling plan of the edge computing device resources, a rescheduling period constraint is established; the rescheduling period constraint is expressed as:

[0081]

[0082] F′(T D -H+T A,e -1)=0 (5)

[0083] Where i represents the original planned task number and i∈[1,N]; k represents the core number and k∈[1,K]; t represents the optimization period and t∈[1,H]; F t represents the flexibility of the edge computing device in time period t; H is the total duration of the optimized scheduling; K is the total number of cores owned by the edge computing device; represents the maximum number of CPU cycles of the edge computing device core k; N is the total number of original planned tasks; e i,t is the number of CPU cycles that the edge computing device allocates to the original planned task i in time period t according to the preset scheduling plan; F′ is an auxiliary variable used to indicate whether the edge computing device is capable of allocating the required resources for processing burst tasks in time period t. F′=1 means that the device is more flexible at this time and is capable of allocating the required resources for processing burst tasks, otherwise F′=0; T A,e Indicates the time when the burst task is generated; b e The total number of CPU cycles required to complete the processing of the burst task; M indicates a value greater than 10 5 The constant of T D This is the rescheduling period.

[0084] According to the burst computing task characteristic parameters input in step 1), a burst task computing processing constraint is established for the burst computing task to be processed. The burst task computing processing constraint is expressed as:

[0085]

[0086] Where t represents the optimization period and t∈[1,H]; l RIndicates the abandonment status of burst computing tasks during the rescheduling period, l R =1 means the burst task is abandoned, l R =0 means the burst task is processed; represents the number of CPU cycles allocated by the edge computing device to the burst task in the rescheduling period t; represents the working status of the burst task in the rescheduling period t, Indicates the execution of task calculation, Indicates that task calculation is not performed; T A,e Indicates the time when the burst task is generated; b e The total number of CPU cycles required to complete the processing of the burst task; T D This is the rescheduling period.

[0087] According to the original planned task type and characteristic parameters input in step 1), transferable task computing and processing constraints are established for the delayable and interruptible tasks and non-delayable tasks in the original planned tasks. The transferable task computing and processing constraints are expressed as:

[0088]

[0089] Where i represents the original planned task number and i∈[1,N]; t represents the optimization period and t∈[1,H]; Indicates the abandoned status of the original planned task i during the rescheduling period, Indicates that the original planned task i is abandoned. Indicates that the original planned task i is processed; represents the number of CPU cycles allocated by the edge computing device to the original scheduled task i during the rescheduling period t; represents the working status of the original planned task i in the rescheduling period t, Indicates the execution of task calculation, Indicates that task calculation is not performed; s i,t represents the working status of the original planned task i in time period t according to the preset scheduling plan, s i,t =1 means to execute task calculation, s i,t =0 means no task calculation is performed; Ω1 and Ω2 represent the numbered sets of delayed and interruptible tasks and non-delayed tasks respectively; T A,e Indicates the time when the burst task is generated; T D It is the rescheduling period;

[0090] According to the original planned task type and characteristic parameters input in step 1), a non-transferable task computing and processing constraint is established for the periodic and continuous tasks in the original planned tasks. The non-transferable task computing and processing constraint is expressed as:

[0091]

[0092] Where i represents the original planned task number and i∈[1,N]; k represents the core number and k∈[1,K]; t represents the optimization period and t∈[1,H]; c i,k represents the allocation of the original planned task i to core k according to the preset scheduling plan, c i,k =1 means that the original planned task i is assigned to core k for computing, otherwise c i,k =0; represents the allocation of the original planned task i to core k during the rescheduling period, Indicates that the original planned task i is assigned to core k for computation and processing, and vice versa l i Indicates the abandoned status of the original planned task i in the preset scheduling plan, l i =1 means that the original planned task i is abandoned, l i = 0 means that the original planned task i is processed; Ω3 and Ω4 represent the numbered sets of periodic and continuous tasks respectively; e i,t The number of CPU cycles allocated by the edge computing device to the original planned task i in time period t according to the preset scheduling plan.

[0093] According to the preset scheduling plan of the edge computing device resources input in step 1), the processing state update constraints of all computing tasks are established, and the processing state update constraints of all computing tasks include:

[0094] Abandon the state update constraint:

[0095]

[0096] Where i represents the original planned task number and i∈[1,N]; k represents the core number and k∈[1,K]; t represents the optimization period and t∈[1,H]; Indicates the allocation of burst computing tasks to core k during the rescheduling period, Indicates that the burst task is assigned to core k for computing and processing, otherwise represents the memory capacity occupied by the edge computing device during the rescheduling period t of the original planned task i, Indicates that the original planned task i occupies the memory capacity of the edge computing device in time period t, and vice versa It indicates the usage of the memory capacity of the edge computing device by the burst computing task in the rescheduling period t, Indicates that the burst task occupies the memory capacity of the edge computing device in time period t, and vice versa represents the number of CPU cycles allocated by the edge computing device to the original scheduled task i during the rescheduling period t; Indicates the working status of the original planned task i in the rescheduling period t; represents the number of CPU cycles allocated by the edge computing device to the burst task in the rescheduling period t; Indicates the working status of the burst task in the rescheduling period t; Indicates the abandoned status of the original planned task i during the rescheduling period; l R Indicates the abandonment status of burst computing tasks during the rescheduling period;

[0097] Start and end state update constraints:

[0098]

[0099] Among them, the auxiliary variable q′ i,t and p i ' ,t It can be determined by the following formula:

[0100]

[0101] In the formula, Indicates the actual start time of the original planned task i after the edge computing device resources are rescheduled; represents the actual completion time of the original planned task i after the edge computing device resources are rescheduled; q′ ′,t and p i ' ,t are auxiliary variables, which are used to describe whether the original planned task i has started and completed processing in time period t; b i The total number of CPU cycles required to complete the processing of the original scheduled task i;

[0102] Kernel allocation state update constraints:

[0103]

[0104] In the formula, v i,t represents the ability of the deferrable, interruptible and non-deferrable task i in the original scheduled task to change the kernel for computing processing during the rescheduling period t, v i,t = 0 means that task i can be transferred to other cores for processing during the rescheduling period t, otherwise v i,t =1;c i,k It indicates the allocation of the original planned task i to core k according to the preset scheduling plan; Indicates the allocation of the original planned task i to core k during the rescheduling period;

[0105] Storage state update constraints:

[0106]

[0107] Where, T E,RIndicates the actual completion time of the burst computing task; represents the expected start time of the original planned task i; T A,e Indicates the generation time of burst tasks; Ω1 and Ω2 represent the numbered sets of delayable and interruptible tasks and non-delayable tasks respectively; Ω3 and Ω4 represent the numbered sets of periodic and continuous tasks respectively.

[0108] According to the execution logic sequence of the original plan tasks input in step 1), the execution logic association constraints between the original plan tasks are established, and the execution logic association constraints between the original plan tasks are expressed as:

[0109]

[0110] In the formula, n and m represent the numbers of two tasks respectively, where n is the number of the task to be executed previously and m is the number of the task to be executed later; is the execution completion time of task n; The time when task m starts executing; Represent the abandonment status of task n and task m respectively.

[0111] According to the edge computing device performance parameters and resource preset scheduling plan input in step 1), resource restriction constraints for the edge computing device rescheduling period are established, including computing resource restriction constraints and storage resource restriction constraints; the resource restriction constraints include:

[0112] Compute resource constraints, in the form of:

[0113]

[0114] Storage resource limit constraints, in the form of:

[0115]

[0116] Where i represents the original planned task number and i∈[1,N]; k represents the core number and k∈[1,K]; t represents the optimization period and t∈[1,H]; N represents the total number of original planned tasks; Indicates the maximum number of CPU cycles per period for core k; d i Indicates the memory capacity required for processing the original planned task i; d e Indicates the memory capacity required for burst task calculation and processing; d M Indicates the maximum memory capacity of the edge computing device; Indicates the allocation of the original planned task i to core k during the rescheduling period; represents the number of CPU cycles allocated by the edge computing device to the burst task in the rescheduling period t; represents the allocation of burst computing tasks to core k during the rescheduling period; e i,t is the number of CPU cycles allocated by the edge computing device to the original planned task i in time period t according to the preset scheduling plan; Indicates the occupancy of the memory capacity of the edge computing device by the original planned task i during the rescheduling period t; It indicates the usage of the memory capacity of the edge computing device by the burst computing task during the rescheduling period t.

[0117] A resource optimization and rescheduling model for edge computing devices in a distribution network considering burst tasks is established. The rescheduling model includes a comprehensive objective function for resource optimization and rescheduling considering burst computing tasks and the above-mentioned constraints. The objective function aims to minimize the completion time of burst computing tasks, minimize the delay in completing the original planned tasks caused by completing the burst tasks, minimize the loss of abandoning the original planned tasks, and minimize the loss of abandoning the burst computing tasks; specifically, the comprehensive objective function for resource optimization and rescheduling considering burst computing tasks is:

[0118] minf=τ1T more +τ2ψT E,R +τ3E A,r +τ4E A,e (42)

[0119] in:

[0120] Goal 1 is the completion time T of the burst computing task E,R Minimum, the specific expression is:

[0121]

[0122]

[0123] Objective 2 is to complete the original planned task completion delay caused by the sudden task and T more The specific expression of goal 2 is:

[0124]

[0125] Objective 3 is to abandon the losses caused by the original planned mission and E A,r Minimum, the specific expression is:

[0126]

[0127] Objective 4 is to abandon the loss caused by the sudden task E A,e Minimum, the specific expression is:

[0128] minE A,e = l R Le (41)

[0129] Where i represents the original planned task number and i∈[1,N]; t represents the optimization period and t∈[1,H]; is an auxiliary variable used to describe whether the burst task has been processed in the rescheduling period t. Indicates that the processing has been completed, otherwise ψ represents the threshold factor for the completion time of burst computing tasks, thereby balancing the two optimization goals of quickly completing burst tasks and reducing task abandonment; T E,f Indicates the completion time threshold of the burst computing task; m1 indicates a value less than 10 6 constant; m2 indicates a value greater than 10 6 The constant of represents the actual completion time of the original planned task i according to the preset scheduling plan; p i,t is an auxiliary variable used to describe whether the original planned task i has been completed in time period t, p i,t =1 means the processing has been completed, otherwise p i,t =0;L i represents the discard weight factor of the original planned task i; L e represents the abandonment weight factor of the burst computing task; τ1, τ2, τ3 and τ4 represent weight coefficients, which are selected according to the importance of each target; e i,t is the number of CPU cycles allocated by the edge computing device to the original planned task i in time period t according to the preset scheduling plan; represents the number of CPU cycles allocated by the edge computing device to the burst task in the rescheduling period t; Indicates the abandoned status of the original planned task i during the rescheduling period; l R Indicates the abandonment status of burst computing tasks during the rescheduling period; b i The total number of CPU cycles required to complete the processing of the original planned task i; b e The total number of CPU cycles required to complete the processing of the burst task;

[0130] The mixed integer linear optimization problem solver is used to solve the above rescheduling model to obtain the optimized scheduling result.

[0131] As an example, in this embodiment, in order to fully verify the advancedness of the distribution network edge side resource rescheduling method and device considering sudden tasks of the present invention, an edge computing device with performance parameters as shown in Table 1 is used, and the original planned tasks include 5 categories and 22 tasks with execution logic order as shown in Tables 2 and 3. The edge computing device allocates computing resources to the original planned tasks according to the preset scheduling plan. Figure 2; In the 10th period, a burst computing task numbered 23 is generated. This burst task requires 4.5×1010 CPU cycles to complete the processing and occupies 10MB of memory capacity. The following two solutions are now adopted for comparative analysis:

[0132] Solution 1: Select the core with the shortest completion time for the burst task and allocate the maximum computing resources of the core to complete the burst computing task in each time period;

[0133] Solution 2: Use the method for optimizing and rescheduling resources of edge computing devices of distribution network for sudden tasks according to the present invention to optimize scheduling;

[0134] The computing resource occupancy of each core of the distribution network edge computing device under Scheme 1 is shown in Figure 3 The comparison between the rescheduling optimization results and the preset scheduling plan results under Scheme 2 is shown in Table 4. The occupancy of each core computing resource of the edge computing device of the distribution network in time periods 8-15 under the preset scheduling plan and rescheduling is shown in Figure 4. The computing task processing strategy of the rescheduling period under Scheme 2 is shown in Figure 5 .

[0135] The computer hardware environment for performing optimization calculations is Intel(R) Core(TM) i7-10700 CPU, with a main frequency of 2.90GHz and a memory of 16.0GB; the software environment is Windows 11 operating system.

[0136] Depend on Figure 3 It can be seen that under Solution 1, Task 23 can only be processed independently by Core 2, and it takes 6 minutes. Combined with Table 4, it can be seen that in order to quickly respond to sudden computing needs, edge computing transfers transferable tasks between cores. Tasks 8 and 21 are rescheduled from Core 2 to Core 3, Task 22 is assigned from Core 3 to Core 2, and Task 23 is assigned to Core 2 for processing. As can be seen from Figure 4(a), a single core cannot complete the processing of Task 23 independently, while as can be seen from Figure 4(b), Core 2 quickly releases computing resources by transferring Tasks 8 and 11 to Core 3, and Task 22 is assigned to Core 2 to ensure the smooth completion of Task 8. Figure 5 It can be seen that the edge computing device releases computing resources for task 23 by transferring tasks 8, 12, 21, and 22 to the subsequent time period for processing, allowing it to complete processing in 2 minutes. The above results show that by making full use of the spatiotemporal transfer characteristics of the two types of transferable tasks, namely, delayable and interruptible tasks and non-delayable tasks, the transferable tasks are reconfigured and transferred to the subsequent time period for processing, so that all core resources are integrated and reasonably optimized, which can realize the rapid processing of burst computing tasks, while ensuring the completion of other original planned tasks, and ensuring the efficient and reliable operation of the edge computing device of the distribution network.

[0137] Table 1 Performance parameters of edge computing devices in distribution networks

[0138] Edge computing device parameters value Number of cores 3 Maximum number of CPU cycles per minute for core 1 <![CDATA[3×10 10 ]]> Maximum number of CPU cycles per minute for core 2 <![CDATA[3×10 10 ]]> Maximum number of CPU cycles per minute for core 3 <![CDATA[2×10 10 <!-- 13 -->]]> Maximum memory capacity (MB) 800

[0139] Table 2 Number, type and characteristic parameters of the original planned tasks

[0140]

[0141]

[0142] Table 3 Execution logic sequence of the original planned tasks

[0143] Predecessor task number The number of the corresponding subsequent task 3 4 4 5 5 6 5 7 5 9 5 11 9 8 15 17 20 11 20 18

[0144] Table 4 Comparison of rescheduling optimization results and preset scheduling plan results under Scheme 2

[0145]

[0146] Example 2

[0147] This embodiment also provides a resource rescheduling device for a distribution network edge computing device considering sudden tasks, the device comprising:

[0148] A data acquisition module is used to obtain device performance parameters, the type, characteristic parameters and execution logic sequence of the original planned tasks, characteristic parameters of the burst computing tasks, and the preset scheduling plan of the edge computing device resources for the distribution network edge computing device to be optimized;

[0149] A resource optimization rescheduling model establishment module is used to establish a resource optimization rescheduling model for distribution network edge computing devices considering burst tasks. The rescheduling model includes a comprehensive objective function and constraint conditions for resource optimization rescheduling considering burst computing tasks. The objective function aims to minimize the completion time of burst computing tasks, minimize the delay in completing the original planned tasks caused by completing the burst tasks, minimize the loss of abandoning the original planned tasks, and minimize the loss of abandoning the burst computing tasks;

[0150] The model solving module is used to solve the rescheduling model using a mixed integer linear optimization problem solver to obtain an optimized scheduling result.

[0151] A computing device is also provided, comprising:

[0152] one or more processing units;

[0153] A storage unit for storing one or more programs,

[0154] Among them, when the one or more programs are executed by the one or more processing units, the one or more processing units execute the distribution network edge side resource rescheduling method considering burst tasks in this embodiment; it should be noted that the computing device may include but is not limited to a processing unit and a storage unit; technical personnel in this field can understand that the computing device including a processing unit and a storage unit does not constitute a limitation on the computing device, and may include more components, or a combination of certain components, or different components. For example, the computing device may also include input and output devices, network access devices, buses, etc.

[0155] A computer-readable storage medium having a non-volatile program code executable by a processor, wherein when the computer program is executed by the processor, the steps of the method for rescheduling resources at the edge of a distribution network considering burst tasks in this embodiment are implemented; it should be noted that the readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof; the program contained on the readable medium may be transmitted using any appropriate medium, including, but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination thereof. For example, the program code for performing the operation of the present invention may be written in any combination of one or more programming languages, wherein the programming language includes an object-oriented programming language, such as Java, C++, etc., and also includes a conventional procedural programming language, such as C language or a similar programming language. The program code may be executed entirely on a user computing device, partially on a user device, as an independent software package, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).

[0156] Finally, it should be pointed out that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them. Although the present invention has been described in detail with reference to the above embodiments, a person skilled in the art should understand that the technical solutions described in the above embodiments can still be modified, or some of the technical features can be replaced by equivalents; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method and device for rescheduling resources at the edge of a distribution network considering sudden tasks, It is characterized in that The method comprises the following steps: For the edge computing device of the distribution network to be optimized, obtain the device performance parameters, the type, characteristic parameters and execution logic sequence of the original planned tasks, the characteristic parameters of the burst computing tasks, and the preset scheduling plan of the edge computing device resources; Establish a resource optimization and rescheduling model for edge computing devices in a distribution network considering burst tasks, wherein the rescheduling model includes a comprehensive objective function and constraints for resource optimization and rescheduling considering burst computing tasks, wherein the objective function aims to minimize the completion time of burst computing tasks, minimize the delay in completing the original planned tasks caused by completing the burst tasks, minimize the loss of abandoning the original planned tasks, and minimize the loss of abandoning the burst computing tasks; A mixed integer linear optimization problem solver is used to solve the rescheduling model to obtain an optimized scheduling result.

2. The method and device for rescheduling resources at the edge of a distribution network considering sudden tasks according to claim 1, It is characterized in that The constraints include rescheduling period constraints, burst task computing and processing constraints, transferable task computing and processing constraints, non-transferable task computing and processing constraints, processing status update constraints for all computing tasks, execution logic association constraints between originally planned tasks, and resource limitation constraints for the rescheduling period of the edge computing device.

3. The method and device for rescheduling resources at the edge of a distribution network considering sudden tasks according to claim 1, It is characterized in that The comprehensive objective function of resource optimization and rescheduling considering burst computing tasks is: minf=τ 1 T more +t 2 ψT E,R +t 3 E A,r +t 4 E A,e (42) in: Goal 1 is the completion time T of the burst computing task E,R Minimum, the specific expression is: Objective 2 is to complete the original planned task completion delay caused by the sudden task and T more The specific expression of goal 2 is: Objective 3 is to abandon the losses caused by the original planned mission and E A,r Minimum, the specific expression is: Objective 4 is to abandon the loss caused by the sudden task E A,e Minimum, the specific expression is: mine A,e l R L e (41) Where i represents the original planned task number and i∈[1,N]; t represents the optimization period and t∈[1,H]; is an auxiliary variable used to describe whether the burst task has been completed in the rescheduling period t; ψ represents the threshold factor of the burst computing task completion time, thereby weighing the two optimization goals of quickly completing the burst task and reducing task abandonment; T E,f Indicates the completion time threshold of burst computing tasks; m 1 Indicates a value less than 10 6 The constant m 2 Indicates a value greater than 10 6 The constant of T i E represents the actual completion time of the original planned task i according to the preset scheduling plan; p i,t is an auxiliary variable used to describe whether the original planned task i has been completed in time period t; L i represents the discard weight factor of the original planned task i; L e represents the discard weight factor of burst computing tasks; τ 1 , τ 2 , τ 3 and τ 4 represents the weight coefficient; e i,t is the number of CPU cycles allocated by the edge computing device to the original planned task i in time period t according to the preset scheduling plan; represents the number of CPU cycles allocated by the edge computing device to the burst task in the rescheduling period t; Indicates the abandoned status of the original planned task i during the rescheduling period; l R Indicates the abandonment status of burst computing tasks during the rescheduling period; b i The total number of CPU cycles required to complete the processing of the original planned task i; b e The total number of CPU cycles required to complete processing for the burst task.

4. The method and device for rescheduling resources at the edge of a distribution network considering sudden tasks according to claim 2, It is characterized in that The rescheduling period constraint is expressed as: F′(T D -H+T A,e -1)=0 (5) Where i represents the original planned task number and i∈[1,N]; k represents the core number and k∈[1,K]; t represents the optimization period and t∈[1,H]; F t represents the flexibility of the edge computing device in time period t; H is the total duration of the optimization scheduling; K is the total number of cores owned by the edge computing device; represents the maximum number of CPU cycles of the edge computing device core k; N is the total number of original planned tasks; e i,t is the number of CPU cycles allocated by the edge computing device to the original planned task i in time period t according to the preset scheduling plan; F′ is an auxiliary variable used to indicate whether the edge computing device is capable of allocating the required resources for processing burst tasks in time period t; T A,e Indicates the time when the burst task is generated; b e The total number of CPU cycles required to complete the processing of the burst task; M indicates a value greater than 10 5 The constant of T D This is the rescheduling period.

5. The method and device for rescheduling resources at the edge of a distribution network considering sudden tasks according to claim 2, It is characterized in that The burst task calculation processing constraints are expressed as: Where t represents the optimization period and t∈[1,H]; l R Indicates the abandonment status of burst computing tasks during the rescheduling period; represents the number of CPU cycles allocated by the edge computing device to the burst task in the rescheduling period t; represents the working status of the burst task in the rescheduling period t; T A,e Indicates the time when the burst task is generated; b e The total number of CPU cycles required to complete the processing of the burst task; T D This is the rescheduling period.

6. The method and device for rescheduling resources at the edge of a distribution network considering sudden tasks according to claim 2, It is characterized in that The transferable task computation processing constraints are expressed as: Where i represents the original planned task number and i∈[1,N]; t represents the optimization period and t∈[1,H]; Indicates the abandoned status of the original planned task i during the rescheduling period; represents the number of CPU cycles allocated by the edge computing device to the original scheduled task i during the rescheduling period t; represents the working status of the original planned task i in the rescheduling period t; s i,t represents the working status of the original planned task i in time period t according to the preset scheduling plan; Ω 1 and Ω 2 They represent the numbered sets of delayable, interruptible and non-delayable tasks respectively; T A,e Indicates the time when the burst task is generated; T D It is the rescheduling period; The non-transferable task computation processing constraint is expressed as: Where i represents the original planned task number and i∈[1,N]; k represents the core number and k∈[1,K]; t represents the optimization period and t∈[1,H]; c i,k It indicates the allocation of the original planned task i to core k according to the preset scheduling plan; represents the allocation of the original planned task i to core k during the rescheduling period; l i Indicates the abandoned status of the original planned task i in the preset scheduling plan; Ω 3 and Ω 4 A set of numbers representing periodic and continuous tasks respectively; e i,t The number of CPU cycles allocated by the edge computing device to the original planned task i in time period t according to the preset scheduling plan.

7. The method and device for rescheduling resources at the edge of a distribution network considering sudden tasks according to claim 2, It is characterized in that The processing state update constraints of all computing tasks include: Abandon the state update constraint: Where i represents the original planned task number and i∈[1,N]; k represents the core number and k∈[1,K]; t represents the optimization period and t∈[1,H]; Indicates the allocation of burst computing tasks to core k during the rescheduling period; Indicates the occupancy of the memory capacity of the edge computing device by the original planned task i during the rescheduling period t; Indicates the usage of the memory capacity of the edge computing device by the burst computing task during the rescheduling period t; represents the number of CPU cycles allocated by the edge computing device to the original scheduled task i during the rescheduling period t; Indicates the working status of the original planned task i in the rescheduling period t; represents the number of CPU cycles allocated by the edge computing device to the burst task in the rescheduling period t; Indicates the working status of the burst task in the rescheduling period t; Indicates the abandoned status of the original planned task i during the rescheduling period; l R Indicates the abandonment status of burst computing tasks during the rescheduling period; Start and end state update constraints: Among them, the auxiliary variable q′ i,t and p i ' ,t It can be determined by the following formula: In the formula, Indicates the actual start time of the original planned task i after the edge computing device resources are rescheduled; represents the actual completion time of the original planned task i after the edge computing device resources are rescheduled; qi i,t and p i ' ,t are auxiliary variables, which are used to describe whether the original planned task i has started and completed processing in time period t; b i The total number of CPU cycles required to complete the processing of the original scheduled task i; Kernel allocation state update constraints: In the formula, v i,t represents the ability of the deferrable, interruptible and non-deferrable task i in the original scheduled task to change the kernel for computing processing during the rescheduling period t; c i,k It indicates the allocation of the original planned task i to core k according to the preset scheduling plan; Indicates the allocation of the original planned task i to core k during the rescheduling period; Storage state update constraints: Where, T E,R Indicates the actual completion time of the burst computing task; represents the expected start time of the original planned task i; T A,e Indicates the generation time of burst tasks; Ω 1 and Ω 2 Respectively represent the numbered sets of delayable, interruptible and non-delayable tasks; Ω 3 and Ω 4 A collection of numbers representing periodic and continuous tasks respectively.

8. The method and device for rescheduling resources at the edge of a distribution network considering sudden tasks according to claim 2, It is characterized in that The execution logic association constraints between the original planned tasks are expressed as: In the formula, n and m represent the numbers of two tasks respectively, where n is the number of the task to be executed previously and m is the number of the task to be executed later; is the execution completion time of task n; The time when task m starts executing; Represent the abandonment status of task n and task m respectively.

9. The method and device for rescheduling resources at the edge of a distribution network considering sudden tasks according to claim 2, It is characterized in that The resource restriction constraints include: Compute resource constraints, in the form of: Storage resource limit constraints, in the form of: Where i represents the original planned task number and i∈[1,N]; k represents the core number and k∈[1,K]; t represents the optimization period and t∈[1,H]; N represents the total number of original planned tasks; Indicates the maximum number of CPU cycles per period for core k; d i Indicates the memory capacity required for processing the original planned task i; d e Indicates the memory capacity required for burst task calculation and processing; d M Indicates the maximum memory capacity of the edge computing device; Indicates the allocation of the original planned task i to core k during the rescheduling period; represents the number of CPU cycles allocated by the edge computing device to the burst task in the rescheduling period t; represents the allocation of burst computing tasks to core k during the rescheduling period; e i,t is the number of CPU cycles allocated by the edge computing device to the original planned task i in time period t according to the preset scheduling plan; Indicates the occupancy of the memory capacity of the edge computing device by the original planned task i during the rescheduling period t; It indicates the usage of the memory capacity of the edge computing device by the burst computing task during the rescheduling period t.

10. Resource rescheduling device for edge computing devices in distribution network considering sudden tasks, It is characterized in that The device comprises: A data acquisition module is used to obtain device performance parameters, the type, characteristic parameters and execution logic sequence of the original planned tasks, the characteristic parameters of the burst computing tasks, and the preset scheduling plan of the edge computing device resources for the distribution network edge computing device to be optimized; A resource optimization rescheduling model establishment module is used to establish a resource optimization rescheduling model for distribution network edge computing devices considering burst tasks. The rescheduling model includes a comprehensive objective function and constraint conditions for resource optimization rescheduling considering burst computing tasks. The objective function aims to minimize the completion time of burst computing tasks, minimize the delay in completing the original planned tasks caused by completing the burst tasks, minimize the loss of abandoning the original planned tasks, and minimize the loss of abandoning the burst computing tasks; The model solving module is used to solve the rescheduling model using a mixed integer linear optimization problem solver to obtain an optimized scheduling result.