Task processing method, device, electronic device and computer readable storage medium

By splitting the tasks to be processed in the computing system and assigning them to multiple slave devices for processing, combined with networking requests and RDMA technology, the problem of insufficient computing resources of electronic devices is solved, and resource utilization and the processing capabilities of the computing system are improved.

CN113687951BActive Publication Date: 2024-09-20RUIYUN QIZHI (CHONGQING) TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111020326.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-01
Publication Date
2024-09-20
Estimated Expiration
2041-09-01

AI Technical Summary

Technical Problem

In the existing technology, electronic devices have insufficient computing resources when processing tasks, resulting in reduced resource utilization, cannot effectively process tasks that require large computing power, and cannot fully utilize computing resources.

Method used

By introducing the communication connection between the master device and the slave device in the computing system, the tasks to be processed are split after being received, assigned to multiple slave devices for processing, and when necessary, a networking request is initiated to the newly connected device to expand Computing resources, using RDMA technology for fast communication.

Benefits of technology

It achieves successful processing of tasks that require large computing power, improves the resource utilization of each slave device, and handles more tasks by expanding the computing system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113687951B
    Figure CN113687951B
Patent Text Reader

Abstract

The present invention relates to a task processing method, device, electronic device and computer-readable storage medium, the method is applied to a master device in a computing system, the master device is connected to other slave devices included in the computing system, the method comprises: receiving a task to be processed; splitting the task to be processed according to the current computing resources of each slave device included in the computing system to obtain multiple subtasks; matching a corresponding slave device for each subtask, and sending the subtask to the corresponding slave device for processing. By this method, the utilization rate of resources can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of data processing, and specifically relates to a task processing method, device, electronic device and computer-readable storage medium. Background Art

[0002] In recent years, with the development of science and technology, artificial intelligence technology has come into people's sight. Among them, the vast majority of artificial intelligence products are based on deep learning algorithms, and most of the processing objects of deep learning algorithms are high-dimensional data such as pictures and videos. Therefore, the normal operation of deep learning algorithms has high requirements on the computing resources of electronic devices.

[0003] Based on the above premise, in the prior art, for an electronic device A that receives task A, if the computing resources required by task A exceed the computing resources currently remaining in the electronic device A, or if the computing resources required by task A exceed the total computing resources of the electronic device A, then the electronic device A cannot successfully process task A and can only transfer task A to another electronic device B with more computing resources for processing. After such operation, the computing resources of the electronic device A are not fully utilized, which reduces the utilization rate of resources. Summary of the invention

[0004] In view of this, the purpose of the present application is to provide a task processing method, device, electronic device and computer-readable storage medium, which can improve resource utilization.

[0005] The embodiment of the present application is implemented as follows:

[0006] In the first aspect, an embodiment of the present application provides a task processing method, which is applied to a master device in a computing system, wherein the master device is communicatively connected with other slave devices included in the computing system, and the method comprises: receiving a task to be processed; splitting the task to be processed according to the current computing resources of each slave device included in the computing system to obtain a plurality of subtasks; matching a corresponding slave device for each subtask, and sending the subtask to the corresponding slave device for processing. In the above process, the master device can successfully process the task to be processed that requires greater computing power by splitting the task to be processed and assigning the subtasks obtained by the splitting to different slave devices for processing. In addition, by slicing the computing resources of the slave devices, the resource utilization of each slave device can also be improved.

[0007] In combination with the embodiment of the first aspect, in a possible implementation manner, each of the tasks to be processed is stored as a corresponding designated slave device; before the tasks to be processed are split, it includes: determining that the current computing resources of the designated slave device corresponding to the tasks to be processed are insufficient to process the tasks to be processed.

[0008] In combination with the embodiment of the first aspect, in a possible implementation, before receiving the task to be processed, the method also includes: sending a computing resource pooling instruction to the slave device so that the slave device slices the computing resources included in itself according to a preset size; the current computing resources are slices in an idle state.

[0009] In combination with the first aspect embodiment, in a possible implementation, before receiving the task to be processed, the method further includes: when detecting that the newly connected electronic device meets the networking conditions, initiating a networking request and pre-saved first networking configuration information to the newly connected electronic device; receiving the second networking configuration information fed back by the newly connected electronic device according to the networking request; according to the first networking configuration information and the second networking configuration information, adding the newly connected electronic device to the computing system where the device is currently located; wherein the newly connected device is a new slave device. Under this implementation, the computing system can be quickly expanded, thereby increasing the total computing resources of the computing system, so that the computing system can process more tasks.

