A data management method, system and storage medium

By generating data identifiers on compute nodes and allocating data blocks using a scheduler, the network congestion problem caused by compute nodes frequently accessing storage cluster metadata is solved, achieving efficient data management and compute task processing.

CN123157121APending Publication Date: 2026-11-24HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510668729.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-22
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

In distributed computing systems, computing nodes frequently retrieve metadata from the management nodes of the storage cluster, leading to network congestion and request backlog, which affects the efficiency of computing tasks.

Method used

By generating data identifiers for data partitions on the compute nodes and sending them to the scheduler, the scheduler allocates the data blocks needed for the next step based on the data identifiers. The compute nodes directly obtain data blocks from the storage nodes, reducing interaction with the management nodes.

Benefits of technology

It reduces the risk of network congestion, shortens data block retrieval time, and improves the processing efficiency of computing tasks and the performance of data management systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123157121A_ABST
    Figure CN123157121A_ABST
Patent Text Reader

Abstract

A data management method, system, and storage medium, relating to the field of computing technology, can reduce the number of interactions between computing nodes and storage clusters during data block acquisition, thereby reducing network congestion. The method includes: a computing node performing a first operation on a portion of the data of a computing task; the data after the first operation includes N data partitions, each data partition including multiple first data blocks; storing the first data blocks corresponding to the N data partitions on at least one storage node; each first data block including a data identifier; the computing node sending the data identifiers of the first data blocks corresponding to the N data partitions to a scheduler; the scheduler determining the data identifier of a second data block required by the computing node for performing a second operation based on the data identifiers of the data blocks corresponding to the N data partitions sent by the multiple computing nodes, and sending it to the computing node; the computing node acquiring the second data block based on the data identifier of the second data block and performing a second operation on the second data partition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computing technology, and in particular to a data management method, system and storage medium. Background Technology

[0002] A distributed computing system includes a computing cluster and a storage cluster. The computing cluster consists of multiple computing nodes. In order to accelerate the processing of computing tasks, multiple computing nodes need to execute computing tasks in parallel.

[0003] In related technologies, data storage and management are achieved through a remote shuffle service (RSS). This remote shuffle service is deployed in a storage cluster to store data from compute nodes. During the execution of a computation task, the compute node first needs to retrieve the required data from the storage cluster. After data processing, the result data needs to be stored on the storage nodes. In the storage cluster, the data's metadata is stored on the cluster's management node. When a compute node executes a computation task, it first retrieves the metadata from the management node and then establishes connections with multiple storage nodes to retrieve the data based on the metadata. After the computation task is completed, it needs to re-establish connections with multiple storage nodes to store the generated data. This frequent retrieval of metadata from the storage cluster's management node by multiple compute nodes can easily lead to network congestion. Summary of the Invention

[0004] This application provides a data management method, system, and storage medium. By reducing the number of interactions between computing nodes in the computing cluster and management nodes in the storage cluster during the data block acquisition process, the dependence of the computing cluster on the storage cluster is reduced, which helps to reduce the risk of network congestion between computing nodes and management nodes of the storage cluster.

[0005] To achieve the above objectives, the embodiments of this application adopt the following technical solutions:

[0006] In a first aspect, embodiments of this application provide a data management method applied to a data management system; the data management system includes: a scheduler, multiple computing nodes, and storage nodes.

[0007] The data management method includes: a first computing node among multiple computing nodes performs a first operation on a portion of the data of a computing task; the data after the first operation includes N data partitions, each data partition includes multiple first data blocks, and the first data blocks corresponding to the N data partitions are stored in at least one storage node, wherein each first data block includes a data identifier; the first computing node sends the data identifiers of the first data blocks corresponding to the N data partitions to the scheduler; the scheduler determines the data identifiers of multiple second data blocks required by the first computing node to perform a second operation based on the data identifiers of the first data blocks corresponding to the N data partitions sent by the multiple computing nodes, and sends the data identifiers of the multiple second data blocks to the first computing node; the first computing node obtains multiple second data blocks based on the data identifiers of the multiple second data blocks, and performs a second operation on the multiple second data partitions.

[0008] Where N is a positive integer greater than 1. In one example, N equals the total number of compute nodes. In another example, N is greater than the total number of compute nodes.

[0009] In summary, by configuring data identifiers for data blocks stored on storage nodes and sending these identifiers to the compute cluster scheduler, the scheduler can determine the data blocks needed by the compute node to perform the second operation (the operation to be performed in the next stage) based on the data identifiers. The scheduler then sends the data identifiers of the data blocks needed for the second operation back to the compute node. This allows the compute node to retrieve the data blocks needed for the second operation from the storage node based on the data identifiers, without first obtaining the data's metadata from the storage cluster's management node and then retrieving the data blocks from the storage node based on the metadata. This not only reduces the number of interactions between the compute node and the storage cluster's management node but also reduces the management node's burden of managing the data's metadata by transmitting the data identifiers to the compute cluster scheduler, thus better achieving storage-compute separation.

[0010] Correspondingly, the management node in the storage cluster does not need to respond to metadata retrieval requests from multiple compute nodes, which helps avoid request backlogs on the management node. Furthermore, compute nodes do not need to wait for the management node to return metadata for data blocks, which helps shorten the time spent by compute nodes retrieving data blocks. Thus, this helps to shorten the overall time to complete computation tasks, thereby improving the efficiency of the data management system in processing computation tasks.

[0011] In one possible implementation, the data management method further includes: a first computing node generating data identifiers for first data blocks corresponding to N data partitions, and sending the data identifiers for the first data blocks corresponding to the N data partitions to at least one storage node.

[0012] In this embodiment, the data identifiers for the data partitions are generated by the compute nodes, and the processes of generating data identifiers by the M compute nodes do not interfere with each other. Compared to related technologies where the management nodes in the storage cluster uniformly generate the metadata of the data partitions, this embodiment does not require the management nodes in the storage cluster to generate the data identifiers for the data partitions, which helps to reduce the dependence of the identifier generation process on the management nodes in the storage cluster.

[0013] Moreover, multiple computing nodes can asynchronously generate data identifiers for their respective data blocks, which helps improve the efficiency of data identifier generation.

[0014] In one possible implementation, at least one storage node generates data identifiers for the first data blocks corresponding to N data partitions and sends the data identifiers for the first data blocks corresponding to the N data partitions to the first computing node.

[0015] This embodiment generates data identifiers uniformly through storage nodes, facilitating the modification of the data identifier format as needed during the application of the data management system in business operations. This allows for flexible adjustment of the data identifier format for data blocks.

[0016] In one possible implementation, the storage node is further used to store the mapping between the data identifier of each data block and the storage address of each data block in the storage node; the first computing node obtains multiple second data blocks according to the data identifiers of multiple second data blocks, including: the first computing node sends the data identifiers of multiple second data blocks to the storage node; the storage node determines the storage address of multiple second data blocks according to the data identifiers and mapping of multiple second data blocks, obtains multiple second data blocks according to the storage address of multiple second data blocks, and sends the multiple second data blocks to the first computing node.

[0017] For example, for each of a plurality of second data blocks, the first compute node sends the data identifier of the second data block to the storage node storing the data block. For example, the mapping is used to look up the storage address of the first data block in the storage node based on the data identifier of the first data block.

[0018] In this embodiment, the storage address of a data block within the storage node is managed and used by the storage node. The compute node only needs to be aware of the data block's data identifier, not its storage address. This achieves storage-compute separation in the data management system. Regardless of when the storage node changes the data block's storage address, the compute node can request the data block from the storage node using its partition identifier. This allows the storage node to flexibly adjust the data block's storage address based on the actual storage space available, improving the storage flexibility of data blocks within the storage node.

[0019] In one possible implementation, the storage node is equipped with a read interface (get interface) to receive data identifiers sent by the compute node. This allows the storage node to locate the storage address of a data block based on the data identifier, retrieve the data block from the storage address, and send the data block to the compute node. Compared to related technologies, this embodiment reduces the number of interfaces that the storage node needs to expose to the compute node (eliminating the need to provide an interface for the compute node to request metadata of data blocks from the management node in the storage cluster).

[0020] This helps simplify the interaction logic between storage nodes and compute nodes, and helps reduce the interface maintenance burden on storage nodes.

[0021] In one possible implementation, the first computing node performs a first operation on a portion of the data in M ​​batches. The method further includes: after receiving the data identifiers of the first data blocks corresponding to the N data partitions sent by the first computing node, the scheduler organizes the data identifiers of the first data blocks sent by the first computing node into a two-dimensional data structure (such as a data matrix (object matrix, ObjMat)).

[0022] For example, rows in a two-dimensional data structure represent data blocks corresponding to each of the N data partitions, and columns in a two-dimensional data structure represent data in M ​​batches.

[0023] For example, the columns in the two-dimensional data structure represent the data blocks corresponding to each of the N data partitions, and the rows in the two-dimensional data structure represent the data in M ​​batches.

[0024] By storing data identifiers using a two-dimensional data structure and leveraging the data distribution characteristics of the data structure itself, the data partition's data identifier can be represented by rows and columns, which helps simplify the scheduler's execution logic for determining the data identifiers of multiple second data partitions.

[0025] In one possible implementation, the scheduler determines the data identifiers of multiple second data blocks required by the first computing node to perform the second operation based on the data identifiers of the first data blocks corresponding to the N data partitions sent by multiple computing nodes. This includes: the scheduler determining the data identifiers of multiple second data blocks required by the first computing node to perform the second operation based on the data identifiers of each first data block represented by a two-dimensional data structure.

[0026] In this embodiment, the scheduler determines the data identifier of the second data block based on the data identifier of the data block identified by the two-dimensional data structure. Since the two-dimensional data structure only includes the data identifier of the data block and does not include the actual data in the data block, the scheduler only needs to organize and arrange the data identifiers of the data blocks and assign data identifiers to each computing node. The storage cluster does not need to operate on the data in the data block (as related technologies also involve storage nodes in the storage cluster merging multiple data blocks into a data file).

[0027] This helps reduce the read / write (IO) load on storage nodes in the storage cluster caused by data block merging.

[0028] In one possible implementation, the first operation and the second operation are different stages in performing a computational task. For example, the first operation belongs to a first stage, and the second operation belongs to a second stage, which is the stage following the first stage.

[0029] In this way, after each computing node completes its operations in the first phase, the scheduler can send at least one data block required for the second phase to multiple computing nodes. During the execution of computing tasks, the data management method helps to shorten the time spent acquiring data blocks in multiple phases. This helps improve the efficiency of the data management system in processing computing tasks, thereby improving the performance of the data management system.

