CN116389499A - Task allocation method, device, equipment and medium based on electric power Internet of things - Google Patents

Task allocation method, device, equipment and medium based on electric power Internet of things Download PDF

Info

Publication number
CN116389499A
CN116389499A CN202310406109.4A CN202310406109A CN116389499A CN 116389499 A CN116389499 A CN 116389499A CN 202310406109 A CN202310406109 A CN 202310406109A CN 116389499 A CN116389499 A CN 116389499A
Authority
CN
China
Prior art keywords
target
candidate
task
equipment
power
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310406109.4A
Other languages
Chinese (zh)
Inventor
陈重辰
区永通
徐键
何超林
邓轲
蔡文婷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Southern Power Grid Digital Grid Technology Guangdong Co ltd
Original Assignee
China Southern Power Grid Digital Grid Technology Guangdong Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Southern Power Grid Digital Grid Technology Guangdong Co ltd filed Critical China Southern Power Grid Digital Grid Technology Guangdong Co ltd
Priority to CN202310406109.4A priority Critical patent/CN116389499A/en
Publication of CN116389499A publication Critical patent/CN116389499A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/1008Server selection for load balancing based on parameters of servers, e.g. available memory or workload
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5083Techniques for rebalancing the load in a distributed system
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y10/00Economic sectors
    • G16Y10/35Utilities, e.g. electricity, gas or water
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y40/00IoT characterised by the purpose of the information processing
    • G16Y40/30Control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y04INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
    • Y04SSYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
    • Y04S10/00Systems supporting electrical power generation, transmission or distribution
    • Y04S10/50Systems or methods supporting the power network operation or management, involving a certain degree of interaction with the load-side end user applications

Abstract

The invention discloses a task allocation method, device, equipment and medium based on an electric power Internet of things. The method comprises the following steps: acquiring a target task and a target program required by executing the target task, and determining target equipment hardware information required by executing the target task; determining a power device to be selected for performing a target task based on the target device hardware information; determining a candidate power device for performing the target task from the candidate power devices based on the device executable data amount, the target task data amount, and the target program data amount; determining a target execution duration required by each candidate power device to execute a target task based on the target task data amount, the target program data amount and a target execution rate corresponding to the candidate power device; and determining target power equipment from the candidate power equipment based on the target execution duration and the equipment executable data amount, and distributing target tasks and target programs to the target power equipment, so that effective distribution of tasks is realized, and the equipment utilization rate is improved.

Description