[0010] In combination with the embodiment of the first aspect, in a possible implementation manner, the networking condition is: the newly connected electronic device and the current device are in the same local area network; or, the local area network where the newly connected electronic device is located and the local area network where the current device is located can communicate with each other over the network.

[0011] In conjunction with the first aspect of the embodiment, in a possible implementation, the devices included in the computing system can communicate with each other based on RDMA. Among them, using RDMA technology for communication can enable electronic devices to quickly communicate with each other without the involvement of the CPU, which is conducive to reducing communication losses.

[0012] In combination with the embodiment of the first aspect, in a possible implementation manner, the task to be processed is any one of a model training task, a model prediction task, and a model online service.

[0013] In a second aspect, an embodiment of the present application provides a task processing device, which is applied to a master device in a computing system, wherein the master device is communicatively connected with other slave devices included in the computing system, and the device includes: a receiving module, a splitting module, and a sending module.

[0014] A receiving module, used for receiving tasks to be processed;

[0015] A splitting module, used for splitting the task to be processed according to the current computing resources of each slave device included in the computing system to obtain multiple subtasks;

[0016] The sending module is used to match a corresponding slave device for each subtask and send the subtask to the corresponding slave device for processing.

[0017] In combination with the second aspect embodiment, in a possible implementation, each of the tasks to be processed is stored as a corresponding designated slave device; the device also includes a determination module, which is used to determine that the current computing resources of the designated slave device corresponding to the task to be processed are insufficient to process the task to be processed.

[0018] In combination with the second aspect embodiment, in a possible implementation, the device also includes a pooling module, which is used to: send a computing resource pooling instruction to the slave device so that the slave device slices the computing resources included in itself according to a preset size; the current computing resource is a slice in an idle state.

[0019] In combination with the second aspect embodiment, in a possible implementation, the device also includes a networking module, which is used to: when it is detected that a newly connected electronic device meets the networking conditions, initiate a networking request and a pre-saved first networking configuration information to the newly connected electronic device; receive the second networking configuration information fed back by the newly connected electronic device based on the networking request; and add the newly connected electronic device to the computing system where the device is currently located based on the first networking configuration information and the second networking configuration information; wherein the newly connected device is a new slave device.

[0020] In combination with the second aspect embodiment, in a possible implementation manner, the networking condition is: the newly connected electronic device and the current device are in the same local area network; or, the local area network where the newly connected electronic device is located and the local area network where the current device is located can communicate with each other over the network.

[0021] In combination with the embodiment of the second aspect, in a possible implementation manner, the various devices included in the computing system can communicate with each other based on RDMA.

[0022] In combination with the embodiment of the second aspect, in a possible implementation manner, the task to be processed is any one of a model training task, a model prediction task, and a model online service.

[0023] In a third aspect, an embodiment of the present application further provides an electronic device, comprising: a memory and a processor, wherein the memory and the processor are connected; the memory is used to store programs; the processor calls the program stored in the memory to execute the method provided in the above-mentioned first aspect embodiment and / or any possible implementation method in combination with the first aspect embodiment.

[0024] In a fourth aspect, an embodiment of the present application further provides a non-volatile computer-readable storage medium (hereinafter referred to as computer-readable storage medium), on which a computer program is stored. When the computer program is run by a computer, it executes the method provided by the above-mentioned first aspect embodiment and / or any possible implementation method combined with the first aspect embodiment.

[0025] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or understood by implementing the embodiments of the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description and the drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can also be obtained based on these drawings without creative work. As shown in the drawings, the above and other purposes, features and advantages of the present application will be clearer. The same reference numerals indicate the same parts in all the drawings. The drawings are not deliberately scaled to the actual size, and the focus is on showing the main purpose of the present application.

[0027] Figure 1 A flowchart of a task processing method provided in an embodiment of the present application is shown.

[0028] Figure 2 A structural block diagram of a task processing device provided in an embodiment of the present application is shown.

[0029] Figure 3 A schematic structural diagram of an electronic device provided in an embodiment of the present application is shown.

[0030] Icon: 100 - electronic device; 110 - processor; 120 - memory; 400 - task processing device; 410 - receiving module; 420 - splitting module; 430 - sending module. DETAILED DESCRIPTION