[0030] In one possible implementation, the data management method further includes: a first computing node sending a data identifier of a first data block; and a storage node locating and deleting the first data block based on the data identifier and mapping of the first data block.

[0031] Optionally, the first computing node sends the data identifier of the first data block, specifically by sending a deletion request, wherein the deletion request is used to request the deletion of the first data block. Optionally, the deletion request includes the data identifier of the first data block. For example, the deletion request may also include at least one of the following: a deletion identifier or the node identifier of the first computing node.

[0032] In this way, storage nodes only need to provide storage, read, and delete interfaces to compute nodes to meet the interaction needs between compute nodes and storage nodes during the execution of computing tasks. This facilitates the ease with which compute nodes manage data blocks based on data identifiers.

[0033] Secondly, a data management system is provided. The data management system includes a scheduler, multiple computing nodes, and storage nodes. The method includes: a first computing node among the multiple computing nodes, configured to perform a first operation on a portion of the data of a computing task. The data after the first operation includes N data partitions, each data partition including multiple first data blocks. The first data blocks corresponding to the N data partitions are stored in at least one storage node, wherein each first data block includes a data identifier. The first computing node is further configured to send the data identifiers of the first data blocks corresponding to the N data partitions to the scheduler. The scheduler is configured to determine the data identifiers of multiple second data blocks required by the first computing node when performing a second operation based on the data identifiers of the first data blocks corresponding to the N data partitions sent by the multiple computing nodes, and send the data identifiers of the multiple second data blocks to the first computing node. The first computing node is further configured to obtain multiple second data blocks based on the data identifiers of the multiple second data blocks and perform a second operation on the multiple second data partitions.

[0034] In one possible implementation, the first computing node is further configured to generate data identifiers for the first data blocks corresponding to the N data partitions, and send the data identifiers for the first data blocks corresponding to the N data partitions to at least one storage node; or, at least one storage node is further configured to generate data identifiers for the first data blocks corresponding to the N data partitions, and send the data identifiers for the first data blocks corresponding to the N data partitions to the first computing node.

[0035] In one possible implementation, the storage node is further configured to store the mapping between the data identifier of the data block and the storage address of the data block in the storage node; the first computing node is specifically configured to send the data identifiers of multiple second data blocks to the storage node; the storage node is further configured to determine the storage address of multiple second data blocks based on the data identifiers and mapping of the multiple second data blocks, obtain the multiple second data blocks based on the storage address of the multiple second data blocks, and send the multiple second data blocks to the first computing node.

[0036] In one possible implementation, the first operation on some data is performed in M ​​batches. The method further includes a scheduler, which, after receiving the data identifiers of the first data blocks of the N data partitions sent by the first computing node, organizes the data identifiers of the first data blocks sent by the first computing node into a two-dimensional data structure, wherein the rows in the two-dimensional data structure represent the data blocks corresponding to each of the N data partitions, and the columns in the two-dimensional data structure represent the data in the M batches.

[0037] In one possible implementation, the scheduler is specifically configured to determine the data identifiers of multiple second data blocks required by the first computing node to perform the second operation based on the data identifiers of each data block represented by a two-dimensional data structure.

[0038] In one possible implementation, the first operation and the second operation are different stages in performing a computational task.

[0039] Thirdly, a computer device is provided, the computer device comprising: a processor and a memory, the memory storing at least one computer program, the at least one computer program being loaded and executed by the processor to implement the method described in the first aspect or any possible implementation thereof.

[0040] Optionally, the computing device is used to implement either a computing node or a scheduler. Optionally, the computing device can also be used to implement the data management function of the storage node, that is, the computing device is used to run computer programs to implement the data management method as described in the first aspect or some steps of the data management method described in the first aspect, so that multiple computing devices can collaboratively implement the data management method.

[0041] Fourthly, this application provides a computing device cluster, including at least one computing device, each computing device including a processor and a memory; the processor of the at least one computing device is used to execute instructions stored in the memory of the at least one computing device, so that the computing device cluster performs the method described in the first aspect above or any possible implementation of the first aspect.

[0042] Optionally, the computing device cluster is used to implement a computing cluster and / or a storage cluster, wherein the computing cluster includes multiple computing nodes and a scheduler in the data management system, and the storage cluster includes at least one storage node in the data management system.

[0043] For example, the computing device cluster can be implemented as a data management system as described in the second aspect, or a part of a data management system.

[0044] Fifthly, this application provides a computer program product containing instructions that, when executed by a cluster of computing devices, cause the cluster of computing devices to perform the method described in the first aspect or any possible implementation thereof.

[0045] In a sixth aspect, this application provides a computer-readable storage medium including computer program instructions that are executed by a cluster of computing devices.

[0046] The beneficial effects described in aspects two through six of this application can be referred to in the analysis of the beneficial effects of aspect one, and will not be repeated here. Attached Figure Description

[0047] Figure 1 A schematic diagram illustrating a data management scenario for related technologies;

[0048] Figure 2 A schematic diagram of the framework of the data management system provided in the embodiments of this application;

[0049] Figure 3 One of the flowcharts illustrating the data management method provided in the embodiments of this application;

[0050] Figure 4 This is a schematic diagram illustrating the mapping relationship between data identifiers and data partitions provided in an embodiment of this application.

[0051] Figure 5 A flowchart illustrating the execution process of multiple stages of a computational task provided in an embodiment of this application;

[0052] Figure 6 A second schematic flowchart illustrating the data management method provided in this application embodiment;

[0053] Figure 7 A schematic diagram of a data management device provided in an embodiment of this application;

[0054] Figure 8 A schematic diagram of a computing device cluster provided in an embodiment of this application;

[0055] Figure 9 This is a schematic diagram illustrating the connection method between computing device clusters provided in an embodiment of this application. Detailed Implementation

[0056] The network architecture and business scenarios described in the embodiments of this application are for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided in the embodiments of this application. As those skilled in the art will know, with the evolution of network architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of this application are also applicable to similar technical problems.

[0057] It should be understood that in the embodiments of this application, "at least one (item)" refers to one or more, "more than one" refers to two or more, "at least two (items)" refers to two or three or more, and "and / or" is used to describe the association relationship of related objects, indicating that there can be three relationships. For example, "A and / or B" can represent: only A exists, only B exists, and A and B exist simultaneously, where A and B can be singular or plural. The character " / " generally indicates that the related objects before and after are in an "or" relationship. "At least one (item) of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one (item) of a, b, or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple. It should be understood that in the embodiments of this application, "B corresponding to A" means that B is associated with A. For example, B can be determined based on A. It should also be understood that determining B based on A does not mean determining B solely based on A; B can also be determined based on A and / or other information.

[0058] The terms "first" and "second," etc., used in the specification, claims, and drawings of this application are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or apparatuses.

[0059] It should be noted that the information (including but not limited to device information, personal information of the subject, etc.), data (including but not limited to data used for analysis, data stored, data displayed, etc.) and signals involved in this application are all authorized by the subject or fully authorized by all parties, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions.

[0060] In big data analytics scenarios, massive amounts of data need to be processed. With the explosive growth of data volume in big data analytics, big data computing frameworks face increasingly severe performance challenges. Therefore, it is necessary to continuously explore and optimize big data computing frameworks to improve their performance in handling large-scale data.

[0061] In some embodiments, the computing framework for processing computing tasks includes a computing cluster and a storage cluster. The computing cluster includes multiple computing nodes. These computing nodes process computing tasks (such as data analysis and data statistics) in a distributed and parallel manner. The storage cluster includes a management node and at least one storage node. The storage cluster is used to provide data storage services.

[0062] For example, the execution of a computing task includes multiple stages. In each stage, multiple computing nodes perform operations on the data of the computing task in parallel to obtain the data after the operations are completed. Here, the data of the computing task refers to the object being processed by the computing task.

[0063] Data from the previous stage that has completed operations becomes the data to be processed in the next stage. For example, for any two adjacent stages, the data from the previous stage, which was processed by multiple compute nodes, is divided into data blocks. These data blocks are the data blocks needed by multiple compute nodes to perform operations in the next stage. The data from the completed operations can be temporarily stored in the storage nodes of the storage cluster.

[0064] For example, different data blocks from the completed operations can be stored on different storage nodes. For instance, after a compute node performs an operation on data, the data is stored on at least one storage node; multiple compute nodes then pull the data blocks needed to perform the next operation from at least one storage node in the storage cluster. Therefore, a shuffle process also needs to be set up in the computing framework so that data blocks obtained by a compute node in the previous stage can be transferred to other compute nodes in the next stage, realizing distributed processing of computing tasks.

[0065] In one possible implementation, such as Figure 1 As shown, after the compute node performs operations on the data to obtain data blocks, the compute node pushes the data blocks into a storage cluster based on an RSS framework (such as a Celeborn cluster (an RSS server)). Different data blocks are pushed into at least one storage node in the storage cluster.

[0066] For example, compute node 1 pushes the processed data block 1 into data partition 1 of storage node 1, data block 2 into data partition 2 of storage node 1, and data block 3 into data partition 3 of storage node 2. Compute node 2 then pushes the processed data block 4 into data partition 2 of storage node 1, and data block 5 into data partition 3 of storage node 2.

[0067] Each storage node has a worker process responsible for managing disk resources and memory within the node. Optionally, the worker also merges multiple data blocks from the same data partition into a data file. For example, the worker merges multiple data blocks from different compute nodes, and / or those with the same partition identifier (i.e., corresponding to the same data partition), into a single data file and writes the data file to disk on the storage node. Exemplarily, multiple data blocks are stored as a data file on the storage node's hard drive.

[0068] In this implementation, compute node 1 and compute node 2 establish connections with the management node and each storage node in the storage cluster, respectively. The management node (such as the celeborn master) is used to generate and maintain metadata for data blocks or data files. This metadata describes the data information in the data blocks or data files. For example, the metadata of a data block includes at least one of the following: the storage address of the data block on the storage node, the data type of the data included in the data block, the creation time of the data block, and the modification time.

[0069] For example, taking the metadata of a data block as an example, the metadata of the data block includes at least one of the following: the node identifier of the target storage node, the storage address of the data block in the target storage node, etc. Here, the target storage node is the storage node in the storage cluster used to store the data block, and the node identifier of the target storage node is used to identify the target storage node.

[0070] When a compute node needs to use a data block or data file, it pulls the data block or data file from the storage nodes in the storage cluster. Taking the process of pulling a data block as an example, the compute node needs to send a metadata retrieval request to the management node to obtain the metadata of the data block from the management node; based on the metadata of the data block, the compute node obtains the storage address of the data block in the target storage node. Subsequently, the compute node pulls the data block from the target storage node based on the storage address.

