CN116361008A - Task balanced distribution method, device, equipment and medium based on electric power Internet of things - Google Patents

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

Info

Publication number
CN116361008A
CN116361008A CN202310399269.0A CN202310399269A CN116361008A CN 116361008 A CN116361008 A CN 116361008A CN 202310399269 A CN202310399269 A CN 202310399269A CN 116361008 A CN116361008 A CN 116361008A
Authority
CN
China
Prior art keywords
task
target
current
allocated
power equipment
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
CN202310399269.0A
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 CN202310399269.0A priority Critical patent/CN116361008A/en
Publication of CN116361008A publication Critical patent/CN116361008A/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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/61Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources taking into account QoS or priority requirements
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Physics & Mathematics (AREA)
  • Medical Informatics (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Business, Economics & Management (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Supply And Distribution Of Alternating Current (AREA)

Abstract

The invention discloses a task balanced distribution method, device, equipment and medium based on an electric power Internet of things. The method comprises the following steps: acquiring a current task set to be distributed and a current power equipment cluster in the power Internet of things; determining a target task to be distributed at present based on the task data amount of each task to be distributed in the current task set; determining a target power device to be distributed at the present time based on the available time length corresponding to each power device in the current power device cluster; determining a target execution duration required by the target power equipment to execute the target task based on the task execution rate corresponding to the target power equipment and the target task data volume corresponding to the target task; and if the target available time length corresponding to the target power equipment is detected to be longer than or equal to the target execution time length, distributing the target task to the target power equipment. By the embodiment of the invention, the balanced allocation of the tasks can be realized, the task execution efficiency is improved, and the resource waste is avoided.

Description

Task balanced distribution method, device, equipment and medium based on electric power Internet of things
Technical Field
The invention relates to the technical field of computers, in particular to a task balanced distribution method, device, equipment and medium based on the 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 that some IEDs need to wait for a long time to perform the allocated tasks after performing the allocated tasks, thereby wasting resources.
Disclosure of Invention
The invention provides a method, a device, equipment and a medium for uniformly distributing tasks based on an electric power Internet of things, which are used for uniformly distributing the tasks, improving the task execution efficiency and avoiding the resource waste.
According to an aspect of the invention, there is provided a task balanced distribution method based on the electric power internet of things, the method comprising:
acquiring a current task set to be distributed and a current power equipment cluster in the power Internet of things;
determining a target task to be distributed at present based on the task data amount of each task to be distributed in the current task set;
determining a target power device to be distributed at the present time based on the available time length corresponding to each power device in the current power device cluster;
determining a target execution duration required by the target power equipment to execute the target task based on the task execution rate corresponding to the target power equipment and the target task data volume corresponding to the target task;
and if the target available time length corresponding to the target power equipment is detected to be longer than or equal to the target execution time length, distributing the target task to the target power equipment.
According to another aspect of the present invention, there is provided a task balance distribution device based on the internet of things of electric power, the device comprising:
the distribution information acquisition module is used for acquiring a current task set to be distributed and a current power equipment cluster in the electric power Internet of things;
The target task determining module is used for determining the target task to be distributed at present based on the task data volume of each task to be distributed in the current task set;
the target power equipment determining module is used for determining the target power equipment to be distributed at present based on the available time length corresponding to each power equipment in the current power equipment cluster;
the target execution duration determining module is used for determining target execution duration required by the target power equipment for executing the target task based on the task execution rate corresponding to the target power equipment and the target task data volume corresponding to the target task;
and the task allocation module is used for allocating the target task to the target power equipment at the current time if the target available time length corresponding to the target power equipment is detected to be longer than or equal to the target execution time length.
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 balance distribution 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 implementing the task balancing allocation method based on the electric power internet of things according to any embodiment of the present invention when executed by a processor.
According to the technical scheme, the current task set to be distributed and the current power equipment cluster in the electric power Internet of things are obtained; determining a target task to be distributed at present based on the task data amount of each task to be distributed in the current task set; determining a target power device to be distributed at the present time based on the available time length corresponding to each power device in the current power device cluster; determining a target execution duration required by the target power equipment to execute the target task based on the task execution rate corresponding to the target power equipment and the target task data volume corresponding to the target task; if the target available time length corresponding to the target power equipment is detected to be longer than or equal to the target execution time length, the target task is distributed to the target power equipment at the time, so that the task is distributed to the power equipment capable of rapidly completing the task when each time of distribution, the situation that the task is distributed too much or too little is avoided, the balanced distribution of the task is realized, the resource utilization rate and the task execution efficiency of the power equipment are further 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 balance distribution method based on the electric power internet of things according to a first embodiment of the present invention;
FIG. 2 is an exemplary diagram of a current task set in accordance with one embodiment of the present invention;
fig. 3 is an exemplary diagram of a current power device cluster in the internet of things of electric power according to a first embodiment of the present invention;
FIG. 4 is an exemplary diagram of a current task queue to be allocated in accordance with one embodiment of the present invention;
FIG. 5 is an exemplary diagram of a current queue of devices to be allocated in accordance with an embodiment of the present invention;
Fig. 6 is a flowchart of a task balancing distribution method based on the electric power internet of things according to a second embodiment of the present invention;
fig. 7 is a schematic structural diagram of a task balancing and distributing device based on the electric power internet of things according to the third embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device for implementing a task balance distribution 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 balancing distribution method based on an electric power internet of things, where the method may be applied to a situation that a plurality of tasks to be distributed in a task set are distributed to an electric power equipment cluster in an balanced manner, and the method may be performed by a task balancing distribution device based on the electric power internet of things, where the task balancing distribution device based on the electric power internet of things may be implemented in a form of hardware and/or software, and the task balancing distribution 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 current task set to be distributed and a current power equipment cluster in the power Internet of things.
Wherein fig. 2 presents an example diagram of a current task set. Referring to fig. 2, a task set may refer to a task set composed of a plurality of tasks to be allocated into a power device. The current task set may refer to a task set to be task-allocated at the current time. For example, the current task set may be, but is not limited to: the task set comprises all tasks to be distributed or comprises the rest tasks to be distributed after a part of tasks are distributed. Fig. 3 shows an example diagram of a current power device cluster in an electric internet of things. Referring to fig. 3, a power device cluster may refer to a device cluster that is made up of all power intelligent electronic devices (e.g., IEDs). The current power device cluster may refer to a power device cluster to which a task is to be assigned at the current time. For example, the current power device cluster may be, but is not limited to: a cluster of devices consisting of all power devices to be tasked. Specifically, a current task set to be distributed and a current power equipment cluster in the power Internet of things at a current time after dynamic updating are obtained.
S120, determining a target task to be distributed at present based on the task data volume of each task to be distributed in the current task set.
The task data amount may refer to a task amount of a task to be allocated. The target task may refer to a current task to be assigned in the current set of tasks. For example, the target task may be, but is not limited to, a task to be allocated corresponding to a maximum amount of task data, or a task to be allocated corresponding to a minimum amount of tasks.
Specifically, based on the task data amount of each task to be allocated in the current task set, determining a task to be allocated corresponding to the maximum task data amount in the current task set, and determining the task to be allocated as a target task to be allocated at present.
S130, determining the target power equipment to be distributed at present based on the available time length corresponding to each power equipment in the current power equipment cluster.
Wherein the power device has a standard duration of task execution. The task execution standard time period may include a time period to be executed and an available time period. The time length to be executed is the time length that the allocated task needs to be executed. The available time period is the time period of the assignable task. The target power device may refer to a power device in the current power device cluster that is currently to be allocated. For example, the target power device may be, but is not limited to, a power device corresponding to a maximum available time period, or a power device corresponding to a minimum available time period.
Specifically, based on the available time length corresponding to each power device in the current power device cluster, determining the power device corresponding to the maximum available time length in the current power device cluster, and determining the power device as the target power device to be distributed at the present time.
S140, determining target execution time required by the target power equipment to execute the target task based on the task execution rate corresponding to the target power equipment and the target task data volume corresponding to the target task.
The task execution rate may refer to a speed at which the power device executes the assigned task, among other things. The target execution duration may refer to a duration that the target power device spends executing the target task at the task execution rate. Specifically, dividing the target task data volume corresponding to the target task and the task execution rate corresponding to the target power equipment, and determining a result of the division as a target execution duration required by the target power equipment to execute the target task. For example, if the task execution rate corresponding to the target power device is v and the target task data size corresponding to the target task is M, the target execution duration is T, where t=m/v.
It should be noted that, the task execution rate corresponding to each power device may be an intrinsic attribute of the power device, and the intrinsic attribute is not related to the target task. The task execution rate corresponding to each power device may also be a rate related to the target task, that is, there is a certain difference in the speed of the power device when executing each target task due to a large difference between each target task. Specifically, the actual service requirement is taken as a judgment basis.
And S150, if the detected target available time length corresponding to the target power equipment is longer than or equal to the target execution time length, distributing the target task to the target power equipment.
Specifically, based on a target available time length and a target execution time length corresponding to the target power equipment, whether the target task can be allocated to the target power equipment is judged. If the target available time length corresponding to the target power equipment is detected to be greater than or equal to the target execution time length, the target task with the largest current task data amount can be distributed to the target power equipment with the longest current available time length, and then the target task is distributed to the target power equipment at the time and waits to be executed. At this time, the target task that has been allocated to the target power device may be deleted from the current task set, and the current task set may be updated, so that allocation of the task having the largest amount of data for the next task may be continued.
According to the technical scheme, the current task set to be distributed and the current power equipment cluster in the electric power Internet of things are obtained; determining a target task to be distributed at present based on the task data amount of each task to be distributed in the current task set; determining a target power device to be distributed at the present time based on the available time length corresponding to each power device in the current power device cluster; determining a target execution duration required by the target power equipment to execute the target task based on the task execution rate corresponding to the target power equipment and the target task data volume corresponding to the target task; the target execution time length and the target available time length are utilized to distribute the target task; if the target available time length corresponding to the target power equipment is detected to be longer than or equal to the target execution time length, the target task with the largest current task data volume can be distributed to the target power equipment with the longest current available time length and is waited to be executed, the target task is distributed to the target power equipment at the time, and accordingly the target task with the largest current task data volume is distributed to the target power equipment with the longest current available time length each time until all tasks in the current task set are distributed, balanced distribution of tasks is achieved, task execution efficiency is improved, and resource waste is avoided.
Based on the above technical solution, S120 may include: based on the task data volume of each task to be allocated in the current task set, the current task set is arranged in a descending order, and a current task queue to be allocated is determined; and determining the first task to be allocated in the current task to be allocated queue as the target task to be allocated at the current time.
The current task queue to be allocated may be a descending task queue formed by all tasks to be allocated in the current task set according to the determined tasks to be allocated after the tasks are arranged according to the task data size from large to small. FIG. 4 presents an exemplary diagram of a current task queue to be allocated. Specifically, based on the task data volume of each task to be allocated in the current task set, the current task set is arranged in a descending order, and a current task queue to be allocated is determined; and determining the first task to be allocated in the current task queue to be the target task to be allocated at the present time, so that the second task to be allocated in the task queue can be directly used as the target task after the first task to be allocated is allocated. The task to be allocated with the largest task data amount is prevented from being compared again from the updated current task set after the target task with the largest task data amount is allocated, and the next task to be allocated with the largest task data amount is determined, so that the determination efficiency of the target task is improved, and the task allocation efficiency is further improved.
Based on the above technical solution, S130 may include: based on the available time length corresponding to each power device in the current power device cluster, the current power device clusters are arranged in a descending order, and a current device queue to be allocated is determined; the first power device in the current queue of devices to be allocated is determined as the target power device to be allocated at the present time.
The current equipment queue to be allocated may be a descending task queue formed by the determined power equipment after all the power equipment in the current power task cluster are arranged from large to small according to the available time length. Fig. 5 shows an exemplary diagram of a current queue of devices to be allocated. Specifically, based on the available time length of each power device in the current power device cluster, the current power device cluster is arranged in a descending order, and a current device queue to be allocated is determined; and determining the first power equipment in the current equipment queue to be allocated as the target power equipment to be allocated at the present time, so that the second power equipment in the task queue can be directly used as the target power equipment after the first power equipment is allocated with the target task. The process of comparing and determining new target power equipment from the updated current power equipment cluster after the target power equipment is allocated with the target task is avoided, so that the determination efficiency of the target power equipment is improved, and the power equipment can be inserted into the corresponding position in the equipment queue to be allocated based on the updated available time length of the power equipment allocated with the target task, so that the balanced allocation of the task can be realized, the task execution efficiency is further improved, and the resource waste is avoided.
Based on the technical scheme, the method further comprises the following steps: if the target available time length corresponding to the target power equipment is detected to be smaller than the target task execution time length, the target task is moved into a pending task queue from the current task set, the current task set is updated, and next task allocation is performed based on the updated current task set.
The pending task queue may refer to a task queue temporarily stored by a task that is not allocated successfully when the task is allocated for the first time. Specifically, based on a target available time length and a target execution time length corresponding to the target power equipment, whether the target task can be allocated to the target power equipment is judged. If the target available time length corresponding to the target power equipment is detected to be smaller than the target task execution time length, the target task is moved into a pending task queue from the current task set, the current task set is updated, next task allocation is carried out based on the updated current task set, task execution efficiency is further improved, and resource waste is avoided.
Based on the technical scheme, the method further comprises the following steps: if the fact that the task to be allocated does not exist in the current task set is detected, each unallocated task in the pending task queue is moved into the current task set, and task allocation is conducted again on the moved current task set; after the task is allocated again, if the fact that the unallocated task still exists in the pending task queue is detected, the unallocated task is allocated to the target power equipment to be allocated at the current moment.
Specifically, if the fact that the task to be allocated does not exist in the current task set is detected, and the fact that task allocation aiming at the current task set is completed for the first time is indicated, each unallocated task in the pending task queue is moved into the current task set, and task allocation is conducted on the moved current task set again. After the re-task allocation is carried out, if the fact that the unallocated task still exists in the pending task queue is detected, the unallocated task is allocated to the target power equipment to be allocated at the current moment. At this time, all tasks to be allocated in the initial current task set are allocated uniformly, so that the task execution efficiency is further improved, and the resource waste is avoided.
Example two
Fig. 6 is a flowchart of a task balanced distribution method based on the electric power internet of things according to a second embodiment of the present invention, where on the basis of the foregoing embodiment, a balanced distribution process of multiple types of tasks to be distributed existing in a current task set is described in detail. Wherein the explanation of the same or corresponding terms as those of the above embodiments is not repeated herein. As shown in fig. 6, the method includes:
s210, acquiring a current task set to be distributed and a current power equipment cluster in the power Internet of things.
S220, dividing the current task set based on task types corresponding to each task to be allocated in the current task set, and determining a current task subset corresponding to each task type.
Among other things, task type may refer to a type related to power device hardware. For example, the task type may be, but is not limited to, a particular type or a conventional type. The tasks in the current task set may be divided into a subset of tasks that are performed by the power device in which the specific hardware is present, i.e., a specific subset of tasks, and a subset of tasks that can be performed without the need for the specific power device, i.e., a regular subset of tasks. The specific subset of tasks may include, but is not limited to, specific tasks that can only be done on the device sensor to collect information or specific tasks that display information for a specific device. The subset of regular tasks may include, but is not limited to, regular tasks of an algorithm class that do not require specific hardware involvement, such as calculating amplitude or power monitoring algorithms using fourier algorithms.
S230, determining a target task type with the highest priority and a target task subset corresponding to the target task type based on priority information corresponding to each task type.
The target task type may refer to a task type with the highest priority. The target task subset may refer to a task subset corresponding to a target task type. Specifically, the target task type with the highest priority is determined based on priority information corresponding to each task type. Wherein, the higher the priority is, the fewer the executable equipment number corresponding to the task type is. And determining a target task subset corresponding to the target task type.
S240, based on the task data volume corresponding to each task to be allocated in the target task subset, the target task subset is arranged in a descending order, and a target task queue to be allocated is determined.
The target task queue to be allocated may be a descending task queue obtained by descending and arranging each task to be allocated in the target task subset according to the task data amount.
S250, determining the first task to be allocated in the target task to be allocated queue as the target task to be allocated at the present time.
Specifically, the task to be allocated with the highest task data volume in the task subset with the highest task type priority is determined as the target task to be allocated at the present time, so that the task to be allocated with a plurality of task execution limiting conditions can be allocated firstly, a plurality of conventional task execution devices are prevented from idling in the task allocation process, a specific task needs to wait for the specific task execution device to have enough task execution time to accept the specific task after the conventional task is executed, the balanced allocation of the task is further realized, the task execution efficiency is further improved, and the resource waste is avoided.
S260, determining the target power equipment to be distributed at present based on the available time length corresponding to each power equipment in the current power equipment cluster.
S270, determining target execution time required by the target power equipment to execute the target task based on the task execution rate corresponding to the target power equipment and the target task data volume corresponding to the target task.
And S280, if the detected target available time length corresponding to the target power equipment is longer than or equal to the target execution time length, distributing the target task to the target power equipment.
According to the technical scheme, the current task set is divided based on the task types corresponding to each task to be allocated in the current task set, and a current task subset corresponding to each task type is determined; determining a target task type with the highest priority and a target task subset corresponding to the target task type based on priority information corresponding to each task type; based on the task data amount corresponding to each task to be allocated in the target task subset, the target task subset is arranged in a descending order, and a target task queue to be allocated is determined; the first task to be allocated in the target task queue to be allocated is determined as the target task to be allocated at the present time, so that the task to be allocated with a limitation condition for multi-task execution can be allocated firstly, a plurality of conventional task execution devices are prevented from idling in the task allocation process, a specific task needs to wait for the specific task execution device to have enough task execution time to accept the specific task after the conventional task is executed, further, the balanced allocation of the task is realized, the task execution efficiency is further improved, and the resource waste is avoided.
Based on the above technical solution, S260 may include: determining a target device type matched with the target task type; determining target power equipment corresponding to the target equipment type based on the equipment type corresponding to each power intelligent equipment in the current power equipment cluster; based on the available time length corresponding to the target power equipment, descending order of the target power equipment is arranged, and a target power equipment queue is determined; the first power device in the target power device queue is determined to be the target power device to be allocated at the present time.
The task type and the device type have a corresponding relation, namely, the device of each device type can execute a conventional task and a specific task corresponding to the corresponding task type. The target power device queue may refer to a descending task queue obtained by descending order of available time periods by the selected target device.
Specifically, a target device type is determined that matches the target task type. For example, if the target task type is a task type that needs to be performed by a device that includes specific hardware a, then the target device type that matches the target task type is a device that includes hardware a. If the target task type is a task type executed by a device which does not need specific hardware, the target device type matched with the target task type is the device containing the hardware A and all other devices in the current power device cluster, namely the whole current power device cluster. Determining target power equipment corresponding to the target equipment type based on the equipment type corresponding to each power intelligent equipment in the current power equipment cluster; based on the available time length corresponding to the target power equipment, descending order of the target power equipment is arranged, and a target power equipment queue is determined; the first power device in the target power device queue is determined to be the target power device to be allocated at the present time.
The following is an embodiment of a task balanced distribution device based on the electric power internet of things, which belongs to the same inventive concept as the task balanced distribution method based on the electric power internet of things in the above embodiments, and details of the task balanced distribution device based on the electric power internet of things, which are not described in detail in the embodiment of the task balanced distribution device based on the electric power internet of things, may refer to the embodiment of the task balanced distribution method based on the electric power internet of things.
Example III
Fig. 7 is a schematic structural diagram of a task balancing and distributing device based on the electric power internet of things according to a third embodiment of the present invention. As shown in fig. 7, the apparatus includes: the allocation information acquisition module 310, the target task determination module 320, the target power device determination module 330, the target execution duration determination module 340, and the task allocation module 350.
The allocation information obtaining module 310 is configured to obtain a current task set to be allocated and a current power equipment cluster in the electric power internet of things; a target task determining module 320, configured to determine a target task to be allocated at the present time based on a task data amount of each task to be allocated in the current task set; a target power device determining module 330, configured to determine a target power device to be allocated at present, based on an available duration corresponding to each power device in the current power device cluster; the target execution duration determining module 340 is configured to determine a target execution duration required by the target power device to execute the target task based on a task execution rate corresponding to the target power device and a target task data amount corresponding to the target task; the task allocation module 350 is configured to allocate the target task to the target power device when detecting that the target available time period corresponding to the target power device is longer than or equal to the target execution time period.
According to the technical scheme, the current task set to be distributed and the current power equipment cluster in the electric power Internet of things are obtained; determining a target task to be distributed at present based on the task data amount of each task to be distributed in the current task set; determining a target power device to be distributed at the present time based on the available time length corresponding to each power device in the current power device cluster; determining a target execution duration required by the target power equipment to execute the target task based on the task execution rate corresponding to the target power equipment and the target task data volume corresponding to the target task; the target execution time length and the target available time length are utilized to distribute the target task; if the target available time length corresponding to the target power equipment is detected to be longer than or equal to the target execution time length, the target task with the largest current task data volume can be distributed to the target power equipment with the longest current available time length and is waited to be executed, the target task is distributed to the target power equipment at the time, and accordingly the target task with the largest current task data volume is distributed to the target power equipment with the longest current available time length each time until all tasks in the current task set are distributed, balanced distribution of tasks is achieved, task execution efficiency is improved, and resource waste is avoided.
Optionally, the target task determination module 320 may include:
the current task queue to be allocated determining submodule is used for determining a current task queue to be allocated by arranging the current task set in a descending order based on the task data quantity of each task to be allocated in the current task set;
and the target task determining submodule is used for determining the first task to be distributed in the current task to be distributed queue as the target task to be distributed at the current time.
Optionally, the target task determination module 330 may include:
the current equipment queue to be allocated determining submodule is used for determining the current equipment queue to be allocated by descending order of the current power equipment cluster based on the available time length corresponding to each power equipment in the current power equipment cluster;
and the target power equipment determining submodule is used for determining the first power equipment in the current equipment queue to be distributed as the target power equipment to be distributed at the current time.
Optionally, the apparatus further comprises:
and the undetermined task queue updating module is used for moving the target task from the current task set to the undetermined task queue if the detected available time length of the target corresponding to the target power equipment is smaller than the target task execution time length, updating the current task set and carrying out next task allocation based on the updated current task set.
Optionally, the apparatus further comprises:
the secondary task allocation module is used for moving each unassigned task in the undetermined task queue into the current task set if the fact that the task to be allocated does not exist in the current task set is detected, and carrying out secondary task allocation on the moved current task set;
and the re-task forced allocation module is used for allocating the unallocated task to the target power equipment to be allocated at the current moment if the unallocated task still exists in the pending task queue after the re-task allocation.
Optionally, the target task determining module 320 is specifically configured to: dividing a current task set based on task types corresponding to each task to be allocated in the current task set, and determining a current task subset corresponding to each task type; determining a target task type with the highest priority and a target task subset corresponding to the target task type based on priority information corresponding to each task type; based on the task data amount corresponding to each task to be allocated in the target task subset, the target task subset is arranged in a descending order, and a target task queue to be allocated is determined; and determining the first task to be allocated in the target task to be allocated queue as the target task to be allocated at the present time.
Optionally, the target task determining module 330 is specifically configured to: determining a target device type matched with the target task type; determining target power equipment corresponding to the target equipment type based on the equipment type corresponding to each power intelligent equipment in the current power equipment cluster; based on the available time length corresponding to the target power equipment, descending order of the target power equipment is arranged, and a target power equipment queue is determined; the first power device in the target power device queue is determined to be the target power device to be allocated at the present time.
The task balance distribution device based on the electric power Internet of things provided by the embodiment of the invention can execute the task balance distribution 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 balance distribution 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. 8 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. 8, 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 balanced distribution method.
In some embodiments, the power internet of things-based task balanced distribution 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 balanced distribution method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform the power internet of things-based task balancing distribution 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 balanced distribution method based on the electric power Internet of things is characterized by comprising the following steps of:
acquiring a current task set to be distributed and a current power equipment cluster in the power Internet of things;
determining a target task to be distributed at present based on the task data amount of each task to be distributed in the current task set;
determining a target power device to be distributed at the present time based on the available time length corresponding to each power device in the current power device cluster;
Determining a target execution duration required by the target power equipment to execute the target task based on the task execution rate corresponding to the target power equipment and the target task data volume corresponding to the target task;
and if the target available time length corresponding to the target power equipment is detected to be longer than or equal to the target execution time length, distributing the target task to the target power equipment.
2. The method of claim 1, wherein the determining the current target task to be allocated based on the task data amount of each task to be allocated in the current task set comprises:
based on the task data volume of each task to be allocated in the current task set, the current task set is arranged in a descending order, and a current task queue to be allocated is determined;
and determining the first task to be allocated in the current task queue to be a target task to be allocated at the present time.
3. The method of claim 1, wherein the determining the current target power device to be allocated based on the available time period corresponding to each power device in the current power device cluster comprises:
based on the available time length corresponding to each power device in the current power device cluster, the current power device clusters are arranged in a descending order, and a current device queue to be allocated is determined;
And determining the first power equipment in the current equipment to be allocated queue as the target power equipment to be allocated at the present time.
4. The method according to claim 1, wherein the method further comprises:
if the target available time length corresponding to the target power equipment is detected to be smaller than the target task execution time length, the target task is moved into a pending task queue from a current task set, the current task set is updated, and next task allocation is performed based on the updated current task set.
5. The method according to claim 4, wherein the method further comprises:
if the fact that the task to be allocated does not exist in the current task set is detected, each unallocated task in the pending task queue is moved into the current task set, and task allocation is conducted again on the moved current task set;
after the task is allocated again, if the fact that the unallocated task still exists in the pending task queue is detected, the unallocated task is allocated to the target power equipment to be allocated at the current moment.
6. The method of claim 1, wherein the determining the current target task to be allocated based on the task data amount of each task to be allocated in the current task set comprises:
Dividing a current task set based on task types corresponding to each task to be allocated in the current task set, and determining a current task subset corresponding to each task type;
determining a target task type with highest priority and a target task subset corresponding to the target task type based on priority information corresponding to each task type;
based on the task data volume corresponding to each task to be allocated in the target task subset, the target task subset is arranged in a descending order, and a target task queue to be allocated is determined;
and determining the first task to be allocated in the target task to be allocated queue as the target task to be allocated at the present time.
7. The method of claim 6, wherein the determining the current target power device to be allocated based on the available time period corresponding to each power device in the current power device cluster comprises:
determining a target equipment type matched with the target task type;
determining a target power device corresponding to the target device type based on the device type corresponding to each power intelligent device in the current power device cluster;
based on the available time length corresponding to the target power equipment, the target power equipment is arranged in a descending order, and a target power equipment queue is determined;
And determining the first power equipment in the target power equipment queue as the target power equipment to be allocated at the present time.
8. Task balance distribution device based on electric power thing networking, characterized by comprising:
the distribution information acquisition module is used for acquiring a current task set to be distributed and a current power equipment cluster in the electric power Internet of things;
the target task determining module is used for determining the target task to be distributed at present based on the task data volume of each task to be distributed in the current task set;
the target power equipment determining module is used for determining the target power equipment to be distributed at present based on the available time length corresponding to each power equipment in the current power equipment cluster;
the target execution duration determining module is used for determining target execution duration required by the target power equipment for executing the target task based on the task execution rate corresponding to the target power equipment and the target task data volume corresponding to the target task;
and the task allocation module is used for allocating the target task to the target power equipment at the current time if the target available time length corresponding to the target power equipment is detected to be longer than or equal to the target execution time length.
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 balanced 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 balancing distribution method of any one of claims 1-7 when executed.
CN202310399269.0A 2023-04-14 2023-04-14 Task balanced distribution method, device, equipment and medium based on electric power Internet of things Pending CN116361008A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310399269.0A CN116361008A (en) 2023-04-14 2023-04-14 Task balanced distribution method, device, equipment and medium based on electric power Internet of things

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310399269.0A CN116361008A (en) 2023-04-14 2023-04-14 Task balanced distribution method, device, equipment and medium based on electric power Internet of things

Publications (1)

Publication Number Publication Date
CN116361008A true CN116361008A (en) 2023-06-30

Family

ID=86908342

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310399269.0A Pending CN116361008A (en) 2023-04-14 2023-04-14 Task balanced distribution method, device, equipment and medium based on electric power Internet of things

Country Status (1)

Country Link
CN (1) CN116361008A (en)

Similar Documents

Publication Publication Date Title
CN112860974A (en) Computing resource scheduling method and device, electronic equipment and storage medium
CN115658311A (en) Resource scheduling method, device, equipment and medium
CN112860401A (en) Task scheduling method and device, electronic equipment and storage medium
CN115952054A (en) Simulation task resource management method, device, equipment and medium
CN116661960A (en) Batch task processing method, device, equipment and storage 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
CN113032092B (en) Distributed computing method, device and platform
CN115523043A (en) Method, device, equipment and medium for determining weighted operating point of engine
CN114862223A (en) Robot scheduling method, device, equipment and storage medium
CN116389499A (en) Task allocation method, device, equipment and medium based on electric power Internet of things
CN114598705B (en) Message load balancing method, device, equipment and medium
CN114461407B (en) Data processing method, data processing device, distribution server, data processing system, and storage medium
CN116048791B (en) Regulation and control method and device of test node, electronic equipment and storage medium
CN117667397A (en) GPU resource scheduling method and device, electronic equipment and storage medium
CN117076720B (en) Embedded table access method and device, electronic equipment and storage medium
CN116579914B (en) Execution method and device of graphic processor engine, electronic equipment and storage medium
CN112905351B (en) GPU and CPU load scheduling method, device, equipment and medium
CN116801001A (en) Video stream processing method and device, electronic equipment and storage medium
CN117472471A (en) Application program configuration method, device, equipment and storage medium
CN117992196A (en) Task scheduling method, device, equipment and medium for memory and calculation integrated chip
CN117312095A (en) Java virtual machine heap memory set object monitoring method and device
CN117519940A (en) Process scheduling method and device, electronic equipment and storage medium
CN117785465A (en) Resource scheduling method, device, equipment and storage medium
CN116240714A (en) Drying method, drying 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