A distributed cloud task allocation method, device, equipment and storage medium

By evaluating and screening cloud nodes in the Internet of Vehicles distributed system, combining multiple attributes and preset weights to dynamically adjust resources, the problem of low task processing efficiency in the existing technology is solved, and efficient and low-latency task processing is achieved. .

CN118250282BActive Publication Date: 2024-09-13CHINA UNICOM SMART CONNECTION TECH LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410650471.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-23
Publication Date
2024-09-13
Estimated Expiration
2044-05-23

AI Technical Summary

Technical Problem

In the distributed system management of the Internet of Vehicles, the existing technology only considers the cloud load capacity and fails to fully consider other factors, resulting in low task processing efficiency.

Method used

By evaluating the current task processing capabilities of each cloud to be allocated, combined with the attributes and preset weights of multiple cloud nodes, the edge cloud nodes with the highest task allocation priority are selected for task allocation, and resources are dynamically adjusted during high loads to Ensure task completion time is minimal.

Benefits of technology

It improves task processing efficiency and ensures low latency and efficient completion of tasks under high load conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118250282B
    Figure CN118250282B
Patent Text Reader

Abstract

The present application discloses a distributed cloud task allocation method, device, equipment and storage medium for improving the efficiency of task processing. The present application obtains a target cloud based on the current task processing capability of each cloud to be allocated; for multiple cloud nodes in the target cloud, based on the attribute values ​​of at least two attributes of the cloud node and the preset weights of at least two attributes, the task allocation priorities of multiple cloud nodes are obtained; the attributes are used to characterize the ability of the cloud node to process tasks and the types of the ability of the cloud node to process tasks represented by different attributes are different; the task to be allocated is allocated to the first cloud node; the first cloud node is the cloud node with the highest task allocation priority among the multiple cloud nodes. In the present application, layer-by-layer screening is performed according to the framework of the cloud, and the edge cloud node with the highest task allocation priority is screened out to process the task to be allocated, thereby improving the efficiency of processing tasks.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of distributed cloud technology, and in particular to a distributed cloud task allocation method, device, equipment and storage medium. Background Art

[0002] The Internet of Vehicles is an intelligent transportation system that connects multiple participants such as vehicles, roads, traffic management agencies and users to achieve information sharing and communication. The main reasons for the need for distributed computing resources in the field of Internet of Vehicles include real-time data processing needs, wide geographical distribution, large-scale system scalability, and data privacy and security. Distributed Internet of Vehicles Cloud improves computing efficiency and response speed by distributing data processing and storage to multiple locations (i.e., central cloud, regional cloud), especially in application scenarios that require fast response, such as autonomous driving and intelligent transportation systems. Distributed architecture can reduce the load of central cloud and regional cloud, provide lower latency and more stable business communication support, thereby improving user experience.

[0003] In the related technology, in the distributed system management of the Internet of Vehicles, when allocating tasks, only the load capacity of each cloud in the distributed system management of the Internet of Vehicles is considered, and other factors are not considered. Since there are many factors that affect the task processing efficiency, the method of scheduling tasks only according to load capacity will result in low task processing efficiency. Summary of the invention

[0004] In view of this, the present application provides a distributed cloud task allocation method, apparatus, device and storage medium to improve the efficiency of task processing.

[0005] In a first aspect, an embodiment of the present application provides a distributed cloud task allocation method, the method comprising:

[0006] A target cloud is obtained based on the current task processing capability of each cloud to be allocated; the current task processing capability is the task processing capability of the cloud to be allocated that can also process other tasks based on its own current load, and the current task processing capability of the target cloud is greater than a preset value;

[0007] For multiple cloud nodes in the target cloud, task allocation priorities of the multiple cloud nodes are obtained based on attribute values ​​of at least two attributes of the cloud nodes and preset weights of the at least two attributes; the attributes are used to characterize the ability of the cloud nodes to process tasks, and different attributes characterize different types of the ability of the cloud nodes to process tasks;

[0008] Allocate the task to be allocated to the first cloud node; the first cloud node is the cloud node with the highest task allocation priority among the multiple cloud nodes.

[0009] In the present application, layer-by-layer screening is performed according to the cloud framework to select edge cloud nodes with the highest task allocation priority to process the tasks to be assigned, thereby improving the efficiency of task processing.

[0010] In some possible embodiments, the method further includes:

[0011] For each cloud to be allocated, the current task processing capability of the cloud to be allocated is obtained based on the current load of the cloud to be allocated and the priority of processing delay-sensitive tasks.

[0012] In this application, the impact of the current load and the priority of processing delay-sensitive tasks on the task processing efficiency is comprehensively considered, which can ensure that the current task processing capacity of the cloud to be allocated can better represent the capacity of the processing tasks to be allocated.

[0013] In some possible embodiments, obtaining the current task processing capacity of the cloud to be allocated based on the current load of the cloud to be allocated and the priority of processing delay-sensitive tasks includes:

[0014] Based on the current load and maximum computing power of the cloud to be allocated, obtaining the remaining computing power of the cloud to be allocated;

[0015] Based on the priority of the latency-sensitive tasks processed by the cloud to be allocated and the remaining computing power, the current task processing capacity of the cloud to be allocated is obtained.

[0016] In the design of the distributed vehicle-connected cloud architecture, it is necessary to consider the priority of the latency-sensitive tasks processed by the to-be-allocated cloud. Therefore, in this application, the current task processing capacity of each to-be-allocated cloud is determined based on the current load of each to-be-allocated cloud and the priority of processing latency-sensitive tasks, thereby ensuring the rationality of the current task processing capacity of each to-be-allocated cloud.

[0017] In some possible embodiments, before obtaining the task allocation priorities of the multiple cloud nodes in the target cloud based on the attribute values ​​of at least two attributes of the cloud nodes and the preset weights of the at least two attributes, the method further includes:

[0018] Filtering using a preset cloud node filtering model based on attribute values ​​of at least two attributes of each cloud node of the target cloud to obtain a plurality of second cloud nodes;

[0019] The step of obtaining, for a plurality of cloud nodes in the target cloud, task allocation priorities of the plurality of cloud nodes based on attribute values ​​of at least two attributes of the cloud nodes and preset weights of the at least two attributes, comprises:

[0020] For each second cloud node in the target cloud, based on attribute values ​​of at least two attributes of the second cloud node and preset weights of the at least two attributes, a task allocation priority of each second cloud node is obtained.

[0021] According to the cloud architecture, there are multiple cloud nodes distributed under a cloud to be allocated. In order to select a cloud node that can meet the needs, this application needs to measure multiple attributes of each cloud node.

[0022] In some possible embodiments, the at least two attributes include a location attribute, a latency attribute, a collaboration attribute, an available computing resource attribute, an acceleration attribute, and a mirror cache attribute;