[0071] However, in the process of retrieving data blocks from the storage cluster, compute nodes need to interact with the storage cluster twice: the compute node requests the metadata of the data block, and the compute node reads the data block from the storage node based on the metadata. When the number of data blocks to be retrieved is large, and / or the total number of compute nodes in the compute cluster is large, frequent communication needs to be established between multiple compute nodes and the management node of the storage cluster, which can easily lead to network congestion between the compute cluster and the storage cluster.

[0072] Additionally, the management node of the storage cluster may not be able to process a large number of metadata retrieval requests sent by the compute nodes in a timely manner, resulting in a request backlog on the management node.

[0073] Furthermore, the process of merging multiple data blocks into a data file by a storage node requires reading multiple data blocks into a single file, merging them, and then writing the data file to disk. This process incurs additional read / write (IO) overhead.

[0074] Based on this, embodiments of this application provide a data management method applied to a data management system. Specifically, computing nodes obtain data blocks through data identifiers, and these data identifiers are distributed to computing nodes by the scheduler in the computing cluster. This avoids computing nodes sending metadata retrieval requests to the management nodes in the storage cluster, thereby reducing request backlog at the management nodes and lowering the risk of network congestion between computing nodes and the management cluster in the storage cluster.

[0075] In this embodiment, the compute nodes in the computing cluster obtain the data blocks stored in the storage nodes through the data block's data identifier. Unlike related technologies, in this embodiment, the data block's data identifier is distributed by the scheduler in the computing cluster. That is, the process of distributing the data block's data identifier does not involve interaction between the compute nodes and the management nodes.

[0076] In this process, multiple compute nodes report data identifiers of multiple data blocks included in their completed operations to the scheduler. Based on these data identifiers, the scheduler allocates the data blocks needed by each compute node for its next operation. This helps reduce the compute nodes' dependence on the management nodes in the storage cluster during data block acquisition, thus facilitating the separation of storage and compute.

[0077] Figure 2 This is a schematic diagram of the framework of the data management system provided in this embodiment. Figure 2 As shown, the data management system includes: computing cluster 10 and storage cluster 20.

[0078] The computing cluster 10 is a distributed system consisting of multiple interconnected computer devices used to efficiently process computing tasks through collaborative work.

[0079] Optionally, such as Figure 2 As shown, the computing cluster 10 includes a scheduler 11 and multiple computing nodes 12 (such as...). Figure 2 The computing cluster 10 includes X computing nodes 12 (where X is a positive integer greater than 1). The scheduler 11 is a functional component of the computing cluster 10 used to implement task orchestration and resource allocation.

[0080] In some embodiments, the scheduler 11 can be located in any computer device in the computing cluster 10.

[0081] Optionally, in this embodiment, the scheduler 11 is used to obtain data identifiers of data blocks from multiple computing nodes 12 and allocate data identifiers of data blocks required to perform the next operation to multiple nodes.

[0082] For example, the scheduler 11 is also configured to determine the operations that the multiple computing nodes 12 need to perform. For instance, after the multiple computing nodes have completed their respective operations in parallel, the scheduler 11 indicates to the multiple computing nodes 12 the next operation to be performed, as well as the data identifier of the data block required to perform the next operation.

[0083] Computing node 12 is used to perform computational tasks. Computing node 12 is used to perform operations on data to complete the computational tasks. Optionally, computing node 12 can be implemented as at least one of the following: a computer device, a virtual machine on a computer device, a process, etc. Exemplarily, the types of operations include, but are not limited to: filtering, statistics, or data computation.

[0084] Optionally, for any compute node 12, compute node 12 includes at least one executor. The executor is used to perform operations on data blocks. For example, the executor may be a first application installed in compute node 12 for performing operations on data according to a preset program. Exemplarily, the type of operation may be indicated by scheduler 11.

[0085] For example, the executor includes a calculator and a data consumer. The calculator is used to perform operations on the data, and the data consumer is used to pull data blocks from storage nodes 21 in the storage cluster 20 based on the data identifier of the data blocks.

[0086] Unlike in the prior art where computing nodes request metadata of data blocks from management nodes in the storage cluster, in this application, the data consumer pulls data blocks from storage node 21 in the storage cluster 20 through data identifiers.

[0087] For example, the calculator is also used to push the completed data block into the storage node 21 in the storage cluster 20.

[0088] In one embodiment, the scheduler 11 can be located in the target compute node among multiple compute nodes 12. Connections are established between the other compute nodes among the multiple compute nodes 12 and the target compute node so that the scheduler 11 can send data block identifiers to the multiple compute nodes 12. In this case, the data block identifier allocation process is completed among the multiple compute nodes 12 without relying on the storage cluster 20.

[0089] As described above, the computation task is divided into multiple operations. For example, these operations can be executed by multiple computing nodes 12 in multiple stages; after one stage ends, the next stage begins. Within a stage, multiple computing nodes 12 perform operations on different data blocks in parallel. Since the data blocks whose operations have been completed may be processed by other computing nodes in the next stage, the computation task process also requires the participation of the storage cluster 20 to store the data blocks generated by one computing node and to support other computing nodes in retrieving these data blocks.

[0090] Storage cluster 20 is a distributed storage system comprising multiple storage nodes 21, used to provide highly reliable data storage and management services.

[0091] Storage node 21 is a functional unit in storage cluster 20 used for storing and managing data. For example, storage node 21 is used for data storage, providing access interfaces, and performing management services such as data compression and encryption. Storage node 21 corresponds to at least one physical storage medium. For instance, a storage node may be a physical device containing storage media such as disks for storing data blocks; or it may be a virtual machine, container, or cloud platform used to allocate physical storage media.

[0092] For example, in this embodiment of the application, storage node 21 is used to store data blocks obtained after computing node 12 performs operations on data. Storage node 21 also provides an interface for data management, so that computing node 12 can read, delete or modify the data blocks stored in storage node 21 through the interface.

[0093] In some embodiments, the compute node 12 is equipped with a client for the storage cluster 20, which is used to implement data management functions such as data storage, reading, and deletion. For example, the compute node 12 sends data blocks to the storage node 21 through the client of the storage cluster 20.

[0094] Optionally, the client of storage cluster 20 can also be used to determine the data identifier of the data block. For example, compute node 12 generates the data identifier of the data block based on the client of storage cluster 20, and then sends the data block and the data identifier of the data block to at least one storage node 21 in storage cluster 20 through the client of storage cluster 20.

[0095] The data management system provided in this application embodiment is used to process computing tasks, including but not limited to: data analysis tasks, data statistics tasks, etc.

[0096] For example, a data management system can function as a recommendation system or as part of a statistical data collection system within a recommendation system. The data management system processes browsing data for products in a specific region and predicts a recommended product list for that region. In this example, multiple computing nodes 12 are used to filter out product categories and prices with high browsing volume based on a large amount of historical browsing data.

[0097] For example, a data management system can be used as part of a traffic control system or as a component for statistical data collection. The data management system processes traffic flow data at an intersection at different times to dynamically adjust the duration of traffic lights. In this example, multiple computing nodes 12 are used to collect traffic flow data for each intersection at different times.

[0098] In addition, the data management system can also be used for business scenarios such as statistics on regional population and word frequency, which will not be listed here.

[0099] The solutions provided in the embodiments of this application will now be described with reference to the accompanying drawings.

[0100] The data management method provided in this application embodiment is executed by a data management system. The data management system includes... Figure 2 The corresponding embodiment includes computing cluster 10 and storage cluster 20. Exemplarily, the data management system includes... Figure 2 The computing cluster 10 includes a scheduler 11, multiple computing nodes 12, and at least one storage node 21 in the storage cluster 20.

[0101] For example, the computing cluster 10 supports the simultaneous processing of at least one computing task, and the different computing tasks are independent of each other. This embodiment of the application uses the execution process of any one computing task as an example to illustrate the data management method. Correspondingly, the multiple computing nodes 12 are computing nodes in the computing cluster 10 that collaboratively execute the same computing task.

[0102] For example, in a data management system, data partitions are configured with data identifiers, which are used to identify the data partitions. For example, data partitions can serve as the smallest unit of data management, and operations such as data allocation, data storage, data reading, or data deletion can all be performed on a per-partition basis.

[0103] Optionally, the computing task requires multiple computing nodes to perform multiple operations respectively. The data management method when computing nodes perform the first and second operations is used as an example in this application embodiment, which does not constitute a specific limitation. Other details will not be repeated.

[0104] For example, the first operation is an operation for processing data, which includes, but is not limited to, at least one of the following: mathematical operations (such as data addition, subtraction, multiplication, division, multiplication, etc. or a combination of operations including at least two operations), filtering (such as finding all data greater than or equal to a certain value, or finding all data within a certain threshold range), or statistics (such as the number of occurrences, frequency, and time period of data with the same statistical attributes).

[0105] For example, the second operation is the next operation that the computing node needs to perform after the first operation. The type of the second operation can be the same as or different from the type of the first operation. The specific types of the first and second operations are determined based on the computing task and are not limited here.

[0106] In the data management method of this application embodiment, each of the multiple computing nodes needs to interact with the scheduler and the storage node. For clarity, this application embodiment uses a first computing node as an example for illustrative description. The first computing node can be any one of the multiple computing nodes.

[0107] Figure 3 A flowchart illustrating the data management method provided in an embodiment of this application is shown. Figure 3 As shown, the method may include several of the following steps:

[0108] Step 301: The first computing node performs a first operation on a portion of the data from the computing task.

[0109] In some embodiments, multiple computing nodes are used to process the data of a computing task in parallel; correspondingly, each computing node processes a portion of the data of the computing task. For example, if the data of a computing task is 1GB and the data management system includes 5 computing nodes, then for each computing node, the portion of the data of the computing task is 200MB out of the 1GB.

[0110] For example, the scheduler allocates partial data to multiple computing nodes respectively. The amount of partial data allocated by the scheduler to multiple computing nodes may be equal or unequal.

[0111] Optionally, the execution process of the computation task is divided into multiple stages, and the next stage begins after one stage is completed; the data for the computation tasks corresponding to different stages are different.

[0112] For example, the data obtained by multiple computing nodes in the previous stage after completing their operations becomes the data for the computing task in the next stage. For the first stage of a computing task, the data is the raw data. For instance, if the computing task is to statistically analyze the frequency of occurrence of various words in a document, the raw data is a single document.

[0113] In some embodiments, the data after performing the first operation refers to the result data obtained by the first computing node performing the first operation on a portion of the data.

[0114] The data after the first operation is completed includes N data partitions, and each data partition includes multiple first data blocks.

