Data processing method and corresponding apparatus
By obtaining the auxiliary decision-making information and cost evaluation data of computing tasks, determining the data migration cost and task migration cost, and selecting appropriate strategies, it solves the problem that resource scheduling solutions in cloud computing cannot adapt to high-performance data analysis, and improves system performance and resources. Utilization.
Patent Information
- Application Number
- PCT/CN2024/082167
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-27
- Filing Date
- 2024-03-18
- Publication Date
- 2024-10-03
AI Technical Summary
Existing cloud computing resource scheduling solutions cannot adapt to complex and changeable high-performance data analysis scenarios, and especially cannot effectively manage computing-intensive and data-intensive tasks, resulting in poor resource utilization and application load execution performance.
By obtaining the auxiliary decision-making information and cost evaluation data of the target computing task, determine the data migration cost and task migration cost according to the optimization goal, and select an appropriate data migration strategy or task migration strategy to improve data processing flexibility and system performance.
It realizes the selection of optimal data processing strategies based on different optimization goals in a cloud computing environment, improves system performance and resource utilization, and meets the needs of high-performance data analysis.
Smart Images

Figure CN2024082167_03102024_PF_FP_ABST
Abstract
Description
A data processing method and corresponding device
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on March 27, 2023, with application number 202310339579.3 and invention name “A method for data processing and corresponding device”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of cloud computing technology, and in particular to a data processing method and corresponding device. Background Art
[0003] Task scheduling and resource management are crucial technologies in current cloud computing, often determining cluster resource utilization and application performance. Traditional cloud data center resource scheduling solutions often rely on compute-centric data migration solutions (such as Kubernetes and Knative). With the development of big data, data-centric compute migration solutions (such as Fluvio and Redpanda) have emerged. However, these single-source migration solutions are not suitable for today's complex and ever-changing application scenarios.
[0004] High-performance data analysis (HPDA) has emerged from the recent development of big data and high-performance computing. It is characterized by being both compute-intensive and data-intensive, with data volumes reaching petabytes (PB) and above. This results in complex, diverse, and dynamically changing HPDA application workloads. For example, the amount of state data stored during application operation fluctuates significantly, ranging from megabytes (MB) to gigabytes (GB). Therefore, a single migration solution cannot meet high-performance demands.
[0005] Summary of the Invention
[0006] This application provides a data processing method for selecting a strategy to be executed based on cost evaluation data and the cost obtained from the optimization target, thereby improving the flexibility of data processing. Embodiments of this application also provide corresponding data processing devices, data processing systems, computer-readable storage media, and computer program products.
[0007] In a first aspect, the present application provides a method for data processing, comprising: responding to an application's target computing task, obtaining auxiliary decision-making information, cost evaluation data, and optimization objectives related to the target computing task; wherein the auxiliary decision-making information is used to determine multiple first nodes capable of running the target computing task, each first node storing target data for running the target computing task, and the cost evaluation data including relevant information for running and migrating the target computing task; determining, based on the cost evaluation data and the optimization objectives, the data migration cost for migrating the target data from each first node, and the task migration cost for migrating the target computing task between multiple first nodes; and executing a data migration strategy or a task migration strategy based on the task migration cost and the data migration cost corresponding to each first node.
[0008] In this application, the data processing solution can be executed within a cluster, which can be a cloud system. The cluster can include a scheduling node and multiple worker nodes. The worker nodes can store data, and the scheduling node can dispatch computing tasks to the worker nodes, which then execute the computing tasks. The first node mentioned above is a worker node. The data processing process can be performed by the scheduling node.
[0009] In this application, the application can be an artificial intelligence (AI) type application, or other applications that require a lot of computing, such as image processing. The target computing task can be one of a batch computing task, and each computing task can be executed according to the above process.
[0010] In the present application, the auxiliary decision-making information of the target computing task may include the node information of the target data on which the target computing task depends, the information of the computing tasks with affinity to the target computing task, and one or more of the resource usage of the node where the target data is located (such as: resource utilization rate or resource idle rate). The scheduling node can select multiple first nodes suitable for running the target computing task based on the auxiliary decision-making information. The multiple first nodes can be nodes that store target data and have a high resource idle rate. Of course, the first node can also be a node selected by other combination methods, which is not limited in this application. The content of the target data on different first nodes can be the same or different.
[0011] In the present application, the cost evaluation data of the target computing task may include one or more of the input data size, output data size, network bandwidth between the first nodes, migration time of the target computing task, and running time of the target computing task on each first node.
[0012] It should be noted that different computing tasks may have different auxiliary decision-making information and cost evaluation data.
[0013] In this application, there can be multiple optimization objectives, and the data migration costs and task migration costs obtained for different optimization objectives can be different. The data migration cost refers to the cost incurred by migrating target data from one first node to another first node, and each first node has a corresponding data migration cost. The task migration cost refers to the cost incurred by migrating the target computing task between multiple first nodes, and each target computing task has a task migration cost.
[0014] The data processing solution provided in this application can decide to execute data migration strategy or task migration strategy based on data migration cost and task migration cost. There is no need to always execute a pre-configured single strategy, which improves the flexibility of data processing and also improves system performance.
[0015] In one possible implementation, the method also includes: if the task migration cost is less than the data migration cost corresponding to each first node, executing the task migration strategy, the task migration strategy is to migrate the target computing task between different first nodes according to the running order of the target computing task on each first node.
[0016] In this possible implementation, if the task migration cost is less than the data migration cost corresponding to each first node, that is, if the task migration cost is the smallest among all calculated migration costs, then the task migration strategy can be executed. This allows the target computing task to be executed at the lowest cost, improving system performance.
[0017] In one possible implementation, the method also includes: if the data migration cost corresponding to the target node is less than the task migration cost and the data migration cost corresponding to the second node, then executing the data migration strategy, the data migration strategy is to migrate the target data on the second node to the target node used to execute the target computing task, the second node is the first node in the first node except the target node.
[0018] In this possible implementation, when the data migration cost corresponding to the target node is the smallest among all calculated migration costs, the data migration strategy can be executed to migrate the target data on the other first nodes to the target node, and then execute the target computing task on the target node. In this way, the target computing task can be executed at the lowest cost, improving system performance.
[0019] In one possible implementation, when the optimization objectives are different, the relationship equations used to determine the data migration cost and the task migration cost are different.
[0020] In this possible implementation, different optimization objectives use different relational expressions to determine the data migration cost and the task migration cost, which can improve the credibility of the data migration cost and the task migration cost.
[0021] In one possible implementation, the optimization objectives include at least one of the following: shortest delay in completing a single computing task, shortest delay in completing a batch of computing tasks, lowest data transmission cost, lowest energy consumption, and optimal system performance.
[0022] This possible implementation provides a variety of possible optimization objectives, which can enable the system to meet data processing scenarios with different optimization requirements.
[0023] In one possible implementation, when the optimization goal is to minimize the latency of completing a single computing task, the relationship used to determine the data migration cost is:
[0024] in, is the data migration cost, T i is the target computing task's running time on the first node i, M is the number of first nodes, d j is the target data size stored in the first node j, B is the network bandwidth size, where T i d j and B are included in the cost assessment data.
[0025] In this possible implementation, for the optimization goal of minimizing the delay in completing a single computing task, the above relationship can be used to quickly determine the data migration cost of each first node, thereby improving the calculation efficiency of the data migration cost.
[0026] In one possible implementation, when the optimization goal is to minimize the completion delay of a single computing task, the relationship used to determine the task migration cost is:
[0027] Among them, C task is the task migration cost, T i The target computing task is the running time of d on the first node i, M is the number of first nodes, d j is the size of data stored in the first node j, B is the network bandwidth, c i represents the migration time required for the target computing task to migrate from the first node i, θ j Indicates the output data size and input data size d of the target computing task after the first node j is processed. j The ratio of T i d j , B and c i , included in the cost assessment data.
[0028] In this possible implementation, for the optimization goal of minimizing the completion delay of a single computing task, the above relationship can be used to quickly determine the task migration cost of the target computing task, thereby improving the calculation efficiency of the task migration cost.
[0029] The second aspect of the present application provides a method for data processing, including: a first device responds to an application's target computing task and obtains cost evaluation data and optimization targets related to the target computing task; wherein the cost evaluation data includes relevant information for running and migrating the target computing task; the first device determines, based on the cost evaluation data and the optimization target, the computational cost of the first device running the target computing task and the data migration cost of migrating input data for running the target computing task to the second device; the first device executes a computing strategy or a data migration strategy based on the computational cost and the data migration cost.
[0030] The data processing method provided in the second aspect of the present application can be applied to scenarios of end-cloud collaboration, end-edge collaboration, or edge-cloud collaboration. Among them, the first device can be an end-side device, a cloud-side device, or an edge device, and the second device can be a cloud-side device, an end-side device, or an edge device. If the first device is an end-side device, the second device can be a cloud-side device or an edge device. If the first device is a cloud-side device, the second device can be an end-side device or an edge device. If the first device is an edge device, the second device can be a cloud-side device or an end-side device.
[0031] The features involved in the second aspect that are the same as those in the first aspect can be understood by referring to the explanation of the first aspect above.
[0032] The data processing solution provided in this application can decide to execute data migration strategy or computing strategy based on data migration cost and task migration cost. There is no need to always execute a pre-configured single strategy, which improves the flexibility of data processing and system performance.
[0033] In a possible implementation, the method further includes: if the computing cost is less than the data migration cost, the first device executes a computing strategy, where the computing strategy is that the first device runs the target computing task according to the input data.
[0034] In this possible implementation, if the computation cost is less than the data migration cost, the computation strategy is executed. This allows the target computation task to be executed at the minimum cost, improving system performance.
[0035] In a possible implementation, the method further includes: if the data migration cost is less than the computing cost, the first device executes a data migration strategy, where the data migration strategy is to migrate input data for running the target computing task to the second device.
[0036] In this possible implementation, if the data migration cost is less than the computation cost, the data migration strategy is executed. This allows the target computation task to be executed at the lowest cost, improving system performance.
[0037] In a possible implementation, when the optimization objectives are different, the relationship formula for determining the data migration cost and the computation cost is different.
[0038] In this possible implementation, different optimization objectives use different relational expressions to determine the data migration cost and the computational cost, which can improve the credibility of the data migration cost and the computational cost.
[0039] In one possible implementation, the optimization objectives include at least one of the following: shortest delay in completing a single computing task, shortest delay in completing a batch of computing tasks, lowest data transmission cost, lowest energy consumption, and optimal system performance.
[0040] This possible implementation provides a variety of possible optimization objectives, which can enable the system to meet data processing scenarios with different optimization requirements.
[0041] In a possible implementation, when the first device is a terminal-side device and the optimization goal is to minimize the delay in completing a single task, the relationship for determining the data migration cost is: C data =T c +D input / B u +γ·D output / B d
[0042] Among them, C data is the data migration cost, B u is the network uplink bandwidth, B d is the network downlink bandwidth, D input The input data size of the target computing task, D output The output data size of the target computing task, T c is the processing time of the target computing task in the second device, and γ indicates whether the output data of the target computing task is transmitted back to the first device after the task is completed. γ=1 indicates that the output data must be transmitted back, and γ=0 indicates that the output data does not need to be transmitted back.
[0043] In this possible implementation, for the optimization goal of minimizing the delay in completing a single computing task, the above relationship can be used to quickly determine the data migration cost, thereby improving the calculation efficiency of the data migration cost.
[0044] In a possible implementation, when the first device is a terminal-side device and the optimization goal is to minimize the delay in completing a single task, the relationship for determining the computational cost is: C computer =T m
[0045] Among them, C computer To calculate the cost, T m The processing time of the target task on the first device is calculated.
[0046] In this possible implementation, for the optimization goal of minimizing the delay in completing a single computing task, the above relationship can be used to quickly determine the computing cost, thereby improving the calculation efficiency of the computing cost.
[0047] In a possible implementation, when the second device is a terminal-side device and the optimization goal is to minimize the delay in completing a single task, the relationship for determining the data migration cost is: C data =T m +D input / B d
[0048] Among them, C data is the data migration cost, T m The processing time of the target computing task in the first device, B d The network downstream bandwidth.
[0049] In this possible implementation, for the optimization goal of minimizing the delay in completing a single computing task, the above relationship can be used to quickly determine the data migration cost, thereby improving the calculation efficiency of the data migration cost.
[0050] In a possible implementation, when the second device is a terminal-side device and the optimization goal is to minimize the delay in completing a single task, the relationship for determining the computational cost is: C computer =T c +γ·D output / B d
[0051] Among them, C computer To calculate the cost, T c is the processing time of the target computing task in the second device, and γ indicates whether the output data of the target computing task is transmitted back to the first device after the task is completed. γ=1 indicates that the output data must be transmitted back, and γ=0 indicates that the output data does not need to be transmitted back.
[0052] In this possible implementation, for the optimization goal of minimizing the delay in completing a single computing task, the above relationship can be used to quickly determine the computing cost, thereby improving the calculation efficiency of the computing cost.
[0053] In a third aspect, the present application provides a data processing device for executing the method of the first aspect or any possible implementation of the first aspect. Specifically, the data processing device includes modules or units for executing the method of the first aspect or any possible implementation of the first aspect, such as an acquisition unit, a first processing unit, and a second processing unit.
[0054] In a fourth aspect, the present application provides a data processing device for executing the method of the second aspect or any possible implementation of the second aspect. Specifically, the data processing device includes modules or units for executing the method of the second aspect or any possible implementation of the second aspect, such as an acquisition unit, a first processing unit, and a second processing unit.
[0055] In a fifth aspect, the present application provides a data processing device. The data processing device may include at least one processor, a memory, and a communication interface. The processor is coupled to the memory and the communication interface. The memory is configured to store instructions, the processor is configured to execute the instructions, and the communication interface is configured to communicate with other network elements under the control of the processor. When executed by the processor, the instructions cause the processor to perform the method according to the first aspect or any possible implementation of the first aspect.
[0056] In a sixth aspect of the present application, a data processing device is provided. The data processing device may include at least one processor, a memory, and a communication interface. The processor is coupled to the memory and the communication interface. The memory is configured to store instructions, the processor is configured to execute the instructions, and the communication interface is configured to communicate with other network elements under the control of the processor. When executed by the processor, the instructions cause the processor to perform the method according to the second aspect or any possible implementation of the second aspect.
[0057] In the seventh aspect of the present application, a chip system is provided, which includes one or more interface circuits and one or more processors; the interface circuits and the processors are interconnected by lines; the interface circuits are used to receive signals from the memory of a data processing device and send signals to the processor, the signals including computer instructions stored in the memory; when the processor executes the computer instructions, the data processing device executes the method in the aforementioned first aspect or any possible implementation of the first aspect.
[0058] In an eighth aspect, the present application provides a chip system comprising one or more interface circuits and one or more processors; the interface circuits and the processors are interconnected by lines; the interface circuits are used to receive signals from a memory of a data processing device and to send signals to the processor, the signals comprising computer instructions stored in the memory; when the processor executes the computer instructions, the data processing device executes the method in the aforementioned second aspect or any possible implementation of the second aspect.
[0059] The ninth aspect of the present application provides a computer-readable storage medium having a computer program or instruction stored thereon. When the computer program or instruction runs on a computer device, the computer device executes the method in the aforementioned first aspect or any possible implementation of the first aspect.
[0060] The tenth aspect of the present application provides a computer-readable storage medium having a computer program or instruction stored thereon. When the computer program or instruction runs on a computer device, the computer device executes the method in the aforementioned second aspect or any possible implementation of the second aspect.
[0061] In an eleventh aspect, the present application provides a computer device program product, which includes a computer device program code. When the computer device program code is executed on a computer device, the computer device executes the method in the aforementioned first aspect or any possible implementation of the first aspect.
[0062] The twelfth aspect of the present application provides a computer device program product, which includes a computer device program code. When the computer device program code is executed on a computer device, the computer device executes the method in the aforementioned second aspect or any possible implementation of the second aspect.
[0063] The thirteenth aspect of the present application provides a data processing system, including a scheduling node and a working node, wherein the scheduling node can be the data processing device described in the third aspect or the fifth aspect above, and the scheduling node can execute the method in the first aspect or any possible implementation of the first aspect.
[0064] The fourteenth aspect of the present application provides a data processing system, including a first device and a second device. The first device can be the data processing device described in the fourth aspect or the fifth and sixth aspects above. The first device can execute the method in the second aspect or any possible implementation of the second aspect.
[0065] Among them, the technical effects brought about by the third to fourteenth aspects or any possible implementation methods thereof can refer to the technical effects brought about by the first aspect or different possible implementation methods of the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0066] FIG1A is a schematic diagram of a data processing system according to an embodiment of the present application;
[0067] FIG1B is another schematic diagram of the structure of the data processing system provided in an embodiment of the present application;
[0068] FIG1C is another schematic diagram of the structure of the data processing system provided in an embodiment of the present application;
[0069] FIG1D is another schematic diagram of the structure of the data processing system provided in an embodiment of the present application;
[0070] FIG1E is another schematic diagram of the structure of the data processing system provided in an embodiment of the present application;
[0071] FIG2 is a schematic structural diagram of a data processing device provided in an embodiment of the present application;
[0072] FIG3 is a schematic diagram of an embodiment of a data processing method provided in an embodiment of the present application;
[0073] FIG4 is a schematic diagram of another embodiment of the data processing method provided in an embodiment of the present application;
[0074] FIG5 is a schematic diagram of an example of a user task configuration page provided in an embodiment of the present application;
[0075] FIG6 is a schematic diagram of another embodiment of the data processing method provided in an embodiment of the present application;
[0076] FIG7 is a schematic diagram of another embodiment of the data processing method provided in an embodiment of the present application;
[0077] FIG8 is a schematic diagram of an example of a data processing method provided in an embodiment of the present application;
[0078] FIG9 is a schematic structural diagram of a data processing device provided in an embodiment of the present application;
[0079] FIG10 is another schematic structural diagram of the data processing device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0080] The following describes the embodiments of the present application in conjunction with the accompanying drawings. Obviously, the embodiments described are only part of the embodiments of the present application, not all of the embodiments. Those skilled in the art will appreciate that with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0081] The terms "first," "second," and the like in the specification and claims of this application and in the accompanying drawings are used to distinguish similar objects and are not necessarily used to describe a particular order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions, e.g., a process, method, system, product, or apparatus comprising a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units that are not explicitly listed or that are inherent to these processes, methods, products, or apparatus.
[0082] This embodiment of the present application provides a data processing method for selecting a strategy to be executed based on cost evaluation data and the cost obtained from an optimization objective, thereby improving the flexibility of data processing. This embodiment of the present application also provides a corresponding data processing device, a data processing system, a computer-readable storage medium, and a computer program product. These are described in detail below.
[0083] FIG1A is a schematic diagram of a data processing system according to an embodiment of the present application.
[0084] As shown in FIG1A , the data processing system may include a scheduling node and multiple working nodes. The working nodes may store data, and the scheduling node may schedule computing tasks to the working nodes, which then execute the computing tasks.
[0085] The scheduling node in the embodiment of the present application can respond to the computing task of the application and obtain auxiliary decision-making information, cost evaluation data and optimization goals related to the computing task, wherein the auxiliary decision-making information is used to determine multiple nodes that can run the computing task; based on the cost evaluation data and the optimization goal, the data migration cost and the task migration cost are determined, and based on the data migration cost and the task migration cost, the data migration strategy or the task migration strategy is executed. Among them, the data migration cost refers to the cost incurred by migrating data from one node to another node, and the task migration cost refers to the cost incurred by migrating the computing task between multiple nodes.
[0086] The data processing system provided in this application can decide to execute data migration strategy or task migration strategy based on data migration cost and task migration cost. There is no need to always execute a pre-configured single strategy, which improves the flexibility of data processing and also improves system performance.
[0087] The scheduling node in FIG1A may be an independent device, or may be integrated into a control platform of a data processing system, or integrated into a certain working node.
[0088] The function of the scheduling node can be implemented by software or hardware.
[0089] As an example of a software functional unit, a scheduling node may include code running on a computing instance. The computing instance may include at least one of a physical host (computing device), a virtual machine, and a container. Furthermore, the computing instance may be one or more. For example, a scheduling node may include code running on multiple hosts / virtual machines / containers. It should be noted that the multiple hosts / virtual machines / containers used to run the code may be distributed in the same region or in different regions. Furthermore, the multiple hosts / virtual machines / containers used to run the code may be distributed in the same availability zone (AZ) or in different AZs, each AZ including one data center or multiple geographically close data centers. Typically, a region may include multiple AZs.
[0090] Similarly, multiple hosts / virtual machines / containers running the code can be distributed within the same virtual private cloud (VPC) or across multiple VPCs. Typically, a VPC is set up within a region. Inter-region communication between two VPCs within the same region, or between VPCs in different regions, requires a communication gateway within each VPC to interconnect the VPCs.
[0091] As an example of a hardware functional unit, a scheduling node may include at least one computing device, such as a server. Alternatively, the scheduling node may be implemented using an application-specific integrated circuit (ASIC) or a programmable logic device (PLD). The PLD may be implemented using a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.
[0092] The multiple computing devices included in a scheduling node can be distributed in the same zone or in different zones. The multiple computing devices included in a scheduling node can be distributed in the same AZ or in different AZs. Similarly, the multiple computing devices included in a scheduling node can be distributed in the same VPC or in multiple VPCs. The multiple computing devices can be any combination of servers, ASICs, PLDs, CPLDs, FPGAs, GALs, and other computing devices.
[0093] The data processing system provided in the embodiments of the present application may be a cloud service system (also referred to as a cloud system). In the cloud service system, as shown in FIG1B , the cloud service system includes a cloud platform and basic resources. The cloud platform includes a cloud platform manager, and the scheduling node in FIG1A may be the cloud platform manager in FIG1B . The basic resources may include multiple servers, each of which may be a working node, or each server may include multiple working nodes.
[0094] The working node in FIG1B may be a computing device card or a virtual machine (VM), wherein the computing device card may be at least one of a central processing unit (CPU), a graphics processing unit (GPU), and a neural network processing unit (NPU).
[0095] The cloud platform manager maintains or regularly collects information about each worker node in the underlying resources, such as resource usage (resource utilization rate or resource idle rate), the type and amount of data stored on each worker node, and other information. The cloud platform manager also maintains information about the computing tasks that have run on each worker node. This information can be used as auxiliary decision-making information when running computing tasks.
[0096] The cloud platform manager can respond to computing tasks from applications input by tenants or other channels, and then obtain auxiliary decision-making information, cost evaluation data and optimization goals related to the computing tasks, where the auxiliary decision-making information is used to determine multiple nodes that can run computing tasks; based on the cost evaluation data and optimization goals, determine the data migration cost and task migration cost, and execute the data migration strategy or task migration strategy based on the data migration cost and task migration cost.
[0097] In a cloud service system, a computing task can be sent to the cloud service system by a tenant via a terminal device. The tenant can be a resource user. The application that generates this computing task can be related to high-performance data analysis (HPDA), such as artificial intelligence (AI), or other applications that require high computational resources, such as image processing. A computing request for an application typically includes multiple computing tasks, and each computing task can determine the execution strategy based on the data migration cost and task migration cost.
[0098] The cloud platform manager can schedule computing tasks to run on one or more corresponding working nodes according to the strategy to be executed. After the working node completes the computing task, the cloud platform manager can return the corresponding computing results to the tenant.
[0099] The data processing system provided in the embodiments of the present application can also be a data center. In the data center, as shown in Figure 1C, the data center includes a data center management platform, an internal data center network, and multiple servers. Each server includes a hardware layer and a software layer. The hardware layer includes memory, network cards, processors, and disks, which are connected via a bus. The hardware layer provides the hardware resources required for the virtual machines in the software layer to operate. The software layer includes a host operating system and multiple virtual machines. The host operating system may include a data center management platform client that can interact with the data center management platform.
[0100] Virtualization technology, which mainly consists of computing virtualization and input / output (I / O) virtualization, shares a physical server with multiple tenants at the granularity of virtual machines, allowing tenants to use physical resources conveniently and flexibly under the premise of secure isolation, and can greatly improve the utilization of physical resources.
[0101] Compute virtualization is the process of making a server's computing resources, such as processors and memory, available to virtual instances. For example, virtual machines (VMs) are virtual instances. In other scenarios, these virtual instances are containers or bare metal servers.
[0102] In Figure 1C, each server is provided with multiple virtual machines through virtualization technology, and each virtual machine can be understood as a working node. The scheduling node in Figure 1A can be the data center management platform in Figure 1C.
[0103] Among them, virtual machines can also be called cloud servers (Elastic Compute Service, ECS) or elastic instances (different cloud service providers have different names).
[0104] Among them, when multiple virtual machines in each server can be grouped according to levels, a hierarchical grouping relationship is obtained for use when subsequent tenants request resources.
[0105] The data center management platform can provide an access interface (such as a user interface or application programming interface (API)). Tenants can use a client to remotely access the access interface, register an account and password on the data center management platform, and log in to the data center management platform. After the data center management platform successfully authenticates the account and password, the tenant can use the client to send a resource request to the data center management platform. The resource request is then split into at least two sub-requests, and virtual machines are assigned to the sub-requests based on the hierarchical grouping relationship stored in the data center management platform. For example, sub-request 1 is assigned the identifier of virtual machine 1, and sub-request 2 is assigned the identifier of virtual machine 2.
[0106] The data processing system described in FIG. 1A to FIG. 1C is a cluster system. The processing of computing tasks is completed within the cluster, which is suitable for processing batch tasks of tenants.
[0107] The present application also provides a data processing system for collaboratively processing computing tasks. The data processing system can be a data processing system for end-cloud collaboration, end-edge collaboration, or edge-cloud collaboration. The data processing system includes a first device and a second device. If the first device is an end-side device, the second device can be a cloud-side device or an edge device. If the first device is a cloud-side device, the second device can be an end-side device or an edge device. If the first device is an edge device, the second device can be a cloud-side device or an end-side device.
[0108] The end-side device may be a terminal device. A terminal device, also known as user equipment (UE), mobile station (MS), mobile terminal (MT), etc., is a device that includes wireless communication functions (providing voice / data connectivity to users), for example, a handheld device with wireless connection functions. Currently, some examples of terminal devices include: mobile phones, tablet computers, laptops, PDAs, notebook computers, wireless routers, mobile internet devices (MIDs), wearable devices, virtual reality (VR) devices, augmented reality (AR) devices, wireless terminals in industrial control, wireless terminals in self-driving, wireless terminals in the Internet of Vehicles, wireless terminals in remote medical surgery, wireless terminals in smart grids, wireless terminals in transportation safety, wireless terminals in smart cities, or wireless terminals in smart homes. For example, wireless terminals in the Internet of Vehicles can be onboard equipment, complete vehicle equipment, onboard modules, vehicles, etc. Wireless terminals in industrial control can be robots, etc. For example, wireless terminals in unmanned driving can be drones.
[0109] Edge devices refer to devices that provide access to the user or service provider's core network, such as routers, switches, integrated access devices, multiplexers, and various metropolitan area network and wide area network access devices.
[0110] The cloud-side device may be a server, a virtual machine or other equipment. The cloud-side device may be understood by referring to the above introduction to the scheduling node.
[0111] The data processing system for collaboratively processing computing tasks can be understood by referring to FIG1D or FIG1E. In the data processing system shown in FIG1D, the first device is an end-side device, and the second device is a cloud-side device or an edge device. In the data processing system shown in FIG1E, the first device is a cloud-side device, and the second device is an end-side device or an edge device. When processing a computing task, the first device can obtain cost evaluation data and optimization targets related to the computing task, and determine the computing cost of the first device running the computing task and the data migration cost of migrating the input data to the second device to run the computing task based on the cost evaluation data and the optimization target; the first device executes a computing strategy or a data migration strategy based on the computing cost and the data migration cost. In this way, the first device does not need to always execute a pre-configured single strategy, which improves the flexibility of data processing and also improves system performance.
[0112] The scheduling node or the first device introduced above can be understood as a data processing device.
[0113] Figure 2 is a schematic diagram of a possible logical structure of a data processing device provided in an embodiment of the present application. As shown in Figure 2, the data processing device 20 provided in an embodiment of the present application includes: a processor 201, a communication interface 202, a memory 203 and a bus 204. The processor 201, the communication interface 202 and the memory 203 are interconnected via the bus 204. In an embodiment of the present application, the processor 201 is used to control and manage the actions of the data processing device 20. For example, the processor 201 is used to execute the process of determining audio advertisements. The communication interface 202 is used to support the data processing device 20 to communicate, and the memory 203 is used to store the program code and data of the data processing device 20.
[0114] The processor 201 may be a central processing unit (CPU), a general-purpose processor (GPOR), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic device (PLD), a transistor logic device (TLD), a hardware component, or any combination thereof. It may implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. A processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like. The bus 204 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, for example. Buses may be classified as address buses, data buses, control buses, and the like. For ease of illustration, FIG. 2 shows only one thick line, but this does not imply that there is only one bus or only one type of bus.
[0115] The data processing method provided by the embodiment of the present application is described below. The content of the method involving the execution of the data processing device can be executed by the data processing device, or by a component of the data processing device (such as a processor, chip, or chip system, etc.).
[0116] In conjunction with the data processing system described in FIG. 1A to FIG. 1C , the method for processing data within the cluster can be understood by referring to FIG. 3 .
[0117] As shown in FIG3 , an embodiment of the data processing method provided in an embodiment of the present application includes:
[0118] 301. The scheduling node responds to the target computing task of the application and obtains auxiliary decision-making information, cost evaluation data and optimization goals related to the target computing task.
[0119] The auxiliary decision information is used to determine multiple first nodes that can run the target computing task, each first node stores target data for running the target computing task, and the cost evaluation data includes relevant information for running and migrating the target computing task.
[0120] In the present application, the auxiliary decision-making information of the target computing task may include the node information of the target data on which the target computing task depends, the information of the computing tasks with affinity to the target computing task, and one or more of the resource usage of the node where the target data is located (such as: resource utilization rate or resource idle rate). The scheduling node can select multiple first nodes suitable for running the target computing task based on the auxiliary decision-making information. The multiple first nodes can be nodes that store target data and have a high resource idle rate. Of course, the first node can also be a node selected by other combination methods, which is not limited in this application. The content of the target data on different first nodes can be the same or different.
[0121] In the present application, the cost evaluation data of the target computing task may include one or more of the input data size, output data size, network bandwidth between the first nodes, migration time of the target computing task, and running time of the target computing task on each first node.
[0122] It should be noted that different computing tasks may have different auxiliary decision-making information and cost evaluation data.
[0123] In this application, there can be multiple optimization objectives, and the data migration costs and task migration costs obtained for different optimization objectives can be different. The data migration cost refers to the cost incurred by migrating target data from one first node to another first node, and each first node has a corresponding data migration cost. The task migration cost refers to the cost incurred by migrating the target computing task between multiple first nodes, and each target computing task has a task migration cost.
[0124] 302. The scheduling node determines the data migration cost of migrating target data from each first node and the task migration cost of migrating target computing tasks between multiple first nodes based on the cost evaluation data and the optimization target.
[0125] Optionally, when the optimization objectives are different, the relationship equations used to determine the data migration cost and the task migration cost are different.
[0126] Optionally, the optimization objectives include at least one of the following: shortest delay in completing a single computing task, shortest delay in completing a batch computing task, lowest data transmission cost, lowest energy consumption, and optimal system performance.
[0127] Taking the optimization goal of minimizing the delay in completing a single computing task as an example, the relationship used to determine the data migration cost can be:
[0128] in, is the data migration cost, T i is the target computing task's running time on the first node i, M is the number of first nodes, d j is the target data size stored in the first node j, B is the network bandwidth size, where T i d j and B are included in the cost assessment data.
[0129] The data migration cost of each first node migrating target data stored in the node to other first nodes can be determined through the data migration cost relationship.
[0130] Taking the optimization goal of minimizing the delay in completing a single computing task as an example, the relationship used to determine the task migration cost is:
[0131] Among them, C task is the task migration cost, T i The target computing task is the running time of d on the first node i, M is the number of first nodes, d j is the size of data stored in the first node j, B is the network bandwidth, c i represents the migration time required for the target computing task to migrate from the first node i, θ jIndicates the output data size and input data size d of the target computing task after the first node j is processed. j The ratio of T i d j , B and c i , included in the cost assessment data.
[0132] The task migration cost of migrating the target computing task between different first nodes according to the execution order can be determined through the relationship formula of the task migration cost.
[0133] Of course, the optimization goal here is to minimize the completion delay of a single computing task as an example. If it is other optimization goals, the above relationship used to determine the data migration cost and the task migration cost may be different. However, no matter what form of relationship is used, the above task migration cost and the data migration cost of each first node can be obtained for subsequent strategy selection.
[0134] 303. The scheduling node executes a data migration strategy or a task migration strategy according to the task migration cost and the data migration cost corresponding to each first node.
[0135] The scheduling node may select a strategy to be executed based on the task migration cost and the data migration cost corresponding to each first node.
[0136] 304. If the task migration cost is less than the data migration cost corresponding to each first node, the task migration strategy is executed. The task migration strategy is to migrate the target computing task between different first nodes according to the running order of the target computing task on each first node.
[0137] If the task migration cost is less than the data migration cost corresponding to each first node, that is, the task migration cost is the smallest among all the calculated migration costs, then the task migration strategy can be executed. In this way, the target computing task can be executed at the lowest cost.
[0138] 305. If the data migration cost corresponding to the target node is less than the task migration cost and the data migration cost corresponding to the second node, the data migration strategy is executed. The data migration strategy is to migrate the target data on the second node to the target node used to execute the target computing task. The second node is the first node in the first node except the target node.
[0139] When the data migration cost corresponding to the target node is the smallest among all calculated migration costs, the data migration strategy can be executed to migrate the target data on other first nodes to the target node, and then execute the target computing task on the target node. In this way, the target computing task can be executed at the lowest cost.
[0140] 306. If step 304 is executed, each first node runs the target computing task.
[0141] 307. If step 305 is executed, the target node runs the target computing task.
[0142] The data processing solution provided in this application allows the scheduling node to decide whether to execute a data migration strategy or a task migration strategy based on the data migration cost and the task migration cost. There is no need to always execute a pre-configured single strategy, which improves the flexibility of data processing and also improves system performance.
[0143] The above describes how the scheduling nodes in the cluster complete the data processing described above. In fact, different operations can be performed by different modules in the scheduling nodes. The following describes the working process of different modules.
[0144] As shown in Figure 4, the data processing system includes a scheduling node and multiple worker nodes. The scheduling node can include a dependency analysis module, a node monitoring and data acquisition module, a storage module, and an adaptive scheduling engine. The multiple worker nodes in Figure 4 are from worker node 1 to worker node n, where n is an integer greater than 1.
[0145] The dependency analysis module is used to perform dependency analysis on computing tasks to obtain affinity data of computing tasks, that is, the affinity relationship between the target computing task and other computing tasks.
[0146] The node monitoring and data acquisition module is used to dynamically monitor application load characteristic information and distributed operating environment information. Application load characteristic information includes the input data size of the computing task, the output data size of the computing task, the migration time of the computing task, and the running time of the computing task. Distributed operating environment information includes the network bandwidth between working nodes, the resource usage of the working nodes, and the identification or address of the working nodes that store the data that the computing task relies on. The node monitoring and data acquisition module can collect information in two ways: one is a timed collection method, which is used to collect distributed operating environment information; the other is event-driven collection, which is used to collect application load characteristic information.
[0147] The storage module is used to store the affinity data of the computing tasks analyzed by the dependency analysis module, as well as the application load characteristic information and distributed operating environment information detected by the node monitoring and data acquisition module.
[0148] The affinity data of the above-mentioned computing tasks, as well as the application load characteristic information and distributed operating environment information detected by the node monitoring and data acquisition module can be divided into two types, one is auxiliary decision-making information used to select working nodes for target tasks, and the other is cost evaluation data used for migration cost evaluation.
[0149] Among them, the auxiliary decision-making information may include the node information where the data on which the running computing task depends is located (such as the address or identifier of the node), the affinity data of the computing task (information on other computing tasks that have affinity with the computing task), and the resource usage of the working node (the resource usage of the working node where the data on which the running computing task depends is located).
[0150] The cost evaluation data may include the input data size of the computing task, the output data size, the network bandwidth between the working nodes, the migration time of the computing task, and the running time of the computing task on the working node.
[0151] The output data size in the cost evaluation data and the running time of the computing task on the worker node can be distributed and obtained according to two different scenarios:
[0152] Stable scenario: The average value of the first N historical output data is used as the output data size and computing task running time;
[0153] Unstable scenarios: Leveraging historical input and output data size, input data distribution characteristics, computing task characteristics, and worker node computing power, this model is trained offline and updated online to predict the output data size or runtime of computing tasks online.
[0154] Whether the scene is stable is determined by the following formula:
[0155] Among them, the average h i Output data for the previous i history.
[0156] The computing task migration time in the migration cost evaluation data can be estimated using historical data. If relevant information does not exist yet, the pre-estimated no-operation computing task migration time is used as the preliminary cost, such as downtime + intermediate state data migration time + startup time, or data migration time + startup time, etc.
[0157] The adaptive scheduling engine only obtains auxiliary decision-making information from the storage module and does not obtain cost evaluation data. In this case, the initial migration strategy is executed. If the initial migration strategy is a data migration strategy, the data migration strategy is executed. If the initial migration strategy is a cost migration strategy, the cost migration strategy is executed without adaptively selecting the migration strategy.
[0158] If the adaptive scheduling engine obtains auxiliary decision-making information and cost evaluation data, the adaptive scheduling engine can determine multiple first nodes that can run the computing task based on the auxiliary decision-making information (the first node can be at least two of the above-mentioned working nodes 1 to working nodes n), and then determine the data migration cost of migrating the data on which the computing task depends from each first node, and the task migration cost of migrating the computing task between multiple first nodes based on the cost evaluation data and the optimization goal; based on the task migration cost and the data migration cost corresponding to each first node, the adaptive scheduling engine can adaptively select a migration strategy, such as selecting a data migration strategy or a task migration strategy.
[0159] The calculation method of data migration cost and task migration cost can be understood by referring to the corresponding embodiment of Figure 3. The process of executing data migration strategy and executing task migration strategy can also be understood by referring to the corresponding embodiment of Figure 3. It will not be repeated here.
[0160] After all computing tasks for a user's application request are completed, the scheduling node can return the computing results to the user.
[0161] It should be noted that whether to enable the adaptive scheduling function in the cluster scenario can be configured by the user on the user task configuration page of the cluster system (such as the cloud system). As shown in Figure 5, the adaptive scheduling function can be turned on or off through the button option.
[0162] In this cluster scenario, data is distributedly stored, and efficient data processing can be achieved for petabyte (PB) or higher storage levels, which can double the performance of distributed applications and meet the demands of high-performance scenarios.
[0163] In combination with the data processing system introduced in FIG. 1D or FIG. 1E , the method of collaborative data processing between the two ends can be understood by referring to FIG. 6 .
[0164] As shown in FIG6 , an embodiment of the data processing method provided in an embodiment of the present application includes:
[0165] 601. The first device responds to the target computing task of the application and obtains cost evaluation data and optimization targets related to the target computing task.
[0166] The cost evaluation data includes relevant information for running and migrating target computing tasks.
[0167] In the present application, the auxiliary decision-making information of the target computing task may include the node information of the target data on which the target computing task depends, the information of the computing tasks with affinity to the target computing task, and one or more of the resource usage of the node where the target data is located (such as: resource utilization rate or resource idle rate). The scheduling node can select multiple first nodes suitable for running the target computing task based on the auxiliary decision-making information. The multiple first nodes can be nodes that store target data and have a high resource idle rate. Of course, the first node can also be a node selected by other combination methods, which is not limited in this application. The content of the target data on different first nodes can be the same or different.
[0168] 602. The first device determines the computational cost of the target computing task executed by the first device and the data migration cost of migrating the input data of the target computing task executed by the first device to the second device based on the cost evaluation data and the optimization target.
[0169] Optionally, when the optimization objectives are different, the relationship equations used to determine the data migration cost and the task migration cost are different.
[0170] Optionally, the optimization objectives include at least one of the following: shortest delay in completing a single computing task, shortest delay in completing a batch computing task, lowest data transmission cost, lowest energy consumption, and optimal system performance.
[0171] Taking the optimization goal of minimizing the delay in completing a single computing task as an example, when the first device is an end-side device, the relationship for determining the data migration cost is: C data =T c +D input / B u +γ·D output / B d
[0172] Among them, C data is the data migration cost, B u is the network uplink bandwidth, B d is the network downlink bandwidth, D input The input data size of the target computing task, D output The output data size of the target computing task, T c is the processing time of the target computing task in the second device, and γ indicates whether the output data of the target computing task is transmitted back to the first device after the task is completed. γ=1 indicates that the output data must be transmitted back, and γ=0 indicates that the output data does not need to be transmitted back.
[0173] Taking the optimization goal of minimizing the delay in completing a single computing task as an example, when the first device is a terminal-side device and the optimization goal is minimizing the delay in completing a single task, the relationship for determining the computing cost is: C computer =Tm
[0174] Among them, C computer To calculate the cost, T m The processing time of the target task on the first device is calculated.
[0175] In this possible implementation, for the optimization goal of minimizing the delay in completing a single computing task, the above relationship can be used to quickly determine the computing cost, thereby improving the calculation efficiency of the computing cost.
[0176] Taking the optimization goal of minimizing the delay in completing a single computing task as an example, when the second device is an end-side device and the optimization goal is minimizing the delay in completing a single task, the relationship used to determine the data migration cost is: C data =T m +D input / B d
[0177] Among them, C data is the data migration cost, T m The processing time of the target computing task in the first device, B d The network downstream bandwidth.
[0178] Taking the optimization goal of minimizing the delay in completing a single computing task as an example, when the second device is a terminal device and the optimization goal is minimizing the delay in completing a single task, the relationship used to determine the computing cost is: C computer =T c +γ·D output / B d
[0179] Among them, C computer To calculate the cost, T c is the processing time of the target computing task in the second device, and γ indicates whether the output data of the target computing task is transmitted back to the first device after the task is completed. γ=1 indicates that the output data must be transmitted back, and γ=0 indicates that the output data does not need to be transmitted back.
[0180] 603. The first device executes a computing strategy or a data migration strategy based on the computing cost and the data migration cost.
[0181] The first device may select a strategy to be executed based on the computational cost and the data migration cost.
[0182] 604. If the computing cost is less than the data migration cost, the computing strategy is executed, where the first device runs the target computing task based on the input data.
[0183] If the computation cost is less than the data migration cost, the cost of running the target computing task on the first device is minimal, and the first device can run the target computing task based on the input data. In this way, the target computing task can be executed at the lowest cost, thereby improving system performance.
[0184] 605. If the data migration cost is less than the computing cost, the data migration strategy is executed, and the data migration strategy is to migrate the input data of the target computing task to the second device.
[0185] If the data migration cost is less than the computation cost, then the cost of running the target computing task on the second device is minimal. In this case, the input data for running the target computing task can be migrated to the second device, which then runs the target computing task. This allows the target computing task to be executed at the lowest cost, improving system performance.
[0186] 606. The second device runs the target computing task.
[0187] The data processing solution provided in this application can decide to execute data migration strategy or computing strategy based on data migration cost and task migration cost. There is no need to always execute a pre-configured single strategy, which improves the flexibility of data processing and system performance.
[0188] For ease of understanding, the following describes the above data processing process using the end-cloud collaboration scenario as an example.
[0189] In a device-cloud collaboration scenario, as shown in Figure 7, the cloud side can include cloud-side devices and worker nodes. The cloud-side device can be the scheduling node described above, and there can be multiple worker nodes, such as worker node 1, worker node 2, ..., worker node n. The device side can have multiple device-side devices, such as device 1, device 2, ..., device m. Each device can communicate with the cloud side over the network based on its own needs, where m can be an integer greater than 2.
[0190] The cloud-side device includes an adaptive scheduling engine and a task warehouse. The adaptive scheduling engine can realize adaptive selection of the strategy to be executed. The task warehouse can maintain the relevant computing tasks involved in the user application, such as: an application involves P computing tasks, the execution order of these P computing tasks, etc. Of course, the task warehouse can also maintain the computing tasks that have been processed before and the relationship between the computing tasks, where P can be an integer.
[0191] Each end-side device also includes an adaptive scheduling engine and a task warehouse. The adaptive scheduling engine can realize adaptive selection of the strategy to be executed. The task warehouse can maintain the relevant computing tasks involved in the user application, such as: an application involves Q computing tasks, the execution order of these Q computing tasks, etc. Of course, the task warehouse can also maintain previously processed computing tasks and the relationship between computing tasks, where Q can be an integer.
[0192] A task request for an application may involve multiple computing tasks, some of which can be run on the end-side device, and some on the cloud-side, to achieve end-cloud collaboration. During end-cloud collaboration, for a computing task, if the input data of the computing task is on the end-side, the adaptive scheduling engine of the end-side device executes the previous steps 601 to 603, and then determines whether to run the computing task on the end-side device based on the data migration cost and the computing cost, or to migrate the input data used to run the computing task to the cloud-side device. If the input data of the computing task is on the cloud-side, the adaptive scheduling engine of the cloud-side device executes the previous steps 601 to 603, and then determines whether to run the computing task on the cloud-side device based on the data migration cost and the computing cost, or to migrate the input data used to run the computing task to the end-side device.
[0193] Regarding the process of processing multiple computing tasks requested by an application, in the embodiment of the present application, the process of image beautification is used as an example to illustrate.
[0194] As shown in Figure 8, from the original image input to the enhanced image output, five computing tasks, Task 1 through Task 5, must be executed in sequence. Task 1 is for noise reduction, Task 2 is for portrait extraction, Task 3 is for skin beautification, Task 4 is for super-resolution, and Task 5 is for image synthesis. These five computing tasks incur the same cost whether they are executed only on the client or the cloud.
[0195] If the end-side device selects the original image, to perform the beautification process, it must first perform the noise reduction task. The input data of the noise reduction task is the original image, the image size is 2.4M (the unit of image size in this application is bytes (bits), and 2.4M refers to 2.4Mb). The time to run the noise reduction task is 100 milliseconds (ms). When the optimization goal is to minimize the delay in completing a single task, the end-side device can use the relationship for determining the data migration cost introduced above to calculate the data migration cost. data =T c +D input / B u +γ·D output / B d
[0196] In this relationship, T c The value of D is 100ms, such as 100ms. input The value of D is 2.4M. output The value of B is 2.4M. u The value of is 20Mbps according to the domestic average 4G network speed, that is, 20Mb per second. d The value of γ can be 40 Mbps, or 40 Mb / s, based on the average domestic 4G network speed. Because the original image is on the client side, no data needs to be backhauled, so the value of γ is 0.
[0197] Substituting the corresponding values into the above relationship for determining the data migration cost, we can get C data .
[0198] When the optimization goal is to minimize the delay in completing a single task, the computational cost of the device running the noise reduction task is expressed as: C computer =T m
[0199] In this relationship, T m The value is in hundred milliseconds, such as 100ms.
[0200] By comparing the above C data and C computer It can be confirmed that C data >C computer , so that it can be determined that the cost of running the noise reduction task on the end-side device is the lowest and does not need to be sent to the cloud side.
[0201] Similarly, according to the above calculation method, it can be concluded that the portrait extraction task also runs at the lowest cost on the terminal device and does not need to be sent to the cloud side.
[0202] According to the above calculation method, we can get the C of the skin beautification task data <C computer , the terminal-side device can transmit the 700K output input after completing the portrait extraction task as the input data of the skin beautification task to the adaptive scheduling engine on the cloud side. The adaptive scheduling engine on the cloud side can select a suitable working node for the skin beautification task based on the auxiliary decision-making information of the skin beautification task and run the skin beautification task on the corresponding working node.
[0203] After the cloud-side worker node completes the skin beautification task, the cloud-side adaptive scheduling engine, when optimizing for the shortest single task completion delay, will use the relationship used to determine the data migration cost: data =T m +D input / B d , and the relationship used to determine the computational cost: C computer=T c +γ·D output / B d , to determine the data migration cost and calculation cost of the super-resolution task, and the result obtained by substituting the corresponding data is C data >C computer , the adaptive scheduling engine on the cloud side continues to determine the appropriate working node to run the super-resolution task.
[0204] After the working node on the cloud side finishes running the super-resolution task, the adaptive scheduling engine on the cloud side will repeat the above process of determining the data migration cost and computing cost for the super-resolution task, and obtain C data <C computer , the adaptive scheduling engine returns the output data after super-resolution processing to the end-side device as the input data of the image synthesis task, and the end-side device runs the image synthesis task.
[0205] In the above-mentioned picture beautification example, if the above-mentioned five computing tasks are all executed on the cloud side, the end-side device needs to upload 2.4M of data to the cloud side, and then the cloud side returns 6M of data to the end-side. In this case, the network bandwidth delay is: 2.4*8 / 20+6*8 / 40=0.96s+1.2s=2.16s (seconds). According to the solution provided in the embodiment of the present application, computing tasks 1, 2, and 5 are running on the end-side device, and computing tasks 3 and 4 are running on the cloud side. The end-side only needs to upload 700K (0.7M) of data to the cloud side, and then the cloud side returns 4M of data to the end-side. In this case, the network bandwidth delay is: 0.7*8 / 20+4*8 / 40=0.28s+0.8s=1.08s. It can be seen that the end-cloud collaboration solution of the present application reduces network latency and improves the efficiency of task processing.
[0206] The end-cloud collaboration scenario provided by the embodiment of the present application determines the computing cost or data migration cost according to the optimization target, and selects the end-side device or cloud-side device that meets the custom optimization target for the computing task, which effectively improves the performance of user applications and can also meet a variety of different optimization needs.
[0207] The above describes the data processing method. The following describes the data processing device in the embodiment of the present application with reference to the accompanying drawings.
[0208] As shown in FIG9 , a data processing device 90 provided in an embodiment of the present application includes:
[0209] Acquisition unit 901 is configured to respond to an application's target computing task and acquire auxiliary decision-making information, cost assessment data, and optimization targets related to the target computing task. The auxiliary decision-making information is used to determine multiple first nodes capable of running the target computing task, each first node storing target data for running the target computing task. The cost assessment data includes relevant information for running and migrating the target computing task. Acquisition unit 901 may execute step 301 in the aforementioned method embodiment.
[0210] A first processing unit 902 is configured to determine, based on the cost evaluation data and the optimization goal, a data migration cost for migrating target data from each first node and a task migration cost for migrating target computing tasks between the multiple first nodes. The first processing unit 902 may execute step 302 in the above-described method embodiment.
[0211] The second processing unit 903 is configured to execute a data migration strategy or a task migration strategy according to the task migration cost and the data migration cost corresponding to each first node. The second processing unit 903 may execute step 303 in the above method embodiment.
[0212] Optionally, the second processing unit 903 is also used to execute the task migration strategy if the task migration cost is less than the data migration cost corresponding to each first node. The task migration strategy is to migrate the target computing task between different first nodes according to the running order of the target computing task on each first node.
[0213] Optionally, the second processing unit 903 is also used to execute the data migration strategy if the data migration cost corresponding to the target node is less than the task migration cost and the data migration cost corresponding to the second node. The data migration strategy is to migrate the target data on the second node to the target node used to execute the target computing task. The second node is the first node in the first node except the target node.
[0214] Optionally, when the optimization objectives are different, the relationship equations used to determine the data migration cost and the task migration cost are different.
[0215] Optionally, the optimization objectives include at least one of the following: shortest delay in completing a single computing task, shortest delay in completing a batch computing task, lowest data transmission cost, lowest energy consumption, and optimal system performance.
[0216] Optionally, when the optimization goal is to minimize the completion delay of a single computing task, the relationship used to determine the data migration cost is:
[0217] in, is the data migration cost, T iis the target computing task's running time on the first node i, M is the number of first nodes, d j is the target data size stored in the first node j, B is the network bandwidth size, where T i d j and B are included in the cost assessment data.
[0218] Optionally, when the optimization goal is to minimize the completion delay of a single computing task, the relationship used to determine the task migration cost is:
[0219] Among them, C task is the task migration cost, T i is the running time of the target computing task on the first node i, M is the number of first nodes, d j is the size of data stored in the first node j, B is the network bandwidth, c i represents the migration time required for the target computing task to migrate from the first node i, θ j Indicates the output data size and input data size d of the target computing task after the first node j is processed. j The ratio of T i d j , B and c i , included in the cost assessment data.
[0220] In the embodiment of the present application, the operations performed by each unit in the data processing device 90 are similar to those described in the embodiments shown in Figures 3 to 5 above, and will not be repeated here.
[0221] As shown in FIG10 , a structure of a data processing device 100 provided in an embodiment of the present application includes:
[0222] The acquisition unit 1001 is configured to respond to the target computing task of the application and acquire cost evaluation data and optimization targets related to the target computing task; wherein the cost evaluation data includes relevant information for running and migrating the target computing task. The receiving unit 1001 may execute step 601 in the above method embodiment.
[0223] The first processing unit 1002 is configured to determine, based on the cost evaluation data and the optimization goal, the computational cost of executing the target computing task on the first device and the data migration cost of migrating input data for executing the target computing task to the second device. The first processing unit 1002 may execute step 602 in the above method embodiment.
[0224] The second processing unit 1003 is configured to execute a computing strategy or a data migration strategy based on the computing cost and the data migration cost. The second processing unit 1003 may execute step 603 in the above method embodiment.
[0225] Optionally, the second processing unit 1003 is further configured to execute a computing strategy if the computing cost is less than the data migration cost, wherein the computing strategy is for the first device to run a target computing task based on input data.
[0226] Optionally, the second processing unit 1003 is further configured to execute a data migration strategy if the data migration cost is less than the computing cost, wherein the data migration strategy is to migrate input data of the target computing task to the second device.
[0227] Optionally, when the optimization objectives are different, the relationship equations used to determine the data migration cost and the computation cost are different.
[0228] Optionally, the optimization objectives include at least one of the following: shortest delay in completing a single computing task, shortest delay in completing batch task computing, lowest data transmission cost, lowest energy consumption, and optimal system performance.
[0229] Optionally, when the first device is a terminal-side device and the optimization goal is to minimize the delay in completing a single task, the relationship for determining the data migration cost is: C data =T c +D input / B u +γ·D output / B d
[0230] Among them, C data is the data migration cost, B u is the network uplink bandwidth, B d is the network downlink bandwidth, D input The input data size of the target computing task, D output The output data size of the target computing task, T c is the processing time of the target computing task in the second device, and γ indicates whether the output data of the target computing task is transmitted back to the first device after the task is completed. γ=1 indicates that the output data must be transmitted back, and γ=0 indicates that the output data does not need to be transmitted back.
[0231] Optionally, when the first device is a terminal-side device and the optimization goal is to minimize the delay in completing a single task, the relationship for determining the computational cost is: C computer =T m
[0232] Among them, C computer To calculate the cost, T m The processing time of the target task on the first device is calculated.
[0233] Optionally, when the second device is a terminal-side device and the optimization goal is to minimize the delay in completing a single task, the relationship for determining the data migration cost is: C data =Tm +D input / B d
[0234] Among them, C data is the data migration cost, T m The processing time of the target computing task in the first device, B d The network downstream bandwidth.
[0235] Optionally, when the second device is a terminal-side device and the optimization goal is to minimize the delay in completing a single task, the relationship for determining the computational cost is: C computer =T c +γD output / B d
[0236] Among them, C computer To calculate the cost, T c is the processing time of the target computing task in the second device, and γ indicates whether the output data of the target computing task is transmitted back to the first device after the task is completed. γ=1 indicates that the output data must be transmitted back, and γ=0 indicates that the output data does not need to be transmitted back.
[0237] In the embodiment of the present application, the operations performed by each unit in the data processing device 100 are similar to those described in the embodiments shown in Figures 6 to 8 above, and will not be repeated here.
[0238] In another embodiment of the present application, a computer-readable storage medium is also provided, in which computer-executable instructions are stored. When the processor of the data processing device executes the computer-executable instructions, the data processing device executes the steps performed by the scheduling node in Figures 3 to 5 above.
[0239] In another embodiment of the present application, a computer-readable storage medium is further provided, in which computer-executable instructions are stored. When the processor of the data processing device executes the computer-executable instructions, the data processing device executes the steps performed by the first device in Figures 6 to 8 above.
[0240] In another embodiment of the present application, a computer program product is further provided. The computer program product includes computer program code. When the computer program code is executed on a computer, the computer device executes the steps executed by the scheduling node in Figures 3 to 5 above.
[0241] In another embodiment of the present application, a computer program product is further provided. The computer program product includes computer program code. When the computer program code is executed on a computer, the computer device executes the steps executed by the first device in Figures 6 to 8 above.
[0242] In another embodiment of the present application, a chip system is also provided, which includes one or more interface circuits and one or more processors; the interface circuits and the processors are interconnected by lines; the interface circuits are used to receive signals from the memory of the data processing device and send signals to the processor, and the signals include computer instructions stored in the memory; when the processor executes the computer instructions, the data processing device executes the steps performed by the scheduling nodes in Figures 3 to 5 above. In one possible design, the chip system may also include a memory, which is used to store program instructions and data necessary for the control device. The chip system can be composed of chips, or it can include chips and other discrete devices.
[0243] In another embodiment of the present application, a chip system is also provided, which includes one or more interface circuits and one or more processors; the interface circuits and the processors are interconnected by lines; the interface circuits are used to receive signals from the memory of the data processing device and send signals to the processor, and the signals include computer instructions stored in the memory; when the processor executes the computer instructions, the data processing device executes the steps performed by the first device in Figures 6 to 8 above. In one possible design, the chip system may also include a memory, which is used to store program instructions and data necessary for the control device. The chip system can be composed of chips, or it can include chips and other discrete devices.
[0244] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interface, device or unit, which can be electrical, mechanical or other forms.
[0245] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0246] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in whole or in part through software, hardware, firmware, or any combination thereof.
[0247] When software is used to implement the integrated unit, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrations. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state drive (SSD)).
Claims
1. A method of data processing, It is characterized in that include: In response to the target computing task of the application, auxiliary decision information, cost evaluation data and optimization target related to the target computing task are obtained; wherein the auxiliary decision information is used to determine a plurality of first nodes capable of running the target computing task, each first node storing target data for running the target computing task, and the cost evaluation data includes relevant information for running and migrating the target computing task; Determine, according to the cost evaluation data and the optimization target, a data migration cost for migrating the target data from each of the first nodes, and a task migration cost for migrating the target computing task between the plurality of first nodes; A data migration strategy or a task migration strategy is executed according to the task migration cost and the data migration cost corresponding to each first node.
2. The method according to claim 1, It is characterized in that The method further comprises: If the task migration cost is less than the data migration cost corresponding to each first node, the task migration strategy is executed, and the task migration strategy is to migrate the target computing task between different first nodes according to the running order of the target computing task on each first node.
3. The method according to claim 1, It is characterized in that The method further comprises: If the data migration cost corresponding to the target node is less than the task migration cost and the data migration cost corresponding to the second node, the data migration strategy is executed. The data migration strategy is to migrate the target data on the second node to the target node used to execute the target computing task. The second node is the first node in the first node except the target node.
4. The method according to any one of claims 1 to 3, It is characterized in that When the optimization objectives are different, the relationship equations used to determine the data migration cost and the task migration cost are different.
5. The method according to claim 4, It is characterized in that The optimization objective includes at least one of the following: The shortest delay in completing a single computing task, the shortest delay in completing batch computing tasks, the lowest data transmission cost, the lowest energy consumption, and the best system performance.
6. The method according to claim 5, It is characterized in that When the optimization goal is to minimize the delay in completing a single computing task, the relationship used to determine the data migration cost is: in, is the data migration cost, T i The target computing task is executed on the first node i for the time, M is the number of the first nodes, d j is the target data size stored in the first node j, B is the network bandwidth size, where T i d j and B are included in the cost assessment data.
7. The method according to claim 5, It is characterized in that When the optimization goal is to minimize the delay in completing a single computing task, the relationship used to determine the task migration cost is: Among them, C task is the migration cost of the task, T i The running time of the target calculation task on the first node i is calculated, M is the number of the first nodes, d j is the size of data stored in the first node j, B is the network bandwidth, c i represents the migration time required for the target computing task to migrate from the first node i, θ j Indicates the output data size and input data size d of the target computing task after the first node j is processed. j The ratio of T i d j , B and c i , included in the cost assessment data.
8. A method of data processing, It is characterized in that include: The first device responds to the target computing task of the application and obtains cost evaluation data and optimization targets related to the target computing task; wherein the cost evaluation data includes relevant information for running and migrating the target computing task; The first device determines, according to the cost evaluation data and the optimization target, a computational cost of the first device running the target computing task and a data migration cost of migrating input data to a second device running the target computing task; The first device executes a computing strategy or a data migration strategy according to the computing cost and the data migration cost.
9. The method according to claim 8, It is characterized in that The method further comprises: If the computing cost is less than the data migration cost, the first device executes a computing strategy, where the computing strategy is for the first device to run the target computing task according to the input data.
10. The method according to claim 8, It is characterized in that The method further comprises: If the data migration cost is less than the computing cost, the first device executes a data migration strategy, where the data migration strategy is to migrate input data for running the target computing task to the second device.
11. The method according to any one of claims 8 to 10, It is characterized in that When the optimization objectives are different, the relationship equations used to determine the data migration cost and the calculation cost are different.
12. The method according to claim 11, It is characterized in that The optimization objective includes at least one of the following: The shortest delay in completing a single computing task, the shortest delay in completing batch tasks, the lowest data transmission cost, the lowest energy consumption, and the best system performance.
13. The method according to claim 12, It is characterized in that When the first device is a terminal-side device and the optimization goal is to minimize the delay in completing a single task, the relational expression for determining the data migration cost is: data =T c +D input / B u +γ·D output / B d Among them, C data is the data migration cost, B u is the network uplink bandwidth, B d is the network downlink bandwidth, D input The input data size for the target computing task, D output The output data size of the target computing task, T c is the processing time of the target computing task in the second device, γ indicates whether the output data after the target computing task is executed is transmitted back to the first device, γ=1 indicates that it is to be transmitted back, and γ=0 indicates that it does not need to be transmitted back.
14. The method according to claim 12, It is characterized in that When the first device is a terminal-side device and the optimization goal is to minimize the delay in completing a single task, the relational expression for determining the computational cost is: computer =T m Among them, C computer To calculate the cost, T m A processing time of the task on the first device is calculated for the target.
15. The method according to claim 12, It is characterized in that When the second device is a terminal-side device and the optimization goal is to minimize the delay in completing a single task, the relational expression for determining the data migration cost is: data =T m +D input / B d Among them, C data is the data migration cost, T m The processing time of the target computing task in the first device, B d The downstream bandwidth of the network.
16. The method according to claim 12, It is characterized in that When the second device is a terminal-side device and the optimization goal is to minimize the delay in completing a single task, the relational expression for determining the computational cost is: C computer =T c +γ·D output / B d Among them, C computer To calculate the cost, T c is the processing time of the target computing task in the second device, γ indicates whether the output data of the target computing task is transmitted back to the first device after the task is completed, γ=1 indicates that the output data is to be transmitted back, and γ=0 indicates that the output data does not need to be transmitted back.
17. A data processing device, It is characterized in that include: A communication interface, a processor and a memory, wherein the communication interface and the processor are coupled to the memory, and the memory is used to store programs or instructions. When the programs or instructions are executed by the processor, the data processing device executes the method as described in any one of claims 1-7 or 8-16.
18. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores instructions, and when the instructions are executed on a computer device, the computer device executes the method according to any one of claims 1-7 or 8-16.
19. A computer program product, It is characterized in that The computer program product comprises a computer program code, and when the computer program code is run on a computer device, the computer device is caused to perform the method according to any one of claims 1 to 7 or 8 to 16.
20. A chip system, It is characterized in that The chip system includes one or more interface circuits and one or more processors; the interface circuits and the processors are interconnected by lines; the interface circuits are used to receive signals from the memory of the data processing device and send signals to the processor, and the signals include computer instructions stored in the memory; when the processor executes the computer instructions, the chip system executes the method as described in any one of claims 1-7 or 8-16.
21. A data processing system, It is characterized in that include: A scheduling node and a working node, wherein the scheduling node is used to execute the method described in any one of claims 1 to 7.
22. A data processing system, It is characterized in that include: A first device and a second device, wherein the first device is used to execute the method according to any one of claims 8 to 16.
Citation Information
Patent Citations
Task optimal scheduling method
CN106250240A
Task unloading, scheduling and load balancing system and method of cloud-side combined platform
CN113254095A
System for migrating tasks between edge devices of an IoT system
US20210342200A1
Cited By
Task migration method and device and storage medium
CN119271421A
Method and device for determining migration path, electronic equipment and program product
CN121530972A