[0023] The cloud node filter model includes: a location filtering model, a delay filtering model, a collaborative filtering model, an available computing resource filtering model, an acceleration filtering model, and a mirror cache filtering model, wherein:

[0024] The location filtering model is used to filter out cloud nodes whose attribute values ​​of location attributes are within a preset range of a terminal device; the terminal device is a device that issues the task to be assigned;

[0025] The delay filtering model is used to filter out cloud nodes whose attribute values ​​of delay attributes meet preset delay conditions;

[0026] The collaborative filtering model is used to filter out cloud nodes whose attribute values ​​of collaborative attributes meet preset collaborative conditions;

[0027] The available computing resource filtering model is used to filter out cloud nodes whose attribute values ​​of available computing resource attributes meet preset available computing resource conditions;

[0028] The acceleration filtering model is used to filter out cloud nodes whose attribute values ​​of acceleration attributes meet preset acceleration conditions;

[0029] The image cache filtering model is used to filter out cloud nodes whose attribute values ​​of image cache attributes meet preset image cache conditions.

[0030] According to the cloud architecture, there are multiple cloud nodes distributed under a cloud to be allocated. In order to select cloud nodes that can meet the needs, multiple cloud node filter models are set in this application.

[0031] In some possible embodiments,

[0032] When there are multiple tasks to be assigned, assigning the tasks to be assigned to the first cloud node includes:

[0033] For each task to be assigned, based on the predicted completion time of the task to be assigned on each server group in the first cloud node, a minimum predicted completion time is used as a target time corresponding to the task to be assigned; the server group includes at least one server;

[0034] Sorting each task to be assigned according to the target time corresponding to each task to obtain a task assignment sequence;

[0035] According to the order of each task to be assigned in the task assignment sequence, assigning each task to be assigned to a corresponding target server group based on the first process;

[0036] The first process includes:

[0037] At least one server group corresponding to the target time of the task to be assigned is used as an optional server group;

[0038] The target server group corresponding to the task to be assigned is determined based on the remaining load of the optional server group, and the task to be assigned is assigned to the corresponding target server group.

[0039] In this application, in order to ensure the accuracy of environmental data required for dynamic resource scheduling, it is necessary to monitor resource status in real time. In order to ensure low latency even under high load, resources need to be adjusted dynamically. In order to ensure that all tasks are completed in the shortest time and consume the least resources, after determining the first cloud node, it is necessary to assign the acquired tasks to be assigned to the server group in the first cloud node. The above method ensures that all tasks are completed in the shortest time.

[0040] In some possible embodiments,

[0041] The determining of the target server group corresponding to the task to be assigned based on the remaining load of the optional server group comprises:

[0042] If the remaining load of the optional server group meets the load required by the task to be assigned, the server group is determined as the target server group corresponding to the task to be assigned;

[0043] If the remaining load of the optional server group does not meet the load required by the task to be assigned, determine an intermediate server group whose remaining load meets the load required by the task to be assigned from other server groups; wherein the other server group is other server groups in the server groups included in the first cloud node except the optional server group;

[0044] According to the predicted completion time of the task to be assigned on each intermediate server, a target server group corresponding to the task to be assigned is determined in the intermediate server.

[0045] In the present application, this method ensures that the load of each server does not exceed its own maximum load.

[0046] In a second aspect, an embodiment of the present application provides a task allocation device, the device comprising:

[0047] A target cloud determination module is used to obtain a target cloud based on the current task processing capability of each cloud to be allocated; the current task processing capability is the task processing capability of the cloud to be allocated that can also process other tasks based on its own current load, and the current task processing capability of the target cloud is greater than a preset value;

[0048] A priority determination module is used to obtain, for a plurality of cloud nodes in the target cloud, the task allocation priorities of the plurality of cloud nodes based on the attribute values ​​of at least two attributes of the cloud nodes and the preset weights of the at least two attributes; the attributes are used to represent the ability of the cloud nodes to process tasks and different attributes represent different types of the ability of the cloud nodes to process tasks;

[0049] The allocation module is used to allocate the task to be allocated to the first cloud node; the first cloud node is the cloud node with the highest task allocation priority among the multiple cloud nodes.

[0050] In some possible embodiments, the target cloud determination module is further used to:

[0051] For each cloud to be allocated, the current task processing capability of the cloud to be allocated is obtained based on the current load of the cloud to be allocated and the priority of processing delay-sensitive tasks.

[0052] In some possible embodiments, the target cloud determination module is specifically used to:

[0053] Based on the current load and maximum computing power of the cloud to be allocated, obtaining the remaining computing power of the cloud to be allocated;

[0054] Based on the priority of the latency-sensitive tasks processed by the cloud to be allocated and the remaining computing power, the current task processing capacity of the cloud to be allocated is obtained.

[0055] In some possible embodiments, the allocation module is further used to: filter based on the attribute values ​​of at least two attributes of each cloud node of the target cloud using a preset cloud node filtering model to obtain a plurality of second cloud nodes;

[0056] The step of obtaining, for a plurality of cloud nodes in the target cloud, task allocation priorities of the plurality of cloud nodes based on attribute values ​​of at least two attributes of the cloud nodes and preset weights of the at least two attributes, comprises:

[0057] For each second cloud node in the target cloud, based on attribute values ​​of at least two attributes of the second cloud node and preset weights of the at least two attributes, a task allocation priority of each second cloud node is obtained.

[0058] In some possible embodiments, the at least two attributes include a location attribute, a latency attribute, a collaboration attribute, an available computing resource attribute, an acceleration attribute, and a mirror cache attribute;

[0059] The cloud node filter model includes: a location filtering model, a delay filtering model, a collaborative filtering model, an available computing resource filtering model, an acceleration filtering model, and a mirror cache filtering model, wherein:

[0060] The location filtering model is used to filter out cloud nodes whose attribute values ​​of location attributes are within a preset range of a terminal device; the terminal device is a device that issues the task to be assigned;

[0061] The delay filtering model is used to filter out cloud nodes whose attribute values ​​of delay attributes meet preset delay conditions;

[0062] The collaborative filtering model is used to filter out cloud nodes whose attribute values ​​of collaborative attributes meet preset collaborative conditions;

[0063] The available computing resource filtering model is used to filter out cloud nodes whose attribute values ​​of available computing resource attributes meet preset available computing resource conditions;

[0064] The acceleration filtering model is used to filter out cloud nodes whose attribute values ​​of acceleration attributes meet preset acceleration conditions;

[0065] The image cache filtering model is used to filter out cloud nodes whose attribute values ​​of image cache attributes meet preset image cache conditions.

[0066] In some possible embodiments, when there are multiple tasks to be assigned, the assignment module is specifically used to:

[0067] For each task to be assigned, based on the predicted completion time of the task to be assigned on each server group in the first cloud node, a minimum predicted completion time is used as a target time corresponding to the task to be assigned; the server group includes at least one server;