Task allocation method, device, equipment and medium based on electric power Internet of things
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a task allocation method, apparatus, device, and medium based on an electric power internet of things.
Background
With the development of computer technology, more and more power intelligent electronic devices (Intelligent Electronic Device, IEDs) are used in the power industry for performing various tasks. In the process of using an IED cluster composed of a plurality of IEDs, a new round of task allocation and task execution can be performed after all tasks in the IED cluster are required to be executed.
At present, when task allocation is performed on an IED, only the task storage space of the IED is often considered, and after the task storage space of a certain IED is occupied, task allocation to a next IED is considered. However, this task allocation method may cause the IED with large task storage space to be allocated with tasks all the time, and other IEDs are idle for a long time, thereby causing resource waste.
Disclosure of Invention
The invention provides a task distribution method, device, equipment and medium based on an electric power Internet of things, which are used for realizing effective task distribution, improving the equipment utilization rate and the task execution efficiency and avoiding resource waste.
According to an aspect of the present invention, there is provided a task allocation method based on the electric power internet of things, the method comprising:
acquiring a target task to be allocated and a target program required by executing the target task, and determining target equipment hardware information required by executing the target task;
acquiring a power equipment cluster in the power Internet of things, and determining power equipment to be selected for executing the target task in the power equipment cluster based on the target equipment hardware information;
determining candidate power equipment for executing the target task from the power equipment to be selected based on the equipment executable data amount corresponding to the power equipment to be selected, the target task data amount corresponding to the target task and the target program data amount corresponding to the target program;
determining a target execution duration required by each candidate power device to execute the target task based on the target task data amount, the target program data amount and the target execution rate corresponding to the candidate power device;
and determining a target power device from the candidate power devices based on the target execution duration and the device executable data amount corresponding to each candidate power device, and distributing the target task and the target program to the target power device.
According to another aspect of the present invention, there is provided a task allocation device based on the internet of things of electric power, the device comprising:
the target task acquisition module is used for acquiring a target task to be allocated and a target program required by executing the target task, and determining target equipment hardware information required by executing the target task;
the power equipment to be selected determining module is used for acquiring a power equipment cluster in the power internet of things and determining power equipment to be selected for executing the target task in the power equipment cluster based on the target equipment hardware information;
a candidate power equipment determining module, configured to determine a candidate power equipment for executing the target task from the candidate power equipment based on the equipment executable data amount corresponding to the candidate power equipment, the target task data amount corresponding to the target task, and the target program data amount corresponding to the target program;
the target execution duration determining module is used for determining target execution duration required by each candidate power device to execute the target task based on the target task data volume, the target program data volume and the target execution rate corresponding to the candidate power device;
And the target power equipment determining module is used for determining target power equipment from the candidate power equipment based on the target execution duration and the equipment executable data quantity corresponding to each candidate power equipment, and distributing the target task and the target program to the target power equipment.
According to another aspect of the present invention, there is provided an electronic device including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the liquid crystal display device comprises a liquid crystal display device,
the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor, so that the at least one processor can execute the task allocation method based on the electric power internet of things according to any embodiment of the invention.
According to another aspect of the present invention, there is provided a computer readable storage medium storing computer instructions for causing a processor to implement the task allocation method based on the electric power internet of things according to any embodiment of the present invention when executed.
According to the technical scheme, the target task to be distributed and the target program required by executing the target task are obtained, and the target equipment hardware information required by executing the target task is determined; and acquiring a power equipment cluster in the power Internet of things, and determining power equipment to be selected for executing the target task in the power equipment cluster based on the target equipment hardware information, so that the power equipment incapable of executing the target task is removed, and the selection range of the power equipment for executing the target task is narrowed. And determining candidate power equipment for executing the target task from the power equipment to be selected based on the equipment executable data amount corresponding to the power equipment to be selected, the target task data amount corresponding to the target task and the target program data amount corresponding to the target program, thereby removing the power equipment to be selected which does not have enough executable data amount, reducing the selection range of the power equipment for executing the target task again, and selecting the power equipment for executing the target task from the rest candidate power equipment. Determining a target execution duration required by each candidate power device to execute the target task based on the target task data amount, the target program data amount and the target execution rate corresponding to the candidate power device; and determining target power equipment from the candidate power equipment based on the target execution duration and the equipment executable data quantity corresponding to each candidate power equipment, and distributing the target tasks and the target programs to the target power equipment, so that the effective distribution of the tasks is realized, the equipment utilization rate and the task execution efficiency are improved, and the resource waste is avoided.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a task allocation method based on the internet of things of electric power according to a first embodiment of the present invention;
fig. 2 is a flowchart of a task allocation method based on the electric power internet of things according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a task allocation device based on the electric power internet of things according to the third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device for implementing a task allocation method based on the electric power internet of things according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
Fig. 1 is a flowchart of a task allocation method based on an electric power internet of things, where the method may be applicable to a situation of task allocation to tasks to be executed by fixed device hardware, and the method may be executed by a task allocation device based on the electric power internet of things, where the task allocation device based on the electric power internet of things may be implemented in a form of hardware and/or software, and the task allocation device based on the electric power internet of things may be configured in an electronic device. As shown in fig. 1, the method includes:
s110, acquiring a target task to be allocated and a target program required by executing the target task, and determining target equipment hardware information required by executing the target task.
The target task may refer to a task to be allocated to the power equipment in the power internet of things. The target program may refer to a program for controlling the power device to perform a target task according to a task demand. The object program may be used to extend the task execution range of the power device. For example, a certain power device possesses device hardware Q and device hardware W, but the power device may often be used to perform tasks requiring device hardware Q. The program corresponding to the task may cause the power device to also be used to perform tasks requiring the device hardware W. The target device hardware information may include, but is not limited to, a device hardware name, a device hardware type, a device hardware model, or a function corresponding to the device hardware.
Specifically, a target task to be allocated and a target program required for executing the target task are acquired. The target task and the target program can be distributed together, and the synchronicity of the target task and the target program is ensured. The target task can be distributed to the queue to be executed of the power equipment, and the target program corresponding to the target task is distributed to the power equipment for executing the target task when the target task is to be executed, so that the storage resource of the power equipment is saved. Target device hardware information required to perform a target task is determined.
S120, acquiring a power equipment cluster in the power Internet of things, and determining the power equipment to be selected for executing the target task in the power equipment cluster based on the target equipment hardware information.
The power equipment cluster may refer to a device cluster formed by all power equipment in the power internet of things. The candidate power device may refer to a power device capable of performing the target task. For example, the power device to be selected may be, but is not limited to, a power device having target device hardware, or a power device having a function corresponding to the target device hardware.
Specifically, a power equipment cluster in the power internet of things is obtained. And determining at least one power device for executing the target task from the power device cluster based on the target device hardware information, and taking each determined power device as a power device to be selected. If the determined power equipment is only one, the power equipment is determined to be the target power equipment, and the target task and the target program are distributed to the target power equipment. If a plurality of determined power equipment exists, the most suitable power equipment is selected from the determined power equipment, and a target task and a target program are allocated.
S130, determining candidate power equipment for executing the target task from the power equipment to be selected based on the equipment executable data volume corresponding to the power equipment to be selected, the target task data volume corresponding to the target task and the target program data volume corresponding to the target program.
The device executable data size may refer to a remaining data size of a task that the power device can perform at the current time. The target task data size may refer to the data size of the target task itself. The target program data amount may refer to the data amount size of the target program itself. For example, if the power device wants to perform the target task, at least a remaining amount of data needs to be present in the power device that is sufficient to perform the target task. Candidate power devices may refer to power devices that are capable of performing a task that is targeted. For example, the candidate power device may be, but is not limited to, a power device having target device hardware and a sufficiently large amount of remaining data.
Specifically, the device executable data amount corresponding to the power device to be selected is compared with the target task data amount corresponding to the target task and the target program data amount corresponding to the target program, the power device capable of executing the target task is determined, and the power device is determined to be a candidate power device for executing the target task.
And S140, determining target execution time required by each candidate power device to execute the target task based on the target task data amount, the target program data amount and the target execution rate corresponding to the candidate power device.
The target execution rate may refer to a rate at which the power device executes the target task. For example, the target execution rate may be, but is not limited to, a historical average execution rate at which the power device performs the target task, or a historical slowest execution rate at which the power device performs the target task. The target execution duration may refer to a duration required by the power device to execute the target task.
And S150, determining a target power device from the candidate power devices based on the target execution duration and the device executable data amount corresponding to each candidate power device, and distributing a target task and a target program to the target power device.
The target power device may refer to a power device for executing a target task, which is determined in the current target task allocation process. Specifically, each candidate power device is comprehensively ranked based on a target execution duration and a device executable data amount corresponding to the candidate power device, the power device with the first rank is determined as a target power device from the candidate power devices, and a target task and a target program are distributed to the target power devices in a broadcast mode. For example, the target task and the target program may each be composed of code and/or verification code.
According to the technical scheme, the target task to be distributed and the target program required by executing the target task are obtained, and the target equipment hardware information required by executing the target task is determined; and acquiring the power equipment cluster in the power Internet of things, and determining the power equipment to be selected for executing the target task in the power equipment cluster based on the target equipment hardware information, so that the power equipment incapable of executing the target task is removed, and the selection range of the power equipment for executing the target task is narrowed. And determining candidate power equipment for executing the target task from the candidate power equipment based on the equipment executable data amount corresponding to the power equipment to be selected, the target task data amount corresponding to the target task and the target program data amount corresponding to the target program, thereby removing the power equipment to be selected which does not have enough executable data amount, reducing the selection range of the power equipment for executing the target task again, and selecting the power equipment for executing the target task from the rest candidate power equipment. Determining a target execution duration required by each candidate power device to execute a target task based on the target task data amount, the target program data amount and a target execution rate corresponding to the candidate power device; and determining the target power equipment from the candidate power equipment based on the target execution duration and the equipment executable data quantity corresponding to each candidate power equipment, and distributing the target tasks and the target programs to the target power equipment, so that the effective distribution of the tasks is realized, the equipment utilization rate and the task execution efficiency are improved, and the resource waste is avoided.
Based on the above technical solution, S130 may include: adding the target task data volume corresponding to the target task and the target program data volume corresponding to the target program to obtain the total target data volume; and comparing the executable data volume of the equipment corresponding to each power equipment to be selected with the total target data volume, and determining the power equipment to be selected which is larger than or equal to the total target data volume as a candidate power equipment for executing the target task.
Specifically, for example, the target task data amount corresponding to the target task may be represented by M. The target program data amount corresponding to the target program may be represented by N. The executable data volume of the equipment corresponding to the power equipment to be selected can be represented by M i And (3) representing. And adding the target task data volume (such as M) corresponding to the target task and the target program data volume (such as N) corresponding to the target program to obtain the total target data volume (such as M+N). The corresponding device executable data volume (such as M i ) The comparison is made with the total target data amount (e.g., m+n), and the candidate power device that is greater than or equal to the total target data amount (e.g., m+n) is determined as the candidate power device for performing the target task.
It should be noted that, considering that there is a small increase in the amount of data during task execution, a target task operation margin (e.g., 10% m) accounting for 10% of the target task data amount may be considered at the same time when determining the candidate power device. Then the corresponding device executable data amount (e.g. M i ) To a total target data amount (e.g., M+N) and a target task operation margin (e.g., 10% M)And determining the power equipment to be selected which is larger than or equal to the total target data amount (such as M+N+10%M) as the candidate power equipment for executing the target task, so that the situation that the power equipment is blocked or even blocked and needs to be restarted in the process of executing the task is avoided, and the execution efficiency of the target task is further improved.
Based on the above technical solution, S140 may include: and dividing the total target data volume by the target execution rate corresponding to each candidate power equipment, and determining a result of the dividing as target execution time required by each candidate power equipment to execute the target task.
Specifically, the total target data amount (such as M+N) and the corresponding target execution rate (such as V) of each candidate power device i ) Performing a division and obtaining a result (e.g., (M+N)/V) i ) Determining a target execution duration (e.g., t) required for each candidate power device to execute the target task i )。
On the basis of the above technical solution, after the target task and the target program are distributed into the target power equipment, the method further includes: and the control target power equipment executes the target task through the target program, and after the target task is completed by execution, the control target power equipment deletes the target program.
Specifically, after the target task and the target program are distributed to the target power equipment, the target power equipment can be controlled to execute the target task through the target program in a mode of sending a task execution instruction, and after the target task is completed, the target power equipment is controlled to delete the target program, so that the storage resource of the target power equipment is saved. After the target tasks and the target programs are distributed to the target power equipment, the target tasks can be placed in a task execution queue, the target power equipment autonomously controls and executes the target tasks, and after the target tasks are executed, the target programs in the target power equipment are deleted, so that storage resources of the target power equipment are saved.
Example two
Fig. 2 is a flowchart of a task allocation method based on the electric power internet of things according to a second embodiment of the present invention, where a determination process of a target electric power device is described in detail on the basis of the foregoing embodiment. Wherein the explanation of the same or corresponding terms as those of the above embodiments is not repeated herein. As shown in fig. 2, the method includes:
s210, acquiring a target task to be allocated and a target program required by executing the target task, and determining target equipment hardware information required by executing the target task.
S220, acquiring a power equipment cluster in the power Internet of things, and determining the power equipment to be selected for executing the target task in the power equipment cluster based on the target equipment hardware information.
S230, determining candidate power equipment for executing the target task from the power equipment to be selected based on the equipment executable data volume corresponding to the power equipment to be selected, the target task data volume corresponding to the target task and the target program data volume corresponding to the target program.
S240, determining target execution duration required by each candidate power device to execute the target task based on the target task data amount, the target program data amount and the target execution rate corresponding to the candidate power device.
S250, based on the target execution duration corresponding to each candidate power device, all the candidate power devices are arranged in an ascending order, and a first candidate device sequence is determined.
The first candidate device sequence may be an ascending candidate device sequence obtained by sorting the candidate power devices according to the order of the target execution duration from small to large.
And S260, based on the executable data quantity of the equipment corresponding to each candidate power equipment, arranging all the candidate power equipment in a descending order, and determining a second candidate equipment sequence.
The second candidate device sequence may be a descending candidate device sequence obtained by sorting the candidate power devices in order of the device executable data amount from the large to the small.
S270, determining a target power device from the candidate power devices based on the first candidate device sequence and the second candidate device sequence, and distributing the target task and the target program to the target power device.
Specifically, a comprehensive ranking corresponding to each candidate power device is determined based on the first candidate device sequence and the second candidate device sequence, the candidate power device with the first comprehensive ranking is determined to be a target power device, and a target task and a target program are distributed to the target power device.
It should be noted that the candidate power device of the second comprehensive rank may also be determined as the backup power device. When the target power equipment is crowded with a task queue to be executed, the target power equipment fails and/or the target power equipment is down, the standby power equipment is used for executing the target tasks, so that smooth execution of the target tasks is ensured, the target tasks are prevented from being distributed again, and the task distribution efficiency is further improved.
According to the technical scheme, the first candidate equipment sequence is determined by ascending order arrangement of all candidate power equipment based on the target execution duration corresponding to each candidate power equipment; based on the equipment executable data volume corresponding to each candidate power equipment, descending order all the candidate power equipment, and determining a second candidate equipment sequence; based on the first candidate equipment sequence and the second candidate equipment sequence, determining target power equipment from candidate power equipment, and distributing target tasks and target programs to the target power equipment, the target power equipment can be directly determined based on the comprehensive ranking corresponding to each candidate power equipment, the situation that target execution duration and equipment executable data amount are compared one by one for the candidate power equipment is avoided, and the task distribution efficiency and accuracy are further improved.
Based on the above technical solution, S270 may include: determining a first ranking number of each candidate power device in a first candidate device sequence and a second ranking number of each candidate power device in a second candidate device sequence; determining a total selection score corresponding to each candidate power device based on the number of the candidate power devices, the first ranking sequence number and the second ranking sequence number; and determining the candidate power equipment corresponding to the highest total selection score as the target power equipment.
The first ranking number may refer to a location ranking number of the candidate power device in the first candidate device sequence. The second ranking number may refer to a location ranking number of the candidate power device in the second candidate device sequence. The number of candidate power devices may refer to a total number of devices of the candidate power devices. The total election score may be used to characterize a recommended degree to which the candidate power device performs the target task.
Specifically, for example, a first ranking number of candidate power device a in a first candidate device sequence (e.g., 1, i.e., a first name of candidate power device a ranked in the first candidate device sequence) is determined. A second rank order number of candidate power device a in a second candidate device sequence is determined (e.g., 2, i.e., the second name of candidate power device a ranked in the second candidate device sequence). The total selection score (e.g., 100/(1+2)) corresponding to each candidate power device is determined using the number of candidate power devices (e.g., 100) divided by the addition (e.g., 1+2) between the first ranking number (e.g., 1) and the second ranking number (e.g., 2). After determining the total selection score corresponding to each candidate power device, the candidate power device corresponding to the highest total selection score can be determined as the target power device.
Based on the above technical solution, determining the total selection score corresponding to each candidate power device based on the number of candidate power devices, the first ranking sequence number and the second ranking sequence number may include: dividing the number of the candidate power equipment by a first ranking number corresponding to the candidate power equipment for each candidate power equipment to obtain a first selection score corresponding to the candidate power equipment; dividing the number of the candidate power equipment by a second ranking number corresponding to the candidate power equipment to obtain a second selection score corresponding to the candidate power equipment; and adding the first selected score and the second selected score, and determining an addition result as a total selected score corresponding to the candidate power equipment.
The first optional score may be used to characterize how fast or slow the candidate power device performs the target task. The second optional score may be used to characterize the extent of the amount of data remaining after the candidate power device is assigned the target task.
Specifically, for each candidate power device, dividing the number of the candidate power devices (such as 100) by the first ranking number (such as 1) corresponding to the candidate power device to obtain a first selection score (such as 100/1) corresponding to the candidate power device; dividing the number of the candidate power equipment (such as 100) by the second ranking number (such as 2) corresponding to the candidate power equipment to obtain a second selection score (such as 100/2) corresponding to the candidate power equipment; the first selection score (for example, 100/1=100) and the second selection score (for example, 100/2=50) are added, and the added result (for example, 100+50) is determined to be the total selection score (for example, 150) corresponding to the candidate power equipment, so that the target task fitness between each candidate power equipment can be amplified, the target power equipment corresponding to the highest total selection score can be determined more accurately, and the task distribution efficiency and accuracy are further improved.
The following is an embodiment of a task allocation device based on the electric power internet of things provided by the embodiment of the present invention, where the task allocation device based on the electric power internet of things and the task allocation method based on the electric power internet of things in the foregoing embodiments belong to the same inventive concept, and details of the task allocation device based on the electric power internet of things, which are not described in detail in the embodiment of the task allocation device based on the electric power internet of things, may refer to the embodiment of the task allocation method based on the electric power internet of things.
Example III
Fig. 3 is a schematic structural diagram of a task allocation device based on the electric power internet of things according to a third embodiment of the present invention. As shown in fig. 3, the apparatus includes: the target task acquisition module 310, the candidate power device determination module 320, the candidate power device determination module 330, the target execution duration determination module 340, and the target power device determination module 350.
The target task obtaining module 310 is configured to obtain a target task to be allocated and a target program required for executing the target task, and determine target device hardware information required for executing the target task; the power equipment to be selected determining module 320 is configured to obtain a power equipment cluster in the power internet of things, and determine power equipment to be selected for executing a target task in the power equipment cluster based on the target equipment hardware information; a candidate power device determining module 330, configured to determine a candidate power device for executing a target task from among the candidate power devices based on a device executable data amount corresponding to the candidate power device, a target task data amount corresponding to the target task, and a target program data amount corresponding to the target program; a target execution duration determining module 340, configured to determine a target execution duration required by each candidate power device to execute a target task based on the target task data amount, the target program data amount, and a target execution rate corresponding to the candidate power device; the target power device determining module 350 is configured to determine a target power device from the candidate power devices based on the target execution duration and the device executable data amount corresponding to each candidate power device, and allocate a target task and a target program to the target power device.
Alternatively, the candidate power device determination module 330 is specifically configured to: adding the target task data volume corresponding to the target task and the target program data volume corresponding to the target program to obtain the total target data volume; and comparing the executable data volume of the equipment corresponding to each power equipment to be selected with the total target data volume, and determining the power equipment to be selected which is larger than or equal to the total target data volume as a candidate power equipment for executing the target task.
Optionally, the target execution duration determining module 340 is specifically configured to: and dividing the total target data volume by the target execution rate corresponding to each candidate power equipment, and determining a result of the dividing as target execution time required by each candidate power equipment to execute the target task.
Optionally, the target power device determination module 350 may include:
the first candidate device sequence determining submodule is used for carrying out ascending arrangement on all candidate power devices based on the target execution duration corresponding to each candidate power device to determine a first candidate device sequence;
a second candidate device sequence determining submodule, configured to determine a second candidate device sequence by arranging all candidate power devices in a descending order based on a device executable data amount corresponding to each candidate power device;
The target power device determination submodule is used for determining the target power device from the candidate power devices based on the first candidate device sequence and the second candidate device sequence.
Optionally, the target power device determination submodule may include:
a ranking number determining unit configured to determine a first ranking number of each candidate power device in a first candidate device sequence and a second ranking number of each candidate power device in a second candidate device sequence;
the total selection score determining unit is used for determining a total selection score corresponding to each candidate power device based on the number of the candidate power devices, the first ranking sequence number and the second ranking sequence number;
and the target power equipment determining unit is used for determining the candidate power equipment corresponding to the highest total selected score as the target power equipment.
Optionally, the total optional score determining unit is specifically configured to: dividing the number of the candidate power equipment by a first ranking number corresponding to the candidate power equipment for each candidate power equipment to obtain a first selection score corresponding to the candidate power equipment; dividing the number of the candidate power equipment by a second ranking number corresponding to the candidate power equipment to obtain a second selection score corresponding to the candidate power equipment; and adding the first selected score and the second selected score, and determining an addition result as a total selected score corresponding to the candidate power equipment.
Optionally, the apparatus further comprises:
and the target task execution module is used for controlling the target power equipment to execute the target task through the target program after the target task and the target program are distributed into the target power equipment, and controlling the target power equipment to delete the target program after the target task is completed.
The task allocation device based on the electric power Internet of things provided by the embodiment of the invention can execute the task allocation method based on the electric power Internet of things provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
It should be noted that, in the embodiment of the task allocation device based on the electric power internet of things, all the included modules are only divided according to the functional logic, but not limited to the above-mentioned division, so long as the corresponding functions can be realized; in addition, the specific names of the functional modules are only for distinguishing from each other, and are not used for limiting the protection scope of the present invention.
Example IV
Fig. 4 shows a schematic diagram of the structure of an electronic device 10 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 4, the electronic device 10 includes at least one processor 11, and a memory, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM 12 and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as the power internet of things-based task allocation method.
In some embodiments, the power internet of things-based task allocation method may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the power internet of things-based task allocation method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform the power internet of things-based task allocation method in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (10)