[0031] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.

[0032] It should be noted that similar numbers and letters represent similar items in the following figures, so once an item is defined in one figure, it does not need to be further defined and explained in the subsequent figures. At the same time, in the description of this application, relational terms such as "first", "second", etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. Moreover, the term "comprise" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or equipment including a series of elements includes not only those elements, but also includes other elements that are not clearly listed, or also includes elements inherent to such process, method, article or equipment. In the absence of more restrictions, the elements defined by the statement "comprise one..." do not exclude the existence of other identical elements in the process, method, article or equipment including the elements.

[0033] Furthermore, the term "and / or" in this application is merely a term used to describe the association relationship between associated objects, indicating that three relationships may exist. For example, A and / or B may represent three situations: A exists alone, A and B exist at the same time, and B exists alone.

[0034] In addition, the defects existing in the task processing scheme in the prior art (reducing the resource utilization of the equipment) are the results obtained by the applicant after practice and careful research. Therefore, the process of discovering the above defects and the solutions proposed in the embodiments of this application for the above defects below should be recognized as the applicant's contribution to this application.

[0035] In order to solve the above problems, the embodiments of the present application provide a task processing method, device, electronic device and computer-readable storage medium, which can improve the utilization rate of resources of the electronic device.

[0036] The technology can be implemented by using corresponding software, hardware or a combination of software and hardware. The following is a detailed introduction to the embodiments of the present application.

[0037] The following is an introduction to the task processing method provided by this application.

[0038] An embodiment of the present application provides a task processing method, which is applied to a master device in a computing system, wherein the master device is communicatively connected with other slave devices included in the computing system.

[0039] It is worth pointing out that when a computing system is formed, a master device needs to be elected through an election system. After the identity of the master device is determined, the identities of the remaining devices are slave devices.

[0040] Among them, the electoral system is a relatively common existing technology and will not be elaborated here.

[0041] The following will be combined Figure 1 Describe the steps involved.

[0042] Step S110: receiving a task to be processed.

[0043] In the embodiment of the present application, the master device receives the tasks to be processed before other slave devices.

[0044] Of course, in some implementations, other slave devices may also obtain the pending task before the master device. In this case, the slave device needs to synchronize the pending task to the master device first, so that after the master device receives the pending task, it can determine the strategy for processing the pending task according to the current computing resources.

[0045] Among them, it is worth pointing out that the tasks to be processed involved in the embodiments of the present application can be tasks for training a neural network model, tasks for running a neural network model, or any of the tasks in a model prediction task or a model online service.

[0046] Step S120: split the task to be processed according to the current computing resources of each slave device included in the computing system to obtain multiple subtasks.

[0047] Step S130: Match a corresponding slave device for each of the subtasks, and send the subtask to the corresponding slave device for processing.

[0048] In an optional implementation, after acquiring the task to be processed, the master device may directly split it into multiple subtasks.

[0049] In another optional implementation, after acquiring the pending task, the master device can synchronously acquire the task information corresponding to the pending task, including the designated slave device corresponding to the pending task, which indicates that the pending task needs to be processed by the corresponding designated slave device first.

[0050] Under this implementation mode, before splitting the task to be processed, the master device also needs to obtain the current computing resources of the designated slave device corresponding to the task to be processed, and determine whether the current computing resources of the corresponding designated slave device are greater than the computing resources required for the task to be processed, that is, determine whether the current computing resources of the corresponding designated slave device are sufficient to process the task to be processed.

[0051] Among them, when the master device determines that the current computing resources of the corresponding designated slave device are insufficient to process the pending task, the pending task will be split; otherwise, the master device can directly assign the pending task to the corresponding designated slave device for processing.

[0052] As for the process of splitting the tasks to be processed by the master device, the following methods can be adopted.

[0053] Before the master device receives the task to be processed, the master device may send a computing resource pooling instruction to the slave device, so that each slave device divides its own computing resources into slices according to a preset size. The computing resources included in a slice are unit resources.

[0054] In addition, the task information of each task to be processed may also include the total computing resources required by the task to be processed when it is running.

[0055] After obtaining the total computing resources required for the task to be processed, the master device can divide the total computing resources by the unit resources (i.e., the shards mentioned above) to determine how many shards are required for the task to be processed. In addition, the master device obtains the current computing resources of each slave device, which are the shards in the idle state.