[0068] Sorting each task to be assigned according to the target time corresponding to each task to obtain a task assignment sequence;

[0069] According to the order of each task to be assigned in the task assignment sequence, assigning each task to be assigned to a corresponding target server group based on the first process;

[0070] The first process includes:

[0071] At least one server group corresponding to the target time of the task to be assigned is used as an optional server group;

[0072] The target server group corresponding to the task to be assigned is determined based on the remaining load of the optional server group, and the task to be assigned is assigned to the corresponding target server group.

[0073] In some possible embodiments, the allocation module is specifically used to:

[0074] If the remaining load of the optional server group meets the load required by the task to be assigned, the server group is determined as the target server group corresponding to the task to be assigned;

[0075] If the remaining load of the optional server group does not meet the load required by the task to be assigned, determine an intermediate server group whose remaining load meets the load required by the task to be assigned from other server groups; wherein the other server group is other server groups in the server groups included in the first cloud node except the optional server group;

[0076] According to the predicted completion time of the task to be assigned on each intermediate server, a target server group corresponding to the task to be assigned is determined in the intermediate server.

[0077] In the third aspect, another embodiment of the present application also provides an electronic device, comprising at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute any method provided in the embodiment of the first aspect of the present application.

[0078] In a fourth aspect, another embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program is used to enable a computer to execute any method provided in the embodiment of the first aspect of the present application.

[0079] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by practicing 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, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0080] In order to more clearly illustrate the technical solutions of the embodiments of the present application, 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 be obtained based on these drawings without paying creative labor.

[0081] Figure 1 A schematic diagram of an application scenario of a distributed cloud task allocation method provided in an embodiment of the present application;

[0082] Figure 2 A flowchart of a distributed cloud task allocation method provided in an embodiment of the present application;

[0083] Figure 3 A schematic diagram of a process for determining the task allocation priority of a cloud node in a distributed cloud task allocation method provided in an embodiment of the present application;

[0084] Figure 4 A schematic diagram of a process of allocating acquired tasks to be allocated to servers in cloud nodes in a distributed cloud task allocation method provided in an embodiment of the present application;

[0085] Figure 5 A schematic diagram of the completion time and resource requirements of each task to be assigned on each server in a distributed cloud task assignment method provided in an embodiment of the present application;

[0086] Figure 6 A first flow chart of a distributed cloud task allocation method provided in an embodiment of the present application;

[0087] Figure 7 A schematic diagram of a process of determining a target server group corresponding to a task to be assigned based on the remaining load of an optional server group in a distributed cloud task assignment method provided in an embodiment of the present application;

[0088] Figure 8 A schematic diagram of a distributed cloud task allocation method provided in an embodiment of the present application;

[0089] Fig. 9 A schematic diagram of an electronic device for a distributed cloud task allocation method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0090] In order to better understand the technical solution of the present application, the embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0091] It should be clear that the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0092] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The singular forms "a", "said" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.

[0093] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0094] The inventors discovered through research that the Internet of Vehicles is an intelligent transportation system that connects multiple participants such as vehicles, roads, traffic management agencies and users to achieve information sharing and exchange.

[0095] The main reasons for the need for distributed computing resources in the field of Internet of Vehicles include real-time data processing requirements, wide geographical distribution, large-scale system scalability, and data privacy and security. By making rational use of distributed computing resources, the performance, stability, and security of the Internet of Vehicles system can be improved, and more efficient and intelligent traffic management and services can be achieved.

[0096] Distributed computing networks use cloud computing, edge computing and other technologies to achieve high scalability, fault tolerance and real-time performance by distributing computing tasks to nodes in multiple geographical locations. Technically, they use elastic computing and load balancing from cloud service providers, deployment of edge computing devices, and tools such as distributed databases and message queues to enable the Internet of Vehicles system to respond more flexibly and efficiently to the growing demand for vehicle connections and data processing, and provide more reliable and responsive services.

[0097] In the related technology, in the distributed system management of the Internet of Vehicles, when allocating tasks, only the load capacity of each cloud in the distributed system management of the Internet of Vehicles is considered, and other factors are not considered. Since there are many factors that affect the task processing efficiency, the method of scheduling tasks only according to load capacity will result in low task processing efficiency.

[0098] The dynamic changes and uncertainty of Internet of Vehicles resources make task scheduling more complicated. Due to the mobility of vehicles and the instability of the network environment, the availability and performance of resources may change at any time. For example, factors such as node failure, network congestion, and uncertainty in task arrival rate will affect the effect of task scheduling. Therefore, the task scheduling algorithm needs to have the ability to dynamically adapt to changes in order to cope with the challenges brought by dynamic changes and uncertainty in resources.

[0099] In response to the above problems, the embodiments of the present application provide a distributed cloud task allocation method, device, equipment and storage medium for solving the above problems. The inventive concept of the present application can be summarized as follows: a target cloud is obtained based on the current task processing capability of each cloud to be allocated; the current task processing capability is the task processing capability of the cloud to be allocated that can also process other tasks based on its own current load, and the current task processing capability of the target cloud is greater than a preset value; for multiple cloud nodes in the target cloud, the task allocation priorities of multiple cloud nodes are obtained based on the attribute values ​​of at least two attributes of the cloud node and the preset weights of at least two attributes; the attributes are used to characterize the ability of the cloud node to process tasks and the types of the ability of the cloud node to process tasks represented by different attributes are different; the task to be allocated is allocated to the first cloud node; the first cloud node is the cloud node with the highest task allocation priority among the multiple cloud nodes.

[0100] In the present application, layer-by-layer screening is performed according to the cloud framework to select edge cloud nodes with the highest task allocation priority to process the tasks to be assigned, thereby improving the efficiency of task processing.

[0101] For ease of understanding, a distributed cloud task allocation method provided by an embodiment of the present application is described in detail below with reference to the accompanying drawings:

[0102] like Figure 1 As shown, it is an application scenario diagram of a distributed cloud task allocation method in an embodiment of the present application. The diagram includes: a cloud to be allocated 10, a cloud node 20; wherein:

[0103] A target cloud is obtained based on the current task processing capability of each cloud 10 to be assigned; the current task processing capability is the task processing capability of the cloud 10 to be assigned that can handle other tasks based on its own current load, and the current task processing capability of the target cloud is greater than a preset value; for multiple cloud nodes 20 in the target cloud, task allocation priorities of multiple cloud nodes 20 are obtained based on the attribute values ​​of at least two attributes of the cloud node 20 and preset weights of at least two attributes; the attributes are used to characterize the ability of the cloud node 20 to process tasks and the types of the ability of the cloud node 20 to process tasks represented by different attributes are different; the task to be assigned is assigned to the first cloud node; the first cloud node is the cloud node 20 with the highest task allocation priority among the multiple cloud nodes.