[0115] In some embodiments, each data partition includes at least one data block. Each data block includes a portion of the data that has undergone the first operation. For example, the data that has undergone the first operation is: data1, data2, data3, data4, ..., dataz; where z is a positive integer greater than 1. Specifically, first data block 1 includes: data1 and data2; first data block 2 includes: data3 and data4, and so on.

[0116] Optionally, N is a positive integer greater than 1, such as N = 2, 3, 4, 5, ...

[0117] For example, N is a preset value. In one possible implementation, N is equal to the total number of computing nodes participating in the computing task, or N is greater than the total number of computing nodes participating in the computing task.

[0118] For example, N is indicated by the scheduler. For instance, when the scheduler sends partition indication information to the first compute node, the partition indication information includes the value of N.

[0119] In one possible implementation, the data block has a partition identifier, which indicates the data partition to which the data block belongs. Data blocks within the same data partition have the same partition identifier. For example, the partition identifier is also called a partition number.

[0120] In one possible implementation, each of the N data partitions, in its first data partition, comprises M data blocks, where M is a positive integer. For example, M is a positive integer greater than or equal to 1.

[0121] Optionally, the value of M is related to the batches into which a portion of the computation task's data is divided, with the batches being divided by the computation nodes.

[0122] For example, based on its computing power, the first computing node divides a portion of the computing task's data into M batches, each of the M batches including multiple data points from the partial data; the first computing node performs a first operation on one batch of data from the M batches at a time; after performing the first operation on a batch of data, the first computing node divides the data from that batch of data into N data blocks, each of the N data blocks being included in a different data partition.

[0123] After performing the first operation on all M batches of data, the first computing node obtains M*N first data blocks. In this case, the total number of first data blocks corresponding to the N data partitions is M*N.

[0124] Optionally, the first computing node divides a portion of the computing task's data into M batches based on its data processing capabilities. For example, the number of batches into which the corresponding data is divided can vary for different computing nodes. That is, the value of M can be different for different computing nodes.

[0125] For example, when M equals 1, it means that the first computing node can complete the first operation on a portion of the data of the computing task at a time. In other words, in this case, the portion of the data of the computing task is a batch of data.

[0126] The following example illustrates how data blocks can be divided, with a portion of the computation task's data divided into M batches and the first computation node processing one batch of data.

[0127] In one example, the data is divided into blocks before the first operation is executed. For example, the data management method also includes: before the first computing node performs the first operation on the batch of data, the first computing node divides the batch of data into at least N parts; the computing node performs the first operation on each of the N parts to obtain at least N first data blocks.

[0128] In another example, data is partitioned after the first operation is performed. For instance, the data management method further includes: after the first computing node performs the first operation on the batch of data, the first computing node partitions the batch of data after the first operation is performed to obtain N first data blocks.

[0129] For example, the first compute node divides the data into blocks according to a block partitioning algorithm such as round-robin partitioning or hash partitioning. In one example, the block partitioning algorithm is indicated by the scheduler, such as partition indication information sent by the scheduler, which is also used to indicate the block partitioning algorithm.

[0130] Optionally, typically, the first data block includes at least one piece of data. For example, the number of pieces of data included in each data block may be equal or unequal.

[0131] For example, in some cases, at least one blank first data block exists among the N first data blocks, and this blank first data block does not contain any data. This blank first data block will also have a data identifier (see the embodiment corresponding to step 320 for details) to ensure that each computing node can obtain N first data blocks after performing the first operation on each batch of data.

[0132] Step 302: The first computing node obtains the data identifier of the first data block corresponding to the N data partitions.

[0133] Each first data block includes a data identifier. For example, a first data block including a data identifier means that the first data block has a data identifier used to indicate the first data block.

[0134] In some embodiments, the data identifier of a data block is a universally unique identifier (UUID) in the data management system.

[0135] In one possible implementation, the data identifier of a data block includes a first sub-identifier and a second sub-identifier. Optionally, the first sub-identifier is used to distinguish different data blocks from the same computing node (such as the first computing node). For example, the first sub-identifiers of the first data blocks corresponding to the N data partitions included in the data after the first operation are different.

[0136] For example, the first sub-identifier includes at least one of the following: a system timestamp or a random number. The random number is generated by a random number generation algorithm; the random number generation algorithm includes, for example, at least one of a linear congruential generator (LCG) and a Mersenne twister (MT) algorithm.

[0137] Optionally, the second sub-identifier is used to distinguish data blocks from different computing nodes. For example, computing node 1 and computing node 2 each asynchronously and in parallel process a portion of the data of the computing task, resulting in data block 1 and data block 2 respectively; data block 1 and data block 2 each have different second sub-identifiers.

[0138] For example, the second sub-identifier includes the node identifier of the computing node, the node identifier of the first computing node is used to identify the first computing node, and different computing nodes have different node identifiers.

[0139] Optionally, the data identifier of the first data block can be: first sub-identifier + second sub-identifier, or second sub-identifier + first sub-identifier. For example, the data identifier of the first data block can be: system timestamp + node identifier of the first computing node. Of course, the data identifier of the first data block can also be: node identifier of the first computing node + system timestamp.

[0140] The first sub-identifier can distinguish data blocks from the same computing node, avoiding duplicate data identifiers for different data blocks obtained from the same computing node; the second sub-identifier can distinguish data blocks from different computing nodes.

[0141] In this way, the data identifiers, including the first and second sub-identifiers, are globally unique within the data management system. This helps prevent computing nodes from acquiring multiple data blocks using a single data identifier due to duplicate identifiers, which could lead to anomalies in the data block acquisition process. This, in turn, improves the reliability of the data management method.

[0142] In one possible implementation, the data identifier of the data block further includes a third sub-identifier, which describes the data attributes of the data block. For example, the data attributes include at least one of the following: the data size of the data block, the partition identifier of the data block, etc.

[0143] The data size of a data block refers to the total amount of data in the data block, which includes at least one piece of data. For example, if the data size of a first data block is 10 megabits (Mbytes, Mb), it means that the total data size of all data included in the first data block is 10M. For an introduction to partition identifiers, please refer to the embodiment corresponding to step 301 above.

[0144] By including a third sub-identifier in the data identifier, the scheduler in the data management system can understand the status of each data block based on the data identifier. This helps the scheduler to allocate the second data block to the first computing node more rationally.

[0145] For example, step 302 can be implemented using either "Method 1, where the data identifier is generated by the compute node" or "Method 2, where the data identifier is generated by the storage node". Please refer to the detailed embodiments of Method 1 and Method 2 in the following examples.

[0146] Step 303: The first computing node stores the first data blocks corresponding to the N data partitions in at least one storage node.

[0147] In some embodiments, the first data blocks corresponding to the N data partitions can be stored in the same storage node or stored in at least two different storage nodes.

[0148] In one example, after the first compute node performs a first operation on a batch of data, the resulting N first data blocks are stored on the same storage node. For example, after the first compute node performs a first operation on a batch of data, it sends the resulting N first data blocks to the first storage node. The first storage node can be any one of at least one storage node.

[0149] In another example, multiple first data blocks included in the same data partition (e.g., M data blocks) can be stored on the same storage node. For instance, after performing a first operation on a portion of the data for a computing task, the first computing node stores the first data blocks included in each of the N data partitions to the same storage node.

[0150] For example, the selection method of at least one storage node is set according to actual needs and is not limited here.

[0151] In one possible implementation, in order for the computing nodes in the computing cluster to subsequently retrieve the corresponding data blocks from the storage nodes based on the data identifiers, at least one storage node also needs to store the data identifiers of the first data blocks corresponding to the N data partitions. For example, if the first data block 1 is stored in storage node 1 of at least one storage node, then storage node 1 also needs to store the data identifier of the first data block 1.

[0152] Optionally, for any first data block 1, the first computing node sends the first data block 1 and its data identifier 1 to A storage nodes, so that the A storage nodes store the first data block 1 and its data identifier 1. Here, A is a positive integer, such as A = 1, 2, 3, ...

[0153] For example, when A is greater than 1, the first computing node stores a first data block to multiple storage nodes to achieve redundant storage and improve the storage reliability of the data block.

[0154] In one possible implementation, A storage nodes also need to establish a mapping between the first data block 1 and the data identifier 1 of the first data block 1, so that any one of the multiple computing nodes can obtain the data block 1 from the storage node through the data identifier 1.

[0155] The mapping is used to find the storage address of the first data block in the storage node based on the data identifier of the first data block.

[0156] For example, the mapping is recorded in a mapping table, where each row corresponds to a data block, and the row includes the data identifier of the data block and the storage address of the data block.

[0157] In one example, such as Figure 4 As shown, there is a mapping between the data identifier of each data block and the data blocks stored in the storage node. The storage node can find the data block identified by the data identifier through the mapping and the data identifier.

[0158] In this way, compute nodes can manage (such as store, read, delete, etc.) data blocks using the data identifier of the data blocks. The storage address of the data block in the storage node is managed and used by the storage node, and the compute node does not need to be aware of the storage address of the data block in the storage node.

[0159] This achieves separation of computing and storage in the data management system. Regardless of when a storage node sets or adjusts the storage address of a data block, it does not affect the data block's identifier. Therefore, compute nodes can retrieve data blocks from storage nodes using the data block's identifier. This allows storage nodes to flexibly adjust the storage address of data blocks based on the actual storage space available, improving the storage flexibility of data blocks within the storage nodes.

[0160] Step 304: The first compute node sends the data identifiers of the first data blocks corresponding to the N data partitions to the scheduler. Correspondingly, the scheduler receives the data identifiers of the first data blocks corresponding to the N data partitions.

[0161] The following example illustrates the data identifier sending process by dividing a portion of the computation task's data into M batches, with the first computing node performing a first operation on one batch of data at a time. Referring to the embodiment corresponding to step 301, in this case, the first data blocks corresponding to the N data partitions total M*N first data blocks, where each data partition includes M first data blocks.

[0162] It is understandable that when M equals 1, the meaning of a batch of data is the same as that of a portion of the data in the computation task.

[0163] In one possible implementation, sending the data identifiers of the M*N first data blocks to the scheduler is done in steps.

[0164] Optionally, the first computing node performs the first operation on one batch of data from each of the M batches of data, and after obtaining N first data blocks, the first computing node sends the data identifiers of the N first data blocks to the scheduler.

[0165] Here, the N first data blocks are obtained after performing the first operation on a batch of data. In this method, the data identifiers of the M*N first data blocks are sent to the scheduler by the first computing node in M ​​parts.

[0166] In this way, while the computing node is performing the first operation on a portion of the data for the computing task, it can perform the following two stages in parallel:

[0167] 1. Perform the first operation on a batch of data (e.g., the i-th batch of data, where i is a positive integer greater than 1);