[0056] After the master device determines the number of shards required for the task to be processed and the number of shards currently in idle state of each slave device, if the master device detects that there is no corresponding designated slave device for the task to be processed, it can randomly select M (M is an integer greater than 1) target slave devices from each slave device to ensure that the number of shards in idle state included in these M target slave devices is greater than the number of shards required for the task to be processed. Subsequently, the master device splits the task to be processed into M subtasks and matches these M subtasks with these M target slave devices one by one.

[0057] The number of idle slices included in the target slave device is greater than or equal to the number of slices required by the matching subtask.

[0058] Of course, it should be pointed out that there is no correlation between the number of shards required for each subtask that is split out.

[0059] Optionally, when screening target slave devices, the master device may preferentially determine slave devices with a smaller number of idle shards as target slave devices, so as to make full use of fragmented shard resources.

[0060] In another optional implementation, if the master device detects that there is a corresponding designated slave device for the task to be processed, the master device first determines whether the number of idle shards currently included in the corresponding designated slave device is greater than the number of shards required for the task to be processed. If so, the master device will not split the task to be processed. If not, the master device will split the task to be processed according to the above splitting process.

[0061] After splitting the task to be processed, the master device sends each subtask to the matching slave device for processing.

[0062] The following is an example to illustrate the above process:

[0063] Assume that there are 10 slave devices, and each slave device has 10 shards. Assume that the currently acquired pending task requires 12 shards. According to the prior art, none of the 10 slave devices can process the pending task. In an embodiment of the present application, the pending task can be split into multiple subtasks, for example, into 2 subtasks, where subtask 1 requires 4 shards and subtask 2 requires 6 shards. Then the master device can successfully process the pending task by assigning subtask 1 and subtask 2 to different slave devices for processing.

[0064] In the above process, the master device can successfully process the tasks that require greater computing power by splitting the tasks to be processed and assigning the subtasks obtained by the splitting to different slave devices for processing. In addition, by slicing the computing resources of the slave devices, the resource utilization of each slave device can also be improved.

[0065] In addition, it is worth pointing out that in some implementations, the computing system including the master device and the slave device may be expanded to increase the total computing resources of the computing system so that the computing system can process more tasks.

[0066] Specifically, when the master device detects that the newly connected electronic device meets the networking condition, it may initiate a networking request and pre-saved first networking configuration information to the newly connected electronic device.

[0067] The first network configuration information is pre-saved in the main device by the background staff.

[0068] After receiving the networking request, the newly connected electronic device may feed back the second networking configuration information stored in itself to the main device based on the networking request.

[0069] At this point, the main device and the newly connected electronic device have obtained each other's networking configuration information.

[0070] Subsequently, the master device adds the newly connected electronic device to the computing system where the device is currently located according to the first networking configuration information and the second networking configuration information; wherein the newly connected device becomes a new slave device.

[0071] In some optional implementations, the above networking conditions may be: the newly connected electronic device and the current device are in the same local area network; or, the local area network where the newly connected electronic device is located and the local area network where the current device is located can communicate with each other.

[0072] In addition, in some embodiments, the devices (including master devices and slave devices) included in the computing system can communicate based on RDMA (Remote Direct Memory Access). In this embodiment, electronic devices can quickly communicate with each other without the involvement of the CPU, which is conducive to reducing communication losses.

[0073] like Figure 2 As shown, an embodiment of the present application also provides a task processing device 400, which is applied to a master device in a computing system, and the master device is communicatively connected with other slave devices included in the computing system. The task processing device 400 may include: a receiving module 410, a splitting module 420, and a sending module 430.

[0074] A receiving module 410 is used to receive a task to be processed;

[0075] A splitting module 420 is used to split the task to be processed according to the current computing resources of each slave device included in the computing system to obtain multiple subtasks;

[0076] The sending module 430 is used to match a corresponding slave device for each of the subtasks and send the subtasks to the corresponding slave devices for processing.

[0077] In a possible implementation, each of the tasks to be processed is stored as a corresponding designated slave device; the apparatus further includes a determination module for determining that the current computing resources of the designated slave device corresponding to the task to be processed are insufficient to process the task to be processed.

[0078] In a possible implementation, the apparatus further includes a pooling module for sending a computing resource pooling instruction to the slave device so that the slave device slices the computing resources included therein according to a preset size; the current computing resources are slices in an idle state.