1. The task allocation method based on the electric power Internet of things is characterized by comprising the following steps of:
acquiring a target task to be allocated and a target program required by executing the target task, and determining target equipment hardware information required by executing the target task;
acquiring a power equipment cluster in the power Internet of things, and determining power equipment to be selected for executing the target task in the power equipment cluster based on the target equipment hardware information;
Determining candidate power equipment for executing the target task from the power equipment to be selected based on the equipment executable data amount corresponding to the power equipment to be selected, the target task data amount corresponding to the target task and the target program data amount corresponding to the target program;
determining a target execution duration required by each candidate power device to execute the target task based on the target task data amount, the target program data amount and the target execution rate corresponding to the candidate power device;
and determining a target power device from the candidate power devices based on the target execution duration and the device executable data amount corresponding to each candidate power device, and distributing the target task and the target program to the target power device.
2. The method of claim 1, wherein the determining, from among the candidate power devices, a candidate power device for performing the target task based on the device executable data amount corresponding to the candidate power device, the target task data amount corresponding to the target task, and the target program data amount corresponding to the target program, comprises:
adding the target task data volume corresponding to the target task and the target program data volume corresponding to the target program to obtain a total target data volume;
And comparing the executable data volume of the equipment corresponding to each piece of the to-be-selected power equipment with the total target data volume, and determining the to-be-selected power equipment which is larger than or equal to the total target data volume as a candidate power equipment for executing the target task.
3. The method of claim 2, wherein the determining a target execution duration required by each candidate power device to perform the target task based on the target task data amount, the target program data amount, and a target execution rate corresponding to the candidate power device comprises:
and dividing the total target data volume by the target execution rate corresponding to each candidate power device, and determining a result of the division as target execution time required by each candidate power device to execute the target task.
4. The method of claim 1, wherein the determining the target power device from the candidate power devices based on the target execution duration and the device-executable data amount for each candidate power device comprises:
based on the target execution duration corresponding to each candidate power device, carrying out ascending order arrangement on all the candidate power devices, and determining a first candidate device sequence;
Based on the equipment executable data volume corresponding to each candidate power equipment, descending order all the candidate power equipment, and determining a second candidate equipment sequence;
a target power device is determined from among the candidate power devices based on the first candidate device sequence and the second candidate device sequence.
5. The method of claim 4, wherein the determining a target power device from among candidate power devices based on the first candidate device sequence and the second candidate device sequence comprises:
determining a first ranking number of each candidate power device in the first candidate device sequence and a second ranking number of each candidate power device in the second candidate device sequence;
determining a total selection score corresponding to each candidate power device based on the number of the candidate power devices, the first ranking sequence number and the second ranking sequence number;
and determining the candidate power equipment corresponding to the highest total selection score as the target power equipment.
6. The method of claim 5, wherein determining a total election score for each candidate power device based on the number of candidate power devices, the first ranking number, and the second ranking number comprises:
Dividing the number of the candidate power equipment by a first ranking number corresponding to the candidate power equipment for each candidate power equipment to obtain a first selection score corresponding to the candidate power equipment;
dividing the number of the candidate power equipment by a second ranking number corresponding to the candidate power equipment to obtain a second selection score corresponding to the candidate power equipment;
and adding the first selected score and the second selected score, and determining an addition result as a total selected score corresponding to the candidate power equipment.
7. The method of claim 1, wherein after distributing the target task and the target program into the target power device, the method further comprises:
and controlling the target power equipment to execute the target task through the target program, and controlling the target power equipment to delete the target program after the target task is completed.
8. Task allocation device based on electric power thing networking, characterized by comprising:
the target task acquisition module is used for acquiring a target task to be allocated and a target program required by executing the target task, and determining target equipment hardware information required by executing the target task;
The power equipment to be selected determining module is used for acquiring a power equipment cluster in the power internet of things and determining power equipment to be selected for executing the target task in the power equipment cluster based on the target equipment hardware information;
a candidate power equipment determining module, configured to determine a candidate power equipment for executing the target task from the candidate power equipment based on the equipment executable data amount corresponding to the candidate power equipment, the target task data amount corresponding to the target task, and the target program data amount corresponding to the target program;
the target execution duration determining module is used for determining target execution duration required by each candidate power device to execute the target task based on the target task data volume, the target program data volume and the target execution rate corresponding to the candidate power device;
and the target power equipment determining module is used for determining target power equipment from the candidate power equipment based on the target execution duration and the equipment executable data quantity corresponding to each candidate power equipment, and distributing the target task and the target program to the target power equipment.
9. An electronic device, the electronic device comprising:
At least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the liquid crystal display device comprises a liquid crystal display device,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the power internet of things-based task allocation method of any one of claims 1-7.
10. A computer readable storage medium storing computer instructions for causing a processor to implement the power internet of things based task allocation method of any one of claims 1-7 when executed.
CN202310406109.4A 2023-04-14 2023-04-14 Task allocation method, device, equipment and medium based on electric power Internet of things Pending CN116389499A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310406109.4A CN116389499A (en) 2023-04-14 2023-04-14 Task allocation method, device, equipment and medium based on electric power Internet of things

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310406109.4A CN116389499A (en) 2023-04-14 2023-04-14 Task allocation method, device, equipment and medium based on electric power Internet of things