[0168] 2. Perform the first operation on the data of the previous batch (such as the (i-1)th batch of data) to obtain the data identifiers of the N first data blocks and send them to the scheduler.

[0169] In this way, the time spent performing the first operation on the same batch of data can overlap with the time spent sending the data blocks to the scheduler, which helps to shorten the overall time from when the computing node starts processing a portion of the data for the computing task to when all the data identifiers of the data blocks corresponding to the N data partitions are sent to the scheduler. This helps to shorten the total processing time of the computing task.

[0170] In one example, the partition identifiers of the N first data blocks are all represented by numbers. The first compute node sends the data identifiers of the N first data blocks to the scheduler. The implementation can be as follows: the first compute node sorts the data identifiers of the N first data blocks according to the partition identifiers to obtain an identifier group; the first compute node sends the identifier group to the scheduler.

[0171] For example, sorting the data identifiers of the N first data blocks according to the partition identifier supports any of the following implementations:

[0172] 1. Sort the N first data blocks in descending order of their partition identifiers;

[0173] 2. Sort the N first data blocks in ascending order of their partition identifiers.

[0174] For example, in this case, the data identifier of the first data block may include a third sub-identifier, and the third sub-identifier includes at least a partition identifier; the first computing node may obtain the partition identifiers of the N data blocks from the data identifiers of the N first data blocks, so as to sort the N first data blocks based on the partition identifiers.

[0175] For example, different computing nodes sort their respective N data blocks using the same sorting method. This ensures that, in the multiple scheduling groups received by the scheduler from different computing nodes, multiple data blocks corresponding to the same data partition occupy the same position in multiple identifier groups. This facilitates the scheduler's management and allocation of data block identifiers.

[0176] In another possible implementation, the data identifiers of the M*N first data blocks are sent to the scheduler in one go.

[0177] For example, after obtaining the data identifiers of M*N first data blocks, the first computing node packages the data identifiers of the M*N first data blocks and sends them to the scheduler.

[0178] This helps reduce the number of communications between compute nodes and the scheduler. In cases where there are many compute nodes in the compute cluster and / or M is large, it helps alleviate network congestion between compute nodes and the scheduler.

[0179] Step 305: The scheduler determines the data identifiers of multiple second data blocks required by the first computing node to perform the second operation based on the data identifiers of the first data blocks corresponding to the N data partitions sent by multiple computing nodes.

[0180] The second operation is executed later than the first operation. In other words, the first computing node completes the first operation first, and then completes the second operation.

[0181] In one example, the first and second operations belong to different stages of the computation task. In this case, after multiple computing nodes complete the operations to be performed in the first stage, the scheduler instructs each computing node on the operations to be performed in the second stage, as well as the data identifiers of the data blocks required to perform the corresponding operations. For the first computing node, the second operation to be performed in the second stage is... In another example, the first and second operations belong to the same stage of the computation task, such as both the first and second operations belonging to the first stage. For example, after the first computing node performs the first operation on N first data blocks, if there are still at least one data block that has not been allocated to a computing node in the first stage, the scheduler determines multiple second data blocks from the at least one data block and sends the data identifiers of the multiple data blocks to the first computing node.

[0182] Optionally, the second data block is obtained by at least one computing node performing a first operation on a portion of the data of the computing task. The process of at least one computing node performing the first operation on a portion of the data of the computing task is performed in parallel for different computing nodes. The types of the first operations performed by different computing nodes can be different.

[0183] For example, while the first computing node is performing the first operation 1 on a portion of the data 1 of the computing task, the second computing node is also performing the first operation 2 on a portion of the data 2 of the computing task.

[0184] For example, multiple second data blocks may include multiple first data blocks. In one example, the multiple second data blocks include multiple first data blocks with the same partition identifier.

[0185] In some embodiments, step 305 supports the following implementation: the scheduler determines the second operation to be performed by the first computing node; subsequently, based on the second operation, the scheduler determines the data identifiers of multiple second data blocks required by the first computing node to perform the second operation according to the data identifiers of the first data blocks corresponding to the N data partitions sent by multiple computing nodes.

[0186] For details on the implementation of step 305, please refer to methods 3 and 4 below.

[0187] In step 306, the scheduler sends the data identifiers of multiple second data blocks to the first compute node. Correspondingly, the first compute node receives the data identifiers of multiple second data partitions.

[0188] Step 307: The first computing node obtains multiple second data blocks based on the data identifiers of multiple second data blocks.

[0189] Optionally, the first compute node obtains multiple second data blocks from at least one storage node.

[0190] The storage node is used to store the mapping between the data identifier of each data block and the storage address of each data block in the storage node. For a detailed explanation of the mapping, please refer to the embodiment corresponding to step 303.

[0191] In one possible implementation, step 307 is specifically implemented as follows: the first computing node sends data identifiers of multiple second data blocks to the storage node, the storage node determines the storage address of multiple second data blocks based on the data identifiers and mappings of the multiple second data blocks; subsequently, the storage node obtains multiple second data blocks based on the storage addresses of the multiple second data blocks and sends the multiple second data blocks to the first computing node.

[0192] The storage address of the second data block is used to indicate the storage location of the second data block in the storage node.

[0193] In one example, the first compute node sends the data identifiers of multiple second data blocks to multiple storage nodes in the storage cluster. Each storage node then looks up the storage address of each second data block based on the mapping and the data identifier of each second data block. For example, if the storage address of a second data block is found, the storage node retrieves the second data block based on that address and sends it to the first compute node. If the storage address of a second data block is not found, it means that the storage node does not store the second data block. The storage node then continues to look up the storage address of the next second data block based on the mapping and the data identifier of the next second data block, until the data identifiers of multiple second data blocks have been found.

[0194] For example, the first compute node sends at least one data identifier of a second data block to the storage node at a time. The storage address of the data block in the storage node is managed and used by the storage node. The compute node only needs to be aware of the data identifier of the data block, and does not need to be aware of the storage address of the data block.

[0195] In this way, compute nodes do not need to request the storage address of data blocks from the management nodes in the storage cluster. Instead, compute nodes can retrieve data blocks from the storage nodes using the data block's identifier, reducing the dependence of compute nodes in the compute cluster on the management nodes in the storage cluster. As a result, compute nodes in the compute cluster can focus more on performing operations on the data, thus helping to achieve the separation of storage and compute in the data management system.

[0196] In one example, multiple second data blocks can also be retrieved from the storage node in stages.

[0197] For example, the first computing node sends the data identifiers of L second data blocks to the storage node each time. The storage node obtains the storage addresses of the L second data blocks based on the data identifiers and mappings of the L second data blocks; it then obtains the L second data blocks from the storage addresses of the L second data blocks respectively, and sends the L second data blocks to the first computing node.

[0198] Where L is a positive integer less than the total number of the second data block, such as L equals 1, 2, 3, 4, ...

[0199] For example, L is less than the total number of second data blocks. For instance, a first compute node sends the data identifiers of L1 second data blocks to multiple storage nodes to obtain L1 second data blocks; subsequently, the first compute node performs a first operation on the data in the L1 second data blocks. Afterward, the first compute node sends the data identifiers of L2 second data blocks to multiple storage nodes to obtain L2 second data blocks, and so on, until the first compute node has performed a second operation on the data in all the second data blocks.

[0200] Where L1 and L2 are positive integers, and L1+L2 is less than or equal to L.

[0201] In this embodiment, different data blocks can be distinguished by data identifiers, thus enabling compute nodes to read data blocks more flexibly based on these identifiers. For example, a compute node can read one, two, ..., L data blocks at a time. Compared to related technologies where compute nodes read one or more data files (data files are obtained by merging multiple data blocks) based on metadata, this allows compute nodes to read a small number of second data blocks at a time. This helps reduce the total number of operations that a compute node needs to perform at one time, and helps reduce the peak memory usage of the compute node during the execution of computing tasks.

[0202] Step 308: The first computing node performs a second operation on multiple second data blocks to obtain multiple second data blocks after the second operation has been performed.

[0203] Optionally, after the first computing node obtains multiple second data blocks, the data included in the multiple second data blocks can be divided into at least one batch of data, and a second operation can be performed on each batch of data. The data after the second operation is performed includes data blocks corresponding to Q data partitions, where Q is a positive integer greater than 1.

[0204] For example, Q is equal to N, or Q is any positive integer different from N and greater than 1. The execution process of step 308 is similar to that of step 301. For details, please refer to the embodiment corresponding to step 301, which will not be repeated here.

[0205] In summary, by configuring data identifiers for data blocks stored on storage nodes and sending these identifiers to the scheduler of the compute cluster, the scheduler can determine the data blocks needed by the compute nodes when performing the second operation (the operation to be performed in the next stage) based on the data identifiers. The scheduler then sends the data identifiers of the data blocks needed for the second operation back to the compute nodes. This allows the compute nodes to retrieve the data blocks needed for the second operation directly from the storage nodes based on the data identifiers, without first obtaining the metadata of the data blocks from the management nodes of the storage cluster and then retrieving the data blocks from the storage nodes based on the metadata. This not only reduces the number of interactions between the compute nodes and the management nodes but also reduces the management of data metadata by the storage management nodes by transmitting the data identifiers to the compute cluster scheduler, thus better achieving storage-compute separation.

[0206] Correspondingly, the management node in the storage cluster does not need to respond to metadata retrieval requests from multiple compute nodes, which helps avoid request backlogs on the management node. Furthermore, compute nodes do not need to wait for the management node to return metadata for data blocks, which helps shorten the time spent by compute nodes retrieving data blocks. Thus, this helps to shorten the overall time to complete computation tasks, thereby improving the efficiency of the data management system in processing computation tasks.

[0207] In one possible implementation, the first computing node obtains multiple second data blocks based on their data identifiers, performs a second operation on each second data block, and if the computation task is completed, the first computing node obtains the execution result of the computation task based on the second data blocks from which the second operation was performed. If the computation task is not completed, the second data blocks are used as new first data blocks, and the process restarts from the step where the first computing node stores the multiple first data blocks from which the first operation was performed to the storage node, until the computation task is completed.

[0208] The following is combined with Figure 5The execution process of the data management method in the embodiments of this application is described.

[0209] For example, in this example, the first operation and the second operation belong to different stages of the computing task; after the scheduler obtains all the data blocks corresponding to the N data partitions in a stage, it allocates the second data blocks required to perform the second operation in the second stage to multiple computing nodes.

[0210] For example, in this example, the multiple computing nodes include computing node 1 and computing node 2.