[0079] In a possible implementation, the device also includes a networking module, which is used to: when it is detected that a newly connected electronic device meets the networking conditions, initiate a networking request and pre-saved first networking configuration information to the newly connected electronic device; receive second networking configuration information fed back by the newly connected electronic device based on the networking request; and add the newly connected electronic device to the computing system where the device is currently located based on the first networking configuration information and the second networking configuration information; wherein the newly connected device is a new slave device.

[0080] In a possible implementation, the networking condition is: the newly connected electronic device and the current device are in the same local area network; or, the local area network where the newly connected electronic device is located and the local area network where the current device is located can communicate with each other.

[0081] In a possible implementation, various devices included in the computing system may communicate with each other based on RDMA.

[0082] In a possible implementation, the task to be processed is any one of a model training task, a model prediction task, and a model online service.

[0083] The task processing device 400 provided in the embodiment of the present application has the same implementation principle and technical effects as those of the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the device embodiment, reference may be made to the corresponding contents in the aforementioned method embodiment.

[0084] In addition, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a computer, the steps included in the task processing method described above are executed.

[0085] In addition, please refer to Figure 3 The electronic device 100 used to implement the task processing method and device of the embodiment of the present application is described.

[0086] Optionally, the electronic device 100 may be, but not limited to, a personal computer (PC), a smart phone, a tablet computer, a mobile Internet device (MID), a personal digital assistant, a server, or other hardware devices. The server may be, but not limited to, a network server, a database server, a cloud server, or the like.

[0087] The electronic device 100 may include: a processor 110 and a memory 120 .

[0088] It should be noted that Figure 3The components and structures of the electronic device 100 shown are merely exemplary and non-limiting. The electronic device 100 may also have other components and structures as required.

[0089] The processor 110, the memory 120, and other components that may appear in the electronic device 100 are directly or indirectly electrically connected to each other to achieve data transmission or interaction. For example, the processor 110, the memory 120, and other components that may appear may be electrically connected to each other via one or more communication buses or signal lines.

[0090] The memory 120 is used to store programs, for example, a program corresponding to the task processing method mentioned above or a task processing device mentioned above. Optionally, when the task processing device is stored in the memory 120, the task processing device includes at least one software function module that can be stored in the memory 120 in the form of software or firmware.

[0091] Optionally, the software function modules included in the task processing device may also be embedded in the operating system (OS) of the electronic device 100 .

[0092] The processor 110 is used to execute executable modules stored in the memory 120, such as software function modules or computer programs included in the task processing device. After receiving the execution instruction, the processor 110 can execute the computer program, for example, to perform: receiving a task to be processed; splitting the task to be processed according to the current computing resources of each slave device included in the computing system to obtain multiple subtasks; matching a corresponding slave device for each subtask, and sending the subtask to the corresponding slave device for processing.

[0093] Of course, the method disclosed in any embodiment of the present application can be applied to the processor 110 or implemented by the processor 110.

[0094] In summary, the task processing method, device, electronic device and computer-readable storage medium proposed in the embodiments of the present invention are applied to a master device in a computing system, and the master device is communicatively connected with other slave devices included in the computing system. The method includes: receiving a task to be processed; splitting the task to be processed according to the current computing resources of each slave device included in the computing system to obtain multiple subtasks; matching a corresponding slave device for each subtask, and sending the subtask to the corresponding slave device for processing. In the above process, the master device can successfully process the task to be processed that requires greater computing power by splitting the task to be processed and assigning the subtasks obtained by the splitting to different slave devices for processing. In addition, by slicing the computing resources of the slave devices, the resource utilization of each slave device can also be improved.

[0095] It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0096] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0097] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.

[0098] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a laptop, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0099] The above description is only a specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.

Claims