[0104] The description in this application only details a single cloud 10 and cloud node 20 to be allocated, but those skilled in the art should understand that the cloud 10 and cloud node 20 to be allocated shown are intended to represent the operation of the cloud 10 and cloud node 20 to be allocated involved in the technical solution of this application. It does not imply that there is a limitation on the number, type or location of the cloud 10 and cloud node 20 to be allocated. It should be noted that if additional modules are added to the illustrated environment or individual modules are removed therefrom, the underlying concept of the exemplary embodiment of this application will not be changed.

[0105] It should be noted that the task allocation method proposed in this application is not only applicable to Figure 1 The application scenario shown is also applicable to any device with task allocation requirements.

[0106] like Figure 2 FIG. 1 is a flow chart of a distributed cloud task allocation method provided in an embodiment of the present application, wherein:

[0107] In step 201: the target cloud is obtained based on the current task processing capacity of each cloud to be allocated; the current task processing capacity is the task processing capacity of the cloud to be allocated that can also process other tasks based on its own current load, and the current task processing capacity of the target cloud is greater than the preset value.

[0108] In this application, it is taken into consideration that in the design of a distributed vehicle-connected cloud architecture, some tasks are more efficiently processed in the central cloud, while some tasks are more efficiently processed in the regional cloud. Therefore, in this application, both the central cloud and the regional cloud are used as clouds to be allocated to execute subsequent steps.

[0109] Because it is necessary to consider that different clouds to be assigned have different processing capabilities for delay-sensitive tasks, and high latency will affect the processing efficiency of the task, in this application, for each cloud to be assigned, when determining its current task processing capability, it can be implemented as follows: for each cloud to be assigned, based on the current load of the cloud to be assigned and the priority of processing delay-sensitive tasks, the current task processing capability of the cloud to be assigned is obtained.

[0110] In some possible embodiments, the current task processing capacity of the cloud to be allocated is obtained based on the current load of the cloud to be allocated and the priority of processing delay-sensitive tasks. Specifically, it can be implemented as follows: based on the current load of the cloud to be allocated and the maximum computing power, the remaining computing power of the cloud to be allocated is obtained; based on the priority of processing delay-sensitive tasks of the cloud to be allocated and the remaining computing power, the current task processing capacity of the cloud to be allocated is obtained.

[0111] The above process can be expressed by formula 1, where:

[0112] ), formula (1)

[0113] in, For the The task processing capacity of the cloud to be assigned, For the The priority of latency-sensitive tasks to be assigned to the cloud. For the The current load of the clouds to be allocated, For the The maximum computing power of the cloud to be allocated.

[0114] In this application, before calculating the task processing capacity, it is necessary to first define the priority of each cloud to be assigned for processing latency-sensitive tasks. Then, the current task processing capacity of each cloud to be assigned can be determined according to Formula 1, and then the target cloud can be selected.

[0115] When defining the priority of latency-sensitive tasks to be assigned to the cloud for processing, you first need to quantify the priority of latency-sensitive tasks. When quantifying the priority of latency-sensitive tasks, you need to combine it with actual business scenarios. For example, in the field of autonomous driving: autonomous driving tasks have the highest priority, and ordinary network computing services have a lower priority.

[0116] The current task processing capacity of each cloud to be assigned can be calculated through the above algorithm.

[0117] After obtaining the task processing capacity of each to-be-allocated cloud, the to-be-allocated cloud with a current task processing capacity greater than a preset value can be selected as the target cloud. In order to ensure the highest efficiency of task processing, the cloud with the highest current task processing capacity can be selected. ) value is taken as the target cloud.

[0118] In step 202: for multiple cloud nodes in the target cloud, based on the attribute values ​​of at least two attributes of the cloud nodes and the preset weights of at least two attributes, the task allocation priorities of the multiple cloud nodes are obtained; the attributes are used to characterize the ability of the cloud nodes to process tasks and the types of the ability of the cloud nodes to process tasks represented by different attributes are different.

[0119] According to the cloud architecture, there are multiple cloud nodes distributed under a cloud to be allocated, and the different attributes of the cloud nodes will affect the efficiency of task processing. Therefore, before implementing step 202, a preset cloud node filtering model can be used to filter based on the attribute values ​​of at least two attributes of each cloud node of the target cloud to obtain multiple second cloud nodes, and the second cloud nodes are used to execute subsequent steps.

[0120] In some possible embodiments, at least two attributes of the cloud node include a location attribute, a delay attribute, a collaborative attribute, an available computing resource attribute, an acceleration attribute, and a mirror cache attribute; in order to filter each attribute, a corresponding cloud node filter model is set for each attribute. In the present application, the cloud node filter model includes: a location filtering model, a delay filtering model, a collaborative filtering model, an available computing resource filtering model, an acceleration filtering model, and a mirror cache filtering model, wherein: the location filtering model is used to filter out cloud nodes whose attribute values ​​of the location attribute are within a preset range of the terminal device; the terminal device is a device that issues tasks to be assigned; the delay filtering model is used to filter out cloud nodes whose attribute values ​​of the delay attribute meet the preset delay condition; the collaborative filtering model is used to filter out cloud nodes whose attribute values ​​of the collaborative attribute meet the preset collaborative condition; the available computing resource filtering model is used to filter out cloud nodes whose attribute values ​​of the available computing resource attribute meet the preset available computing resource condition; the acceleration filtering model is used to filter out cloud nodes whose attribute values ​​of the acceleration attribute meet the preset acceleration condition; and the mirror cache filtering model is used to filter out cloud nodes whose attribute values ​​of the mirror cache attribute meet the preset mirror cache condition.

[0121] In some possible embodiments, filtering out cloud nodes whose attribute values ​​of location attributes are within a preset range of the terminal device can be specifically implemented as follows: obtaining the location longitude and latitude information of each cloud node, determining the location offset of each cloud node from the terminal device based on the longitude and latitude information of each cloud node, and setting the value range of the location offset to [0~1]. The smaller the location offset, the larger the value, and the larger the offset, the smaller the value. This method can be used to determine the location offset corresponding to each cloud node, set a preset range based on the location of the terminal device, and then filter out cloud nodes within the preset range. It should be noted that the terminal device in this application is a device that issues tasks to be assigned.

[0122] In some other possible embodiments, the bandwidth required by cloud nodes that filter out delay attribute values ​​that meet the preset delay conditions can be specifically implemented as follows: obtain the available bandwidth from the terminal device to the cloud node and the delay in the past specified time period, and then use the formula "available bandwidth / maximum bandwidth*0.4+1 / (delay in the specified time / maximum delay*0.6)" to obtain the delay attribute corresponding to each cloud node, where the maximum bandwidth is the maximum value of the maximum available bandwidth from the terminal device to all cloud nodes. Then, the delay condition can be set according to the preset delay threshold, for example: the delay condition is that the delay of the cloud node is less than the preset delay threshold; and then the cloud nodes that meet the preset delay condition can be filtered.