[0211] For example, such as Figure 5 As shown, in stage 1 of the computation task, the data is divided into a first part and a second part, which are processed by computation node 1 and computation node 2, respectively. Specifically, the calculator 1 in computation node 1 performs a first operation 1 on the first part of the data to obtain data block 1 corresponding to N data partitions (there can be multiple data blocks 1; refer to the embodiment corresponding to step 301 for details. For ease of description, the number of data blocks 1 is omitted here; the same applies to data block 2). Similarly, the calculator 2 in computation node 2 performs a first operation 2 on the second part of the data to obtain data block 2 corresponding to N data partitions.

[0212] Subsequently, compute node 1 obtains the data identifier id1 of data block 1; compute node 2 obtains the data identifier id2 of data block 2. Compute node 1 sends data block 1 and its data identifier id1 to storage node 1 in the storage cluster; compute node 2 sends data block 2 and its data identifier id2 to storage node 2 in the storage cluster.

[0213] For example, storage node 1 and storage node 2 can be the same or different. For details on how to obtain the data identifier of the data block, please refer to Method 1 and Method 2 in the embodiments below.

[0214] At the end of Phase 1, compute node 1 and compute node 2 each execute step 304, enabling the scheduler to obtain the data identifiers of all data blocks corresponding to the N data partitions in Phase 1. Subsequently, based on the data identifiers of all data blocks, the scheduler determines the data identifier id3 of data block 3 (i.e., the second data block corresponding to compute node 1) required for compute node 1 to perform the second operation, and the data identifier id4 of data block 4 (i.e., the second data block corresponding to compute node 2) required for compute node 2 to perform the second operation. The scheduler then sends id3 and id4 to compute node 1 and compute node 2, respectively.

[0215] Phase 1 concludes here, and we proceed to Phase 2 of the computation task. In Phase 2, the data consumer (consumer1) on compute node 1 pulls data block 3 from at least one storage node in the storage cluster based on the data identifier id3 of data block 3. Similarly, the data consumer (consumer2) on compute node 2 pulls data block 4 from at least one storage node in the storage cluster based on the data identifier id4 of data block 4. This process iterates until the computation task is completed.

[0216] In this embodiment, the data management method can be applied to any two adjacent stages in the execution of the computing task, thereby shortening the time spent acquiring data blocks multiple times and further reducing the total execution time of the computing task.

[0217] The following describes two methods for a compute node to obtain the data identifier of the first data block, using Method 1 and Method 2. The data identifier of the first data block can be obtained using either Method 1 or Method 2.

[0218] Method 1: The data identifier of the first data block is generated by the computing node.

[0219] In one possible implementation, step 320 is specifically implemented as follows: the first computing node generates data identifiers for the first data blocks corresponding to the N data partitions, and sends the data identifiers for the data blocks corresponding to the N data partitions to the storage node.

[0220] Optionally, an identifier generation algorithm is configured on the first computing node to generate data identifiers for data blocks. For example, the identifier generation algorithm generates data identifiers for each first data block in the first data blocks corresponding to N data partitions, based on the system timestamp and the node identifier of the first computing node. The system timestamps in the data identifiers of different first data blocks are different.

[0221] For example, the same identifier generation algorithm is configured in multiple computing nodes.

[0222] In one example, the first compute node has a storage cluster client installed, and the identifier generation algorithm is set in the storage cluster client. The first compute node sends the first data block after performing the first operation to the storage cluster client. The identifier generation algorithm is run through the client to generate data identifiers for N data blocks locally on the first compute node.

[0223] For example, since the data identifier of the first data block is generated by the computing node in Method 1, step 302 can be executed before step 303. For instance, after obtaining the data identifier of the first data block corresponding to the N data partition packets, the first computing node executes step 303 to store the first data block corresponding to the N data partition packets and the data identifier of the first data block corresponding to the N data partitions to at least one storage node.

[0224] In Method 1, the process of multiple compute nodes generating data identifiers for data blocks is independent of each other. Compared to related technologies where the metadata of data blocks is generated by the management node in the storage cluster, the generation process of data block data identifiers in this embodiment does not require the participation of storage nodes or management nodes, which helps to reduce the compute cluster's dependence on the storage cluster.

[0225] In addition, this approach enables multiple computing nodes to generate data identifiers for data blocks independently and asynchronously, which helps improve the efficiency of data identifier generation.

[0226] Method 2: The data identifier of the first data block is generated by the storage node.

[0227] In one possible implementation, step 302 specifically involves: the storage node generating data identifiers for the first data blocks corresponding to the N data partitions, and sending these data identifiers to the first computing node. Correspondingly, the first computing node receives the data identifiers for the first data blocks corresponding to the N data partitions.

[0228] Optionally, for any one of the first data blocks corresponding to the N data partitions, the first compute node sends the first data block to the first storage node, the first storage node generates a data identifier for the first data block, and sends the data identifier to the first compute node. In other words, the data identifier for the first data block is generated by the storage node in the compute cluster used to store that data block.

[0229] In one example, if the first data blocks corresponding to N data blocks are stored on the same storage node, the data identifier of the first data block can be a random number. Having a unified storage node generate data identifiers for each first data block ensures that the data identifiers of each first data block are unique, even with a relatively simple method of generating random numbers. This simplifies the data identifier generation logic.

[0230] In another example, where the first data blocks corresponding to N data partitions are stored on at least two storage nodes respectively, the data identifier of the first data partition includes a first sub-identifier and a second sub-identifier; in mode 2, the second sub-identifier includes at least one of the following: the node identifier of the first computing node or the node identifier of the storage node.

[0231] For example, the storage node is configured with an identifier generation algorithm; after receiving the first data block sent by the first computing node, the storage node generates a data identifier for the first data block based on the identifier generation algorithm.

[0232] In one possible implementation, the generation process of the data identifier for the first data partition is jointly undertaken by the first computing node and the storage node. For example, the first computing node sends the first data blocks corresponding to N data partitions, as well as the first data blocks corresponding to N data partitions, to at least one storage node. Subsequently, for a given first data block, the storage node storing the first data block generates a first sub-identifier and a second sub-identifier for the first data block, and concatenates the first sub-identifier, the second sub-identifier, and the third sub-identifier of the first data block to obtain the data identifier for the first data block. Then, the storage node sends the data identifiers of M*N first data blocks to the first computing node.

[0233] This embodiment generates data identifiers uniformly through storage nodes, allowing for the expansion to utilize more data identifier generation algorithms. Furthermore, the unified generation of data identifiers by storage nodes facilitates the modification of data identifier formats as needed during the data management system's application in business operations. This enhances the flexibility of data identifier format updates.

[0234] The following section details the process by which the scheduler determines the data identifiers of the multiple second data blocks required for the first computing node to perform the second operation.

[0235] To simplify the scheduler's execution logic for determining the second data block, the scheduler, upon receiving the data identifiers of the first data blocks of the N data partitions sent by multiple computing nodes, organizes and sorts the data identifiers of the first data blocks corresponding to the N data partitions sent by multiple computing nodes, so that the data identifiers of the first data blocks of the N data partitions sent by multiple computing nodes form a certain data structure, which facilitates the candidate to determine the data identifiers of multiple second data blocks based on this data structure.

[0236] The following description uses the organization process of the first data block corresponding to the N data partitions sent by the scheduler to the first computing node as an example. The organization method of the first data block corresponding to the N data partitions sent by other computing nodes can be referred to this embodiment, and will not be elaborated here.

[0237] In one possible implementation, the first computing node performs a first operation on a portion of the data in M ​​batches. The data management method further includes: after receiving the data identifiers of the first data blocks corresponding to the N data partitions sent by the first computing node, the scheduler organizes the data identifiers of the first data blocks sent by the first computing node into a two-dimensional data structure.

[0238] Different computing nodes correspond to different two-dimensional data structures. For ease of distinction, in the following embodiments, the two-dimensional data structure organized by the "data identifier of the first data block sent by the first computing node" is referred to as the two-dimensional data structure corresponding to the first computing node. The two-dimensional data structure corresponding to the first computing node can be an M*N two-dimensional matrix or an N*M two-dimensional matrix.

[0239] Optionally, the rows in the two-dimensional data structure represent the data blocks corresponding to each of the N data partitions, and the columns in the two-dimensional data structure represent the data in the M batches; or, the columns in the two-dimensional data structure represent the data blocks corresponding to each of the N data partitions, and the rows in the two-dimensional data structure represent the data in the M batches.

[0240] For example, taking the row in the two-dimensional data structure as a representation of the data block corresponding to each of the N data partitions, after the first computing node performs the first operation on a batch of data, the data identifiers of the N first data blocks included in the data after the first operation are located in the same row of the two-dimensional data structure.

[0241] For example, taking the column representation of M batches of data in a two-dimensional data structure as an example, after the first computing node performs the first operation on the M batches of data, it obtains a total of M*N data blocks, wherein the data identifiers of the M data blocks are located in the same column of the two-dimensional data structure. For example, the M data blocks are respectively obtained by the first computing node performing the first operation on the M batches of data.

[0242] By storing data identifiers using a two-dimensional data structure and leveraging the data distribution characteristics of the data structure itself, the data partitions can be represented by rows and columns to indicate the batch data to which the data identifiers belong. This helps simplify the scheduler's execution logic for determining the data identifiers of multiple second data blocks.

[0243] The following describes how the scheduler uses a two-dimensional data structure to determine the data identifiers of multiple second data partitions required when the first computing node performs the second operation.

[0244] In some embodiments, step 305 is specifically implemented as follows: the scheduler determines the data identifiers of multiple second data blocks required by the first computing node to perform the second operation based on the data identifiers of each first data block represented by the two-dimensional data structure.

[0245] In one possible implementation, after obtaining the two-dimensional data structures corresponding to multiple computing nodes, the scheduler organizes these two-dimensional data structures into a global two-dimensional data structure. This global two-dimensional data structure includes first data identifiers corresponding to N data partitions sent by the multiple computing nodes. Subsequently, based on the data identifiers of each first data block partition represented by this global two-dimensional data structure, the scheduler determines the data identifiers of multiple second data block partitions.

[0246] For example, in the global two-dimensional data structure, rows represent the first data block corresponding to each of the N data partitions, and columns represent the data in batches Y. Here, Y is the sum of the batches processed by multiple computing nodes during the parallel execution of the first operation.

[0247] Optionally, the global two-dimensional data structure includes data identifiers for Y*N data blocks, where Y is related to the total number of computing nodes and the total number of batches of data processed by each computing node. For example, the global two-dimensional data structure can be a Y-row, N-column two-dimensional matrix, or an N-row, Y-column two-dimensional matrix.

[0248] For example, Y = X * M, where X is the total number of computing nodes. In this case, the total number of batch data processed by multiple computing nodes is the same.