1. A task processing method, characterized in that: A master device applied to a computing system, the master device being communicatively connected with other slave devices included in the computing system, the method comprising: Sending a computing resource pooling instruction to the slave device so that the slave device slices the computing resources included in itself according to a preset size; wherein the master device obtains the current computing resources of each slave device, and the current computing resources are slices in an idle state; the computing resources included in a slice are unit resources; A task to be processed is received; the task information of the task to be processed includes the total computing resources required by the task to be processed when it is running; Determine that the current computing resources of the designated slave device corresponding to the task to be processed are insufficient to process the task to be processed; wherein each task to be processed has a corresponding designated slave device; According to the current computing resources of each slave device included in the computing system, the task to be processed is split to obtain a plurality of subtasks; Matching a corresponding slave device for each of the subtasks, and sending the subtasks to the corresponding slave devices for processing; According to the current computing resources of each slave device included in the computing system, the task to be processed is split to obtain multiple subtasks including: Divide the total computing resources by the unit resources to determine the number of shards required for the task to be processed; If there is no corresponding designated slave device for the task to be processed, M target slave devices are randomly selected from the slave devices to ensure that the number of idle shards included in the M target slave devices is greater than the number of shards required by the task to be processed; M is an integer greater than 1; Split the pending task into M subtasks; Accordingly, matching a corresponding slave device for each of the subtasks includes: Matching the M subtasks with the M target slave devices one by one; wherein the number of idle shards included in the target slave device is greater than or equal to the number of shards required by the subtask matched therewith; wherein, in the case of screening the target slave devices, a slave device including a smaller number of idle shards is preferentially determined as the target slave device; The method further comprises: When it is detected that a newly connected electronic device meets the networking conditions, a networking request and pre-saved first networking configuration information are initiated to the newly connected electronic device; wherein the first networking configuration information is pre-saved in the main device by the background staff; Receiving second networking configuration information fed back by the newly connected electronic device according to the networking request; According to the first networking configuration information and the second networking configuration information, adding the newly connected electronic device to the computing system where the device is currently located; The newly connected electronic device is a new slave device.

2. The method according to claim 1, characterized in that The networking condition is: the newly connected electronic device and the current device are in the same local area network; or, the local area network where the newly connected electronic device is located and the local area network where the current device is located can communicate with each other.

3. The method according to any one of claims 1 to 2, characterized in that: The various devices included in the computing system communicate with each other based on RDMA.

4. The method according to any one of claims 1 to 2, characterized in that The task to be processed is any one of a model training task, a model prediction task, and a model online service.

5. A task processing device, characterized in that: A master device applied to a computing system, the master device being communicatively connected with other slave devices included in the computing system, the apparatus comprising: A pooling module is used to send a computing resource pooling instruction to the slave device, so that the slave device slices the computing resources included in itself according to a preset size; wherein the master device obtains the current computing resources of each slave device, and the current computing resources are slices in an idle state; the computing resources included in a slice are unit resources; A receiving module, used for receiving a task to be processed; the task information of the task to be processed includes the total computing resources required by the task to be processed when it is running; A determination module, used to determine that the current computing resources of the designated slave device corresponding to the task to be processed are insufficient to process the task to be processed; wherein each of the tasks to be processed has a corresponding designated slave device; A splitting module, used for splitting the task to be processed according to the current computing resources of each slave device included in the computing system to obtain multiple subtasks; A sending module, used for matching a corresponding slave device for each subtask, and sending the subtask to the corresponding slave device for processing; The splitting module is specifically used to divide the total computing resources by the unit resources to determine the number of shards required for the task to be processed; if there is no corresponding designated slave device for the task to be processed, randomly select M target slave devices from each slave device to ensure that the number of idle shards included in the M target slave devices is greater than the number of shards required for the task to be processed; M is an integer greater than 1; split the task to be processed into M subtasks; The sending module is specifically used to match the M subtasks with the M target slave devices one by one; wherein the number of slices in an idle state included in the target slave device is greater than or equal to the number of slices required by the subtask matched therewith; wherein, in the case of screening the target slave device, a slave device including a smaller number of slices in an idle state is preferentially determined as the target slave device; A networking module, used to initiate a networking request and pre-saved first networking configuration information to a newly connected electronic device when it is detected that the newly connected electronic device meets the networking conditions; wherein the first networking configuration information is pre-saved in a master device by a background staff; receive the second networking configuration information fed back by the newly connected electronic device according to the networking request; and add the newly connected electronic device to the computing system where the device is currently located according to the first networking configuration information and the second networking configuration information; wherein the newly connected electronic device is a new slave device.

6. An electronic device, characterized in that: include: A memory and a processor, wherein the memory and the processor are connected; The memory is used to store programs; The processor calls the program stored in the memory to execute the method according to any one of claims 1 to 4.

7. A computer-readable storage medium, characterized in that:A computer program is stored thereon, and when the computer program is executed by a computer, the method according to any one of claims 1 to 4 is executed.