[0123] In some other possible embodiments, cloud nodes whose attribute values ​​of collaborative attributes meet preset collaborative conditions are screened out. Specifically, the following can be implemented: obtain the available bandwidth and the delay of the specified time from the central cloud node of the target cloud to each cloud node, and then obtain the collaborative attribute corresponding to each cloud node through the formula "1 / (delay of the specified time / maximum delay*0.6)", where the maximum delay is the maximum value of the delay from all cloud nodes to the central cloud node of the target cloud. Then, cloud nodes that meet the requirements can be screened out according to the preset collaborative conditions. For example, the preset collaborative condition is that the collaborative attribute is greater than the preset collaborative threshold.

[0124] In some possible embodiments, cloud nodes whose attribute values ​​of available computing resource attributes meet preset available computing resource conditions are screened out, which can be specifically implemented as follows: the available computing resources of each cloud node can be determined using the memory calculation formula "Available computing resources = (idle CPU / maximum CPU)*0.5+available memory / maximum memory*0.3+available storage space / maximum storage space*0.2." Wherein, idle CPU is the available computing resources in the CPU, available memory is the currently unoccupied memory, and maximum storage space is the maximum storage capacity of the cloud node. The preset available computing resource condition can be that the available computing resources are greater than the preset available computing resources.

[0125] In some possible embodiments, the acceleration capability of the cloud node, that is, the acceleration capability of the available resources of the acceleration hardware such as each graphics processing unit (GPU) and data processing unit (DPU) in each cloud node, is used to screen out the cloud nodes whose attribute values ​​of the acceleration attributes meet the preset acceleration conditions. Specifically, it can be implemented as follows: the number of GPU cores and the number of DPU cores of the cloud node are obtained, and then the formula "number of GPU cores / Max number of CPU cores*2 or DPU capability / Max DPU capability*1 or if there is no GPU and CPU, the acceleration capability is 0" is used to obtain the attribute value of the acceleration attribute corresponding to each cloud node, where the number of GPU cores is the number of cores corresponding to the GPU in the cloud node, the Max number of GPU cores is the total number of GPU cores of all cloud nodes, the DPU capability is the number of cores corresponding to the DPU in the cloud node, and the Max DPU capability is the total number of DPU cores of all cloud nodes. Then, screening can be performed according to the preset acceleration conditions.

[0126] In some possible embodiments, cloud nodes whose attribute values ​​of image cache attributes meet preset image cache conditions are screened out, which can be specifically implemented as follows: if there is an image cache application in the cloud node, the attribute value of the image cache attribute of the cloud node is set to 1, and if not, the attribute value of the image cache attribute of the cloud node is set to 0. The preset image cache condition can be set to be greater than a preset image cache threshold, and then the preset image cache threshold is set to 0.

[0127] It should be noted that, in the specific implementation, all of the above models can be selected at the same time to filter cloud nodes, or some of them can be selected to filter cloud nodes. This application does not limit the type and number of selected filter models. In addition, in the specific implementation, other cloud node filter models can be set according to needs, and this application does not limit this.

[0128] In some possible embodiments, based on the attribute values ​​of at least two attributes of the cloud node and the preset weights of at least two attributes, the task allocation priorities of multiple cloud nodes are obtained, which can be specifically implemented as follows: Figure 3 The steps shown, where:

[0129] In step 301: obtain attribute values ​​of at least two attributes of the cloud node.

[0130] In the present application, in order to ensure that the task allocation priority of each cloud node can be accurately determined, it is necessary to obtain the attribute values ​​of each attribute of each cloud node.

[0131] In some possible embodiments, determining the location value of a cloud node can be specifically implemented as follows: obtaining the location longitude and latitude information of each cloud node, determining the location offset of each cloud node from the target cloud based on the longitude and latitude information of each cloud node, and using the location offset as the location value corresponding to the cloud node.

[0132] In some other possible embodiments, the method for determining the attribute value of the delay attribute of the cloud node can be specifically implemented as follows: obtain the available bandwidth from the terminal device to the cloud node and the delay in a specified time period, and then use the formula "available bandwidth / maximum bandwidth*0.4+1 / (delay in the specified time / maximum delay*0.6)" to obtain the attribute value of the delay attribute corresponding to each cloud node, where the maximum bandwidth is the maximum value of the maximum available bandwidths from the terminal device to all cloud nodes.

[0133] In some other possible embodiments, the method for determining the attribute value of the collaborative attribute of the cloud node can be specifically implemented as follows: obtain the available bandwidth and the delay of the specified time from the central cloud node of the target cloud to each cloud node, and then use the formula "1 / (delay of the specified time / maximum delay*0.6)" to obtain the attribute value corresponding to the collaborative attribute of each cloud node, where the maximum delay is the maximum value of the delay from all cloud nodes to the central cloud node of the target cloud.

[0134] In some possible embodiments, the attribute value of the available computing resource attribute of the cloud node is determined, which can be specifically implemented as follows: the memory calculation formula "memory / maximum memory*0.5+available memory / maximum memory*0.3+available storage space / maximum storage space*0.2" can be used.

[0135] In some possible embodiments, the acceleration capability of a cloud node is determined, which can be specifically implemented as follows: the available computing resources of each cloud node can be determined using a memory calculation formula: "Attribute value of available computing resource attribute = (idle CPU / maximum CPU)*0.5+available memory / maximum memory*0.3+available storage space / maximum storage space*0.2." Among them, the idle CPU is the available computing resources in the CPU, the available memory is the currently unoccupied memory, and the maximum storage space is the maximum storage capacity of the cloud node.

[0136] In some possible embodiments, determining the attribute value of the acceleration attribute of the cloud node can be specifically implemented as follows: obtaining the number of GPU cores and the number of DPU cores of the cloud node, and then using the formula "number of GPU cores / Max number of CPU cores*2 or DPU capability / Max DPU capability*1 or if there is no GPU and CPU, the acceleration capability is 0" to obtain the attribute value of the acceleration attribute corresponding to each cloud node, wherein the number of GPU cores is the number of cores corresponding to the GPU in the cloud node, the Max number of GPU cores is the total number of GPU cores of all cloud nodes, the DPU capability is the number of cores corresponding to the DPU in the cloud node, and the Max DPU capability is the total number of DPU cores of all cloud nodes.

[0137] In some possible embodiments, the attribute value of the image cache attribute of the cloud node is determined, which can be specifically implemented as follows: if there is an image cache application in the cloud node, the attribute value of the image cache attribute of the cloud node is set to 1; if not, the attribute value of the image cache attribute of the cloud node is set to 0.

[0138] In step 302: obtain the preset weight corresponding to each attribute of the cloud node.

[0139] In the present application, technical personnel can pre-set the preset weights corresponding to each attribute of the cloud node according to the needs of the business scenario. The preset weights corresponding to different attributes can be set to different values ​​according to different scenarios, but the sum of the preset weights corresponding to each attribute is 1.

[0140] In step 303: based on the attribute value of each attribute, the weight corresponding to each attribute, and the task allocation priority formula, the task allocation priority of the cloud node is obtained.

[0141] In this application, attributes including location attributes, latency attributes, coordination attributes, available computing resource attributes, acceleration attributes, and image cache attributes are used as examples for explanation, and the task allocation priority formula is shown in Formula 2, where:

[0142] W = K L * C' L +K U2E *C' U2E +K E2C*C' E2C +K C *C' C +K A *C' A +K I *C' I , formula (2)

[0143] Among them, W is the task allocation priority of the cloud node, K L is the weight corresponding to the location attribute, C' L is the attribute value of the location attribute, K U2E is the weight corresponding to the delay attribute, C' U2E is the attribute value of the delay attribute, K E2C is the weight corresponding to the collaborative attribute, C' E2C is the attribute value of the collaborative attribute, K C is the weight corresponding to the available computing resource attributes, C' C is the attribute value corresponding to the available computing resource attribute, K A is the weight corresponding to the acceleration attribute, C' A is the attribute value corresponding to the acceleration attribute, K I is the weight corresponding to the image cache attribute, C' I The attribute value corresponding to the image cache attribute.

[0144] After obtaining the task allocation priority of each cloud node, the target cloud node with the highest task allocation priority can be used as the target cloud node with the strongest comprehensive capability in this application.

[0145] In step 203: the task to be assigned is assigned to the first cloud node; the first cloud node is the cloud node with the highest task assignment priority among the multiple cloud nodes.

[0146] In this application, in order to ensure the accuracy of environmental data required for dynamic resource scheduling, it is necessary to monitor resource status in real time. In order to ensure low latency even under high load, resources need to be adjusted dynamically. In order to ensure that all tasks are completed in the shortest time and with the lowest resource consumption, after determining the first cloud node with the highest task allocation priority, the acquired tasks to be assigned need to be assigned to the server in the first cloud node with the highest task allocation priority.

[0147] In some possible embodiments, if for a virtualization scenario, during the operation of the system, the number of processors or servers required for each task is uncertain, then before the acquired tasks to be assigned are assigned to the cloud node with the highest task assignment priority, the servers in the cloud node with the highest task assignment priority can be grouped, and each server group includes at least one server.

[0148] In some possible embodiments, when there are multiple tasks to be assigned, the tasks to be assigned are assigned to the first cloud node, which can be specifically implemented as follows: Figure 4 The steps shown, where:

[0149] In step 401: for each task to be assigned, based on the predicted completion time of the task to be assigned on each server group in the first cloud node, the minimum predicted completion time is used as the target time corresponding to the task to be assigned; the server group includes at least one server.

[0150] In this application, in order to ensure that the total completion time of all tasks to be assigned is minimized, it is necessary to obtain the predicted completion time of each task to be assigned on each server.

[0151] In step 402: each task to be assigned is sorted according to the target time corresponding to each task to be assigned, to obtain a task assignment sequence.

[0152] For example, there are 7 tasks to be assigned and two servers. The predicted completion time and resource requirements of each assigned task on each server are as follows: Figure 5 As shown, the resulting task allocation sequence is: task 4, task 7, task 2, task 3, task 1, task 5, task 6.

[0153] In step 403: each task to be assigned is assigned to a corresponding target server group based on the first process according to the order of each task to be assigned in the task assignment sequence.

[0154] In the present application, the tasks to be assigned are assigned based on the predicted completion time on each server, and by ensuring that the execution time of each task is the shortest, the total execution time of the tasks can be ensured to be the shortest.

[0155] In some possible embodiments, the first process can be specifically implemented as follows: Figure 6 The steps shown, where:

[0156] In step 601: at least one server group corresponding to the target time of the task to be assigned is used as an optional server group.

[0157] In order to ensure the shortest overall task completion time, each task needs to be assigned to the fastest processor that can handle the task. Therefore, it is necessary to determine the completion time of each task to be assigned on each server in the target cloud node, and the server with the shortest completion time is the target server.

[0158] In step 602: based on the remaining load of the optional server group, the target server group corresponding to the task to be assigned is determined, and the task to be assigned is assigned to the corresponding target server group.

[0159] In the present application, in order to ensure that each task is assigned to only one server for processing, it is necessary to select one of the multiple target servers. Considering that the higher the remaining load of the server, the higher the efficiency of the server in processing tasks, the target server group corresponding to the task to be assigned is determined based on the remaining load of the optional server group. The specific implementation is as follows: Figure 7 The steps shown, where:

[0160] In step 701: if the remaining load of the optional server group meets the load required by the task to be assigned, the optional server group is determined as the target server group corresponding to the task to be assigned.

[0161] When it is determined that there are multiple optional server groups with remaining loads that meet the load required by the task to be assigned, in order to ensure the efficiency of task processing, the optional server group with the highest remaining load can be selected as the target server group.

[0162] In step 702: if the remaining load of the optional server group does not meet the load required by the task to be assigned, then determine an intermediate server group from other server groups whose remaining load meets the load required by the task to be assigned; wherein the other server groups are other server groups in the server groups included in the first cloud node except the optional server group.

[0163] In step 703: according to the predicted completion time of the task to be assigned on each intermediate server, a target server group corresponding to the task to be assigned is determined in the intermediate server.

[0164] Since each server group cannot exceed its own maximum load, when the remaining load of the optional server group does not meet the load required by the task to be assigned, an intermediate server group whose remaining load meets the load required by the task to be assigned can be determined from other server groups; if multiple intermediate server groups are determined, the seat target server group with the shortest predicted completion time can be selected from them.

[0165] pass Figure 7 The steps in can ensure that the load on each server will not exceed its own maximum load, and on this basis ensure that the task completion time is the shortest.

[0166] For example, there are 7 tasks to be assigned and two servers. The predicted completion time and resource requirements of each assigned task on each server are as follows: Figure 5 As shown, the obtained task allocation sequence is: task 4, task 7, task 2, task 3, task 1, task 5, task 6. The remaining load in server 1 is 8C, and the remaining load in server 2 is 10C.

[0167] The task to be assigned for the first execution of the first process is task 4, the target time corresponding to task 4 is 2 seconds, and the corresponding target server is server 1, so task 1 is assigned to server 1. At this time, the remaining load of server 1 is 6C, and the remaining load of server 2 is 10C;

[0168] The task to be assigned in the second execution of the first process is task 7. The target time corresponding to task 7 is 2 seconds, and the corresponding target server is server 1. Then task 7 is assigned to server 1. At this time, the remaining load of server 1 is 4C, and the remaining load of server 2 is 10C.

[0169] The task to be assigned for the third execution of the first process is Task 2. The target time corresponding to Task 2 is 4 seconds, and the corresponding target server is Server 1. Then Task 2 is assigned to Server 1. At this time, the remaining load of Server 1 is 3C, and the remaining load of Server 2 is 10C.

[0170] The task to be assigned in the fourth execution of the first process is task 3, the target time corresponding to task 3 is 5 seconds, and the corresponding target server is server 2, so task 3 is assigned to server 2. At this time, the remaining load of server 1 is 3C, and the remaining load of server 2 is 9C;

[0171] The task to be assigned for the fifth execution of the first process is Task 1. The target time corresponding to Task 1 is 5 seconds, and the corresponding target server is Server 1. Task 1 is assigned to Server 1. At this time, the remaining load of Server 1 is 1C, and the remaining load of Server 2 is 9C.

[0172] The task to be assigned for the sixth execution of the first process is task 5, the target time corresponding to task 5 is 5 seconds, and the corresponding target server is server 1, so task 5 is assigned to server 1. At this time, the remaining load of server 1 is 0C, and the remaining load of server 2 is 9C;

[0173] The task to be assigned for the seventh execution of the first process is Task 6. The target time corresponding to Task 6 is 9 seconds, and the corresponding target servers are Server 1 and Server 2. It is determined that the remaining load of Server 1 is less than the remaining load of Server 2, so Task 6 is assigned to Server 2. At this time, the remaining load of Server 1 is 0C, and the remaining load of Server 2 is 8C; at this point, the task assignment is completed.

[0174] In some other possible embodiments, there may be a task that requires particularly large resources. In this case, Figure 4 , Figure 6 as well as Figure 7When the server that can handle the task is not found, the task can be removed from the task allocation sequence. After all other tasks to be allocated have been completed by the server, the task can be re-implemented. Figure 4 , Figure 6 as well as Figure 7 Steps in .

[0175] Based on the same inventive concept, the embodiment of the present application also provides a task allocation device, such as Figure 8 As shown, the device comprises:

[0176] The target cloud determination module 8001 is used to obtain the target cloud based on the current task processing capability of each cloud to be allocated; the current task processing capability is the task processing capability of the cloud to be allocated that can also process other tasks based on its own current load, and the current task processing capability of the target cloud is greater than a preset value;

[0177] The priority determination module 8002 is used to obtain the task allocation priorities of the multiple cloud nodes in the target cloud based on the attribute values ​​of at least two attributes of the cloud nodes and the preset weights of the at least two attributes; the attributes are used to represent the ability of the cloud nodes to process tasks and different attributes represent different types of the ability of the cloud nodes to process tasks;

[0178] The allocation module 8003 is used to allocate the task to be allocated to the first cloud node; the first cloud node is the cloud node with the highest task allocation priority among the multiple cloud nodes.

[0179] In some possible embodiments, the target cloud determination module 8001 is further used to:

[0180] For each cloud to be allocated, the current task processing capability of the cloud to be allocated is obtained based on the current load of the cloud to be allocated and the priority of processing delay-sensitive tasks.

[0181] In some possible embodiments, the target cloud determination module 8001 is specifically used to:

[0182] Based on the current load and maximum computing power of the cloud to be allocated, obtaining the remaining computing power of the cloud to be allocated;

[0183] Based on the priority of the latency-sensitive tasks processed by the cloud to be allocated and the remaining computing power, the current task processing capacity of the cloud to be allocated is obtained.

[0184] In some possible embodiments, the allocation module 8003 is further used to: filter based on the attribute values ​​of at least two attributes of each cloud node of the target cloud using a preset cloud node filtering model to obtain a plurality of second cloud nodes;

[0185] The step of obtaining, for a plurality of cloud nodes in the target cloud, task allocation priorities of the plurality of cloud nodes based on attribute values ​​of at least two attributes of the cloud nodes and preset weights of the at least two attributes, comprises:

[0186] For each second cloud node in the target cloud, based on attribute values ​​of at least two attributes of the second cloud node and preset weights of the at least two attributes, a task allocation priority of each second cloud node is obtained.

[0187] In some possible embodiments, the at least two attributes include a location attribute, a latency attribute, a collaboration attribute, an available computing resource attribute, an acceleration attribute, and a mirror cache attribute;

[0188] The cloud node filter model includes: a location filtering model, a delay filtering model, a collaborative filtering model, an available computing resource filtering model, an acceleration filtering model, and a mirror cache filtering model, wherein:

[0189] The location filtering model is used to filter out cloud nodes whose attribute values ​​of location attributes are within a preset range of a terminal device; the terminal device is a device that issues the task to be assigned;

[0190] The delay filtering model is used to filter out cloud nodes whose attribute values ​​of delay attributes meet preset delay conditions;

[0191] The collaborative filtering model is used to filter out cloud nodes whose attribute values ​​of collaborative attributes meet preset collaborative conditions;

[0192] The available computing resource filtering model is used to filter out cloud nodes whose attribute values ​​of available computing resource attributes meet preset available computing resource conditions;

[0193] The acceleration filtering model is used to filter out cloud nodes whose attribute values ​​of acceleration attributes meet preset acceleration conditions;

[0194] The image cache filtering model is used to filter out cloud nodes whose attribute values ​​of image cache attributes meet preset image cache conditions.

[0195] In some possible embodiments, when there are multiple tasks to be assigned, the assignment module 8003 is specifically used to:

[0196] For each task to be assigned, based on the predicted completion time of the task to be assigned on each server group in the first cloud node, a minimum predicted completion time is used as a target time corresponding to the task to be assigned; the server group includes at least one server;

[0197] Sorting each task to be assigned according to the target time corresponding to each task to obtain a task assignment sequence;

[0198] According to the order of each task to be assigned in the task assignment sequence, assigning each task to be assigned to a corresponding target server group based on the first process;

[0199] The first process includes:

[0200] At least one server group corresponding to the target time of the task to be assigned is used as an optional server group;

[0201] The target server group corresponding to the task to be assigned is determined based on the remaining load of the optional server group, and the task to be assigned is assigned to the corresponding target server group.

[0202] In some possible embodiments, the allocation module 8003 is specifically used to:

[0203] If the remaining load of the optional server group meets the load required by the task to be assigned, the server group is determined as the target server group corresponding to the task to be assigned;

[0204] If the remaining load of the optional server group does not meet the load required by the task to be assigned, determine an intermediate server group whose remaining load meets the load required by the task to be assigned from other server groups; wherein the other server group is other server groups in the server groups included in the first cloud node except the optional server group;

[0205] According to the predicted completion time of the task to be assigned on each intermediate server, a target server group corresponding to the task to be assigned is determined in the intermediate server.

[0206] Corresponding to the above embodiments, the present application also provides an electronic device. Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present invention, the electronic device 900 may include: a processor 901, a memory 902 and a communication unit 903. These components communicate through one or more buses, and those skilled in the art can understand that the structure of the electronic device shown in the figure does not constitute a limitation on the embodiment of the present invention, it can be a bus structure or a star structure, and can also include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0207] The communication unit 903 is used to establish a communication channel so that the electronic device can communicate with other devices, receive user data sent by other devices or send user data to other devices.

[0208] The processor 901 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. It runs or executes software programs and / or modules stored in the memory 902, and calls data stored in the memory to perform various functions of the electronic device and / or process data. The processor can be composed of an integrated circuit (IC), for example, it can be composed of a single packaged IC, or it can be composed of multiple packaged ICs with the same or different functions. For example, the processor 901 can include only a central processing unit (CPU). In an embodiment of the present invention, the CPU can be a single computing core or multiple computing cores.

[0209] The memory 902 is used to store the execution instructions of the processor 901. The memory 902 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0210] When the execution instructions in the memory 902 are executed by the processor 901, the electronic device 900 can execute Figure 2 Some or all of the steps in the illustrated embodiments.

[0211] In a specific implementation, the present invention further provides a computer storage medium, wherein the computer storage medium may store a program, and when the program is executed, the program may include some or all of the steps in each embodiment of the task allocation method provided by the present invention. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0212] Those skilled in the art can clearly understand that the technology in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solution in the embodiments of the present invention can be essentially or partly contributed to the prior art in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present invention or certain parts of the embodiments.

[0213] In this specification, the same or similar parts between the various embodiments can be referred to each other. In particular, for the device embodiment and the terminal embodiment, since they are basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description in the method embodiment.

Claims

1. A distributed cloud task allocation method, characterized in that: The method comprises: A target cloud is obtained based on the current task processing capability of each cloud to be allocated; the current task processing capability is the task processing capability of the cloud to be allocated that can also process other tasks based on its own current load, and the current task processing capability of the target cloud is greater than a preset value; Filtering using a preset cloud node filtering model based on attribute values ​​of at least two attributes of each cloud node of the target cloud to obtain a plurality of second cloud nodes; For each second cloud node in the target cloud, based on the attribute values ​​of at least two attributes of the second cloud node and the preset weights of the at least two attributes, the task allocation priority of each second cloud node is obtained; the attributes are used to characterize the ability of the second cloud node to process tasks, and different attributes characterize different types of the ability of the second cloud node to process tasks; Allocate the task to be allocated to the first cloud node; the first cloud node is the cloud node with the highest task allocation priority among the multiple cloud nodes.

2. The method according to claim 1, characterized in that The method further comprises: For each cloud to be allocated, the current task processing capability of the cloud to be allocated is obtained based on the current load of the cloud to be allocated and the priority of processing delay-sensitive tasks.

3. The method according to claim 2, characterized in that The obtaining the current task processing capability of the cloud to be allocated based on the current load of the cloud to be allocated and the priority of processing delay-sensitive tasks includes: Based on the current load and maximum computing power of the cloud to be allocated, obtaining the remaining computing power of the cloud to be allocated; Based on the priority of the latency-sensitive tasks processed by the cloud to be allocated and the remaining computing power, the current task processing capacity of the cloud to be allocated is obtained.

4. The method according to claim 1, characterized in that: The at least two attributes include a location attribute, a latency attribute, a collaboration attribute, an available computing resource attribute, an acceleration attribute, and a mirror cache attribute; The cloud node filter model includes: a location filtering model, a delay filtering model, a collaborative filtering model, an available computing resource filtering model, an acceleration filtering model, and a mirror cache filtering model, wherein: The location filtering model is used to filter out cloud nodes whose attribute values ​​of location attributes are within a preset range of a terminal device; the terminal device is a device that issues the task to be assigned; The delay filtering model is used to filter out cloud nodes whose attribute values ​​of delay attributes meet preset delay conditions; The collaborative filtering model is used to filter out cloud nodes whose attribute values ​​of collaborative attributes meet preset collaborative conditions; The available computing resource filtering model is used to filter out cloud nodes whose attribute values ​​of available computing resource attributes meet preset available computing resource conditions; The acceleration filtering model is used to filter out cloud nodes whose attribute values ​​of acceleration attributes meet preset acceleration conditions; The image cache filtering model is used to filter out cloud nodes whose attribute values ​​of image cache attributes meet preset image cache conditions.

5. The method according to claim 1, characterized in that When there are multiple tasks to be assigned, assigning the tasks to be assigned to the first cloud node includes: For each task to be assigned, based on the predicted completion time of the task to be assigned on each server group in the first cloud node, a minimum predicted completion time is used as a target time corresponding to the task to be assigned; the server group includes at least one server; Sorting each task to be assigned according to the target time corresponding to each task to obtain a task assignment sequence; According to the order of each task to be assigned in the task assignment sequence, assigning each task to be assigned to a corresponding target server group based on the first process; The first process includes: At least one server group corresponding to the target time of the task to be assigned is used as an optional server group; The target server group corresponding to the task to be assigned is determined based on the remaining load of the optional server group, and the task to be assigned is assigned to the corresponding target server group.

6. The method according to claim 5, characterized in that The determining of the target server group corresponding to the task to be assigned based on the remaining load of the optional server group comprises: If the remaining load of the optional server group meets the load required by the task to be assigned, the optional server group is determined as the target server group corresponding to the task to be assigned; If the remaining load of the optional server group does not meet the load required by the task to be assigned, determine an intermediate server group whose remaining load meets the load required by the task to be assigned from other server groups; wherein the other server group is other server groups in the server groups included in the first cloud node except the optional server group; According to the predicted completion time of the task to be assigned on each intermediate server, a target server group corresponding to the task to be assigned is determined in the intermediate server.

7. A task allocation device, characterized in that: The device comprises: A target cloud determination module is used to obtain a target cloud based on the current task processing capability of each cloud to be allocated; the current task processing capability is the task processing capability of the cloud to be allocated that can also process other tasks based on its own current load, and the current task processing capability of the target cloud is greater than a preset value; an allocation module, configured to obtain a plurality of second cloud nodes by filtering based on attribute values ​​of at least two attributes of each cloud node of the target cloud using a preset cloud node filtering model; A priority determination module, for obtaining, for each second cloud node in the target cloud, a task allocation priority of each second cloud node based on attribute values ​​of at least two attributes of the second cloud node and preset weights of the at least two attributes; the attributes are used to characterize the ability of the second cloud node to process tasks, and different attributes characterize different types of the ability of the second cloud node to process tasks; The allocation module is also used to allocate the tasks to be allocated to the first cloud node; the first cloud node is the cloud node with the highest task allocation priority among the multiple cloud nodes.

8. An electronic device, characterized in that: The device comprises a memory for storing computer program instructions and a processor for executing the program instructions, wherein when the computer program instructions are executed by the processor, the electronic device is triggered to execute the method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the method according to any one of claims 1 to 6.