[0249] In other examples, Y = M1 + M2 + ... + MX, where M1 is the total number of batches of data processed by compute node 1, M is the total number of batches of data processed by compute node 2, and so on. In this case, the total number of batches processed by each compute node can be different.

[0250] For example, taking a global two-dimensional data structure as a two-dimensional matrix with Y rows and N columns, each row of the two-dimensional data structure includes N data identifiers, which are sent to the scheduler by the same computing node. For instance, after the first computing node performs a first operation on a batch of data, the data after the first operation is performed includes N first data blocks, and the data identifiers of these N first data blocks are located in the same row of the two-dimensional data structure.

[0251] The following examples mainly use rows in a global two-dimensional data structure to represent the first data block corresponding to each of the N data partitions, and columns in the two-dimensional data structure to represent the data of the Y batches, to illustrate how the scheduler determines the data identifier of the second data partition.

[0252] Optionally, the two-dimensional data structure is a Y*N two-dimensional matrix, wherein the N data identifiers included in one row of the two-dimensional data structure are used to indicate the N data blocks obtained after the same computing node performs operations on a portion of the data in a batch.

[0253] For example, in a two-dimensional data structure, the Y data identifiers included in column 1 indicate the same partition identifier for each data block.

[0254] The following describes methods 3 and 4 for the scheduler to determine the identifiers of the multiple second data blocks required for the first compute node to execute the second operation. The data identifiers of the multiple second data blocks can be determined using either method 3 or method 4.

[0255] Method 3: Select data identifiers of multiple second data blocks from the data identifiers of each first data block represented by the global two-dimensional data structure.

[0256] In one example, the scheduler randomly selects P data identifiers from the data identifiers of each first data block represented by a global two-dimensional data structure, and uses P as the data identifiers of multiple second data blocks. P is a positive integer less than Y*N.

[0257] In another example, the scheduler selects Q data identifiers from the data identifiers of each data block represented by a two-dimensional data structure, based on a first preset data volume, as data identifiers for multiple second data blocks, where Q is a positive integer less than M*N.

[0258] The first preset data volume is the maximum amount of data that the first computing node can process in a single execution of the second operation. The first preset data volume can be preset.

[0259] Optionally, the total amount of data in the second data block indicated by the Q data identifiers is less than or equal to the first preset data amount.

[0260] In this scenario, the data identifier may include a third sub-identifier, which in turn includes the data size of the first data block. For example, the scheduler determines the data size of each first data block based on the data identifier of each first data block represented globally by a two-dimensional data structure, and selects Q first data blocks whose total data size is less than a first preset data size.

[0261] For example, the first preset data volume can be set based on the computing power of the first computing node. In this way, the scheduler can reasonably allocate data identifiers for the second data blocks to each computing node according to their computing capabilities. This helps avoid allocating too many data identifiers for the second data blocks to a single computing node, which could lead to data backlog in some second data blocks on a particular computing node and affect the execution progress of the computing task.

[0262] Method 4: Based on the columns or rows in the data identifiers of each first data block represented by a global two-dimensional data structure, determine multiple second data blocks.

[0263] In one example, using columns as an example, the scheduler uses the data identifiers on t columns in a global two-dimensional data structure as data identifiers for multiple second data blocks; t is a positive integer.

[0264] For example, if t equals 1, the executor uses the Y data identifiers in the k-th column of the two-dimensional data structure as data identifiers for multiple second data blocks. Here, k is a positive integer less than or equal to M. In other words, the scheduler configures multiple computing nodes with multiple second data blocks required for each to execute the second operation, using columns in the two-dimensional data structure as units.

[0265] Thus, determining the data identifier of the second data block with relatively simple logic helps reduce the computational burden on the scheduler.

[0266] In another example, the scheduler selects a subset of data identifiers from the same column of a two-dimensional data structure as data identifiers for multiple second data blocks. Exemplarily, in this example, the first and second operations belong to different stages of the computation task.

[0267] For example, the scheduler selects j data identifiers from column k as data identifiers for multiple second data blocks, where j is a positive integer less than Y.

[0268] Optionally, the total data volume of the data blocks indicated by the j data identifiers is less than or equal to a second preset data volume. The second preset data volume may be equal to the first preset data volume, or the second preset data volume may be independent of the first preset data volume.

[0269] For example, j data identifiers are j consecutive data identifiers in the k-th column. When the total amount of data in the Y data blocks indicated by a certain column of data identifiers is large, splitting the data identifiers in that column and assigning them to more than one computing node helps to avoid the situation where a single computing node has to process a large amount of data, causing other computing nodes to wait for that computing node to perform operations on the data blocks.

[0270] In this way, load balancing is achieved among multiple computing nodes during the process of the scheduler allocating data identifiers, which helps to improve the performance of the data management system in processing computing tasks.

[0271] In one possible implementation, the data management method further includes: a first computing node sending a deletion request to a storage node. Accordingly, the storage node receives the deletion request.

[0272] The delete request is used to request the deletion of the first data block. Optionally, the delete request includes the data identifier of the first data block. The storage node finds the storage address of the first data block based on the mapping and deletes the first data block.

[0273] Similar to reading data blocks, the data management method in this application embodiment enables the computing node to request the storage node to delete data blocks based on data identifiers, simplifying the data block deletion logic.

[0274] For example, the storage node provides a delete interface for obtaining delete requests.

[0275] In this way, RSS only needs to provide storage interfaces, read interfaces, and delete structures to the computing nodes to meet the interaction requirements between the computing nodes and RSS during the execution of computing tasks.

[0276] The following is combined Figure 6 This application introduces a data management method provided in its embodiments. For example, this embodiment uses a data management system including computing node 1, computing node 2, ..., computing node X, where the first operation and the second operation belong to different stages of a computing task, as an example for illustrative explanation.

[0277] like Figure 6 As shown, when the computation task begins to be executed, the scheduler obtains the data of the computation task by reading background logs, crawlers, and other information retrieval (IR) methods.

[0278] In some embodiments, in stage 1, the data for the computation task is divided into X parts, and each of the X computation nodes performs a first operation on one part of the data. For example... Figure 6 As shown, compute node 1 divides a portion of the computation task's data into three batches. Compute node 1 performs a first operation on the data in batch 1, obtaining first data blocks P11, P12, ..., P1N corresponding to N data partitions. Compute node 1 sends the first data blocks P11, P12, ..., P1N to the storage cluster, so that the first data blocks P11, P12, ..., P1N are stored in at least one storage node of the storage cluster (e.g., the storage cluster includes multiple storage nodes from storage node 1 to storage node Z, where Z is a positive integer).

[0279] Optionally, the storage node generates data identifiers R11, R12, ..., R1N for the first data blocks P11, P12, ..., P1N, and sends these data identifiers to the first computing node. Alternatively, the data identifiers can also be generated by the computing node; please refer to method 2 in the above embodiments for details.

[0280] Computing node 1 sends the data identifiers R11, R12, ..., R1N of the first data block P11, P12, ..., P1N to the scheduler. The processing steps of the other computing nodes in the multiple computing nodes are similar to those of computing node 1 in stage 1, and will not be repeated.

[0281] In Phase 1, the scheduler acquires the data identifiers of the data blocks sent by each compute node and arranges the data identifiers of multiple data blocks to obtain a global two-dimensional data structure of order Y*N. The scheduler uses a column of data identifiers in the global two-dimensional data structure as the data identifiers R11, R21, R31, ..., RY1 of the Y second data blocks required by one compute node to execute the second operation.

[0282] After allocating the data identifiers for the multiple second data blocks required by each compute node, Phase 1 ends. Multiple compute nodes then begin Phase 2, retrieving the second data blocks from the storage nodes based on their data identifiers, until the compute task is completed.

[0283] In this way, by allocating data identifiers through the scheduler, the separation of computing and storage is achieved between computing nodes and storage nodes. This allows each part of the data management system to focus on performing the operations it is good at, which helps to improve the efficiency of the data management system in performing computing tasks.

[0284] This application also provides a data management device, such as... Figure 7 As shown, the data management device 700 includes:

[0285] The computing storage module 710 is used for the first computing node in a plurality of computing nodes to perform a first operation on a portion of the data of a computing task. The data after the first operation is performed includes N data partitions, each data partition includes multiple first data blocks, and the first data blocks corresponding to the N data partitions are stored in at least one storage node, wherein each first data block includes a data identifier.

[0286] The identifier sending module 720 is used for the first computing node to send the data identifiers of the first data blocks corresponding to N data partitions to the scheduler.

[0287] The identifier allocation module 730 is used to determine the data identifiers of multiple second data blocks required by the first computing node when performing the second operation based on the data identifiers of the first data blocks corresponding to the N data partitions sent by multiple computing nodes, and to send the data identifiers of the multiple second data blocks to the first computing node.

[0288] The data processing module 740 is used to obtain multiple second data blocks based on the data identifiers of multiple second data blocks, and to perform a second operation on multiple second data partitions.

[0289] For example, the implementation of the computing storage module 710 will be described below. Similarly, other functional modules in the data management device 700 can refer to the implementation of the computing storage module 710.

[0290] As an example of a software functional unit, the compute storage module 710 may include code running on compute instances. A compute instance may include at least one of a physical host (compute device), a virtual machine, or a container. Further, the compute instance may be one or more. For example, module A may include code running on multiple hosts / virtual machines / containers. The multiple hosts / virtual machines / containers used to run the code may be distributed in the same region or in different regions. Further, 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 or more geographically proximate data centers. Typically, a region may include multiple AZs.

[0291] Similarly, multiple hosts / virtual machines / containers used to run this code can be distributed within the same Virtual Private Cloud (VPC) or across multiple VPCs. Typically, a VPC is set up within a region. Communication between two VPCs within the same region, as well as between VPCs in different regions, requires a communication gateway to be set up within each VPC to enable interconnection between VPCs.

[0292] As an example of a hardware functional unit, the computing storage module 710 may include at least one computing device, such as a server. Alternatively, the computing storage module 710 may also be a device 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), generic array logic (GAL), or any combination thereof.

[0293] The computing storage module 710 includes multiple computing devices that can be distributed within the same region or in different regions. Similarly, the computing devices included in the computing storage module 710 can be distributed within the same Availability Zone (AZ) or in different AZs. Likewise, the computing devices included in the computing storage module 710 can be distributed within the same Virtual Private Cloud (VPC) or in multiple VPCs. These multiple computing devices can be any combination of computing devices such as servers, ASICs, PLDs, CPLDs, FPGAs, and GALs.

[0294] This application also provides a computing device 100, which corresponds to Figure 2 Computation node 12 or Figure 2 The storage cluster 20 includes storage nodes 21. For example... Figure 8 As shown, with computing device 100 as an example Figure 2 Taking computing node 12 as an example, computing device 100 includes: bus 102, processor 104, memory 106, and communication interface 108. Processor 104, memory 106, and communication interface 108 communicate with each other via bus 102. Computing device 100 can be a server or a terminal device. It should be understood that this application does not limit the number of processors and memory in computing device 100.

[0295] Bus 102 can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of representation, Figure 8 The bus 102 may be represented by a single line, but this does not mean that there is only one bus or one type of bus. The bus 102 may include a path for transmitting information between various components of the computing device 100 (e.g., memory 106, processor 104, communication interface 108).

[0296] The processor 104 may include any one or more processors such as a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).

[0297] Memory 106 may include volatile memory, such as random access memory (RAM). Processor 104 may also include non-volatile memory, such as read-only memory (ROM), flash memory, hard disk drive (HDD), or solid state drive (SSD).

[0298] The memory 106 stores executable program code, which the processor 104 executes to implement the functions of the aforementioned computing storage module, identifier sending module, identifier allocation module, and data processing module, respectively. That is, the memory 106 stores instructions for executing the data management method. Alternatively, the memory 106 stores executable code, which the processor 104 executes to implement the functions of the aforementioned data management device 1600, thereby implementing the data management method. That is, the memory 106 stores instructions for executing the data management method.

[0299] The communication interface 108 uses transceiver modules such as, but not limited to, network interface cards and transceivers to enable communication between the computing device 100 and other devices or communication networks.

[0300] This application also provides a computing device cluster. The computing device cluster includes at least one computing device. The computing device can be a server, such as a central server, an edge server, or a local server in a local data center. In some embodiments, the computing device can also be a terminal device such as a desktop computer, a laptop computer, or a smartphone.

[0301] like Figure 8 As shown, the computing device cluster includes at least one computing device 100. The memory 106 of one or more computing devices 100 in the computing device cluster may store the same instructions for executing data management methods.

[0302] In some possible implementations, the memory 106 of one or more computing devices 100 in the computing device cluster may also store partial instructions for executing data management methods. In other words, a combination of one or more computing devices 100 can jointly execute instructions for executing data management methods.

[0303] The memories 106 in the different computing devices 100 within the computing device cluster can store different instructions, each used to execute a portion of the functions of the data management device. That is, the instructions stored in the memories 106 of the different computing devices 100 can implement the functions of one or more modules among the computing storage module, the identifier sending module, the identifier allocation module, and the data processing module.

[0304] In some possible implementations, one or more computing devices in a computing device cluster can be connected via a network. This network can be a wide area network (WAN) or a local area network (LAN), etc. Figure 9 One possible implementation method is shown.

[0305] like Figure 9 As shown, the two computing devices 100A and 100B are connected via a network. Specifically, they are connected to the network through the communication interfaces in each computing device. Optionally, Figure 9 Using computing device 100A and computing device B as a common means of implementation Figure 2 The example shown is illustrated with a scheduler 11, multiple compute nodes 12, and at least one storage node 21 in the storage cluster 20.

[0306] In this type of possible implementation, the memory 106 in computing device 100A stores instructions for performing the functions of the computing storage module, the identifier sending module, and the data processing module. Meanwhile, the memory 106 in computing device 100B stores instructions for performing the functions of the identifier allocation module.

[0307] Figure 9 The connection method between the computing device clusters shown can be based on the fact that the scheduler and computing nodes are located on different computing devices in the data management method provided in this application. Therefore, the functions implemented by the operation module are to be executed by the computing device 100B.

[0308] It should be understood that Figure 9 The functions of the computing device 100A shown can also be performed by multiple computing devices 100. Similarly, the functions of the computing device 100B can also be performed by multiple computing devices 100.

[0309] This application also provides another computing device cluster. The connection relationships between the computing devices in this computing device cluster can be similarly referred to... Figure 9 The connection method of the computing device cluster. The difference is that the memory 106 of one or more computing devices 100 in the computing device cluster can store the same instructions for executing data management methods.

[0310] In some possible implementations, the memory 106 of one or more computing devices 100 in the computing device cluster may also store partial instructions for executing data management methods. In other words, a combination of one or more computing devices 100 can jointly execute instructions for executing data management methods.

[0311] The memory 106 in different computing devices 100 within a computing device cluster can store different instructions for executing certain functions of the computing system. That is, the instructions stored in the memory 106 of different computing devices 100 can implement the functions of a data management device.

[0312] This application also provides a computer program product containing instructions. The computer program product may be a software or program product containing instructions, capable of running on a computing device or stored on any usable medium. When the computer program product is run on at least one computing device, it causes the at least one computing device to perform a data management method.

[0313] This application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium that a computing device can store, or a data storage device such as a data center that includes one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state drive). The computer-readable storage medium includes instructions that instruct the computing device to perform a data management method.

[0314] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the protection scope of the technical solutions of the embodiments of the present invention.

Claims

1. A data management method, characterized in that, Applied to data management systems; The data management system includes: a scheduler, multiple computing nodes, and storage nodes; the method includes: The first computing node among the plurality of computing nodes performs a first operation on a portion of the data of the computing task. The data after the first operation is performed includes N data partitions, each data partition includes multiple first data blocks, and the first data blocks corresponding to the N data partitions are stored in at least one storage node, wherein each first data block includes a data identifier. The first computing node sends the data identifiers of the first data blocks corresponding to the N data partitions to the scheduler; The scheduler determines the data identifiers of multiple second data blocks required by the first computing node when performing the second operation based on the data identifiers of the first data blocks corresponding to the N data partitions sent by the multiple computing nodes, and sends the data identifiers of the multiple second data blocks to the first computing node; The first computing node obtains the plurality of second data blocks based on the data identifiers of the plurality of second data blocks, and performs the second operation on the plurality of second data partitions.

2. The method according to claim 1, characterized in that, The method also includes, The first computing node generates data identifiers for the first data blocks corresponding to the N data partitions, and sends the data identifiers for the first data blocks corresponding to the N data partitions to the at least one storage node, or... The at least one storage node generates a data identifier for the first data block corresponding to the N data partitions, and sends the data identifier for the first data block corresponding to the N data partitions to the first computing node.

3. The method according to claim 2, characterized in that, The storage node is also used to store the mapping between the data identifier of the data block and the storage address of the data block in the storage node; The first computing node obtains the plurality of second data blocks based on their data identifiers, including: The first computing node sends the data identifiers of the plurality of second data blocks to the storage node; The storage node determines the storage address of the plurality of second data blocks based on the data identifier of the plurality of second data blocks and the mapping, obtains the plurality of second data blocks based on the storage address of the plurality of second data blocks, and sends the plurality of second data blocks to the first computing node.

4. The method according to any one of claims 1 to 3, characterized in that, The first computing node performs the first operation on the portion of data in M ​​batches, and the method further includes: After receiving the data identifiers of the first data blocks corresponding to the N data partitions sent by the first computing node, the scheduler organizes the data identifiers of the first data blocks sent by the first computing node into a two-dimensional data structure. In the two-dimensional data structure, the rows represent the first data blocks corresponding to each of the N data partitions, and the columns represent the data of the M batches.

5. The method according to claim 4, characterized in that, The scheduler determines the data identifiers of multiple second data blocks required by the first computing node to perform the second operation based on the data identifiers of the first data blocks corresponding to the N data partitions sent by the multiple computing nodes, including: The scheduler determines the data identifiers of multiple second data blocks required by the first computing node to perform the second operation based on the data identifiers of each first data block represented by the two-dimensional data structure.

6. The method according to any one of claims 1 to 5, characterized in that, The first operation and the second operation are different stages in performing the computation task.

7. A data management system, characterized in that, The data management system includes: a scheduler, multiple computing nodes, and storage nodes; wherein: The first computing node among the plurality of computing nodes is used to perform a first operation on a portion of the data of the computing task. The data after the first operation is performed includes N data partitions, each data partition includes multiple first data blocks, and the first data blocks corresponding to the N data partitions are stored in at least one storage node, wherein each first data block includes a data identifier. The first computing node is also configured to send the data identifiers of the first data blocks corresponding to the N data partitions to the scheduler; The scheduler is configured to determine the data identifiers of multiple second data blocks required by the first computing node when performing the second operation based on the data identifiers of the first data blocks corresponding to the N data partitions sent by the multiple computing nodes, and send the data identifiers of the multiple second data blocks to the first computing node; The first computing node is further configured to obtain the plurality of second data blocks according to the data identifiers of the plurality of second data blocks, and to perform the second operation on the plurality of second data partitions.

8. A data management system according to claim 7, characterized in that, The first computing node is further configured to generate data identifiers for the first data blocks corresponding to the N data partitions, and send the data identifiers for the first data blocks corresponding to the N data partitions to the at least one storage node, or... The at least one storage node is used to generate a data identifier for the first data block corresponding to the N data partitions, and send the data identifier of the first data block corresponding to the N data partitions to the first computing node.

9. The data management system according to claim 8, characterized in that, The storage node is also used to store the mapping between the data identifier of the data block and the storage address of the data block in the storage node; The first computing node is specifically used to send the data identifiers of the plurality of second data blocks to the storage node; The storage node is further configured to determine the storage address of the plurality of second data blocks based on the data identifier of the plurality of second data blocks and the mapping, obtain the plurality of second data blocks based on the storage address of the plurality of second data blocks, and send the plurality of second data blocks to the first computing node.

10. The data management system according to any one of claims 7 to 9, characterized in that, The first computing node performs the first operation on the portion of data in M ​​batches: The scheduler is further configured to, after receiving the data identifiers of the first data blocks corresponding to the N data partitions sent by the first computing node, organize the data identifiers of the first data blocks sent by the first computing node into a two-dimensional data structure, wherein the rows in the two-dimensional data structure represent the first data blocks corresponding to each of the N data partitions, and the columns in the two-dimensional data structure represent the data of the M batches.

11. The data management system according to claim 10, characterized in that, The scheduler is specifically used to determine the data identifiers of multiple second data blocks required by the first computing node to perform the second operation based on the data identifiers of each first data block represented by the two-dimensional data structure.

12. The data management system according to any one of claims 7 to 11, characterized in that, The first operation and the second operation are different stages in performing the computation task.

13. A computer program product containing instructions, characterized in that, When the instruction is executed by the computing device cluster, the computing device cluster causes the computing device cluster to perform the method as described in any one of claims 1-6.

14. A computer-readable storage medium, characterized in that, Includes computer program instructions, which, when executed by a cluster of computing devices, perform the method as described in any one of claims 1-6.