Publications (1)

Publication Number Publication Date
CN116389499A true CN116389499A (en) 2023-07-04

Family

ID=86980484

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310406109.4A Pending CN116389499A (en) 2023-04-14 2023-04-14 Task allocation method, device, equipment and medium based on electric power Internet of things

Country Status (1)

Country Link
CN (1) CN116389499A (en)

Similar Documents

Publication Publication Date Title
CN111738446B (en) Scheduling method, device, equipment and medium of deep learning reasoning engine
CN106874100B (en) Computing resource allocation method and device
CN112506581A (en) Method and device for rendering small program, electronic equipment and readable storage medium
CN112860974A (en) Computing resource scheduling method and device, electronic equipment and storage medium
CN117112222A (en) Request processing method and device, electronic equipment and storage medium
CN112860401A (en) Task scheduling method and device, electronic equipment and storage medium
CN115373860B (en) Scheduling method, device and equipment of GPU (graphics processing Unit) tasks and storage medium
CN115952054A (en) Simulation task resource management method, device, equipment and medium
CN115373826B (en) Task scheduling method and device based on cloud computing
CN114862223A (en) Robot scheduling method, device, equipment and storage medium
CN115658311A (en) Resource scheduling method, device, equipment and medium
CN116389499A (en) Task allocation method, device, equipment and medium based on electric power Internet of things
CN115883357A (en) Soft load server processing method and device, electronic equipment and medium
CN115438007A (en) File merging method and device, electronic equipment and medium
CN116361008A (en) Task balanced distribution method, device, equipment and medium based on electric power Internet of things
CN114598705B (en) Message load balancing method, device, equipment and medium
CN112905351B (en) GPU and CPU load scheduling method, device, equipment and medium
CN117472471A (en) Application program configuration method, device, equipment and storage medium
CN117519940A (en) Process scheduling method and device, electronic equipment and storage medium
CN116795450A (en) Configuration method, device, equipment and medium of micro-grid edge computing terminal
CN117632425A (en) Task allocation method and device, electronic equipment and storage medium
CN117667397A (en) GPU resource scheduling method and device, electronic equipment and storage medium
CN117591249A (en) Transaction processing method, device, electronic equipment and storage medium
CN116915868A (en) Network monitoring task issuing method, device, equipment and storage medium
CN116801001A (en) Video stream processing method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination