Shuffle data storage method and apparatus and storage medium

By dynamically adjusting the load balancing strategy and obtaining extended RSS nodes in the mapping induction system, the problem of load imbalance of RSS nodes in the mapping induction system is solved, and more efficient data storage and processing are achieved.

WO2024193519A1PCT designated stage expired Publication Date: 2024-09-26HUAWEI TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/082296
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-23
Filing Date
2024-03-18
Publication Date
2024-09-26

AI Technical Summary

Technical Problem

In the mapping induction system, the existing technology cannot effectively improve the load balance between different Remote Shuffling Service (RSS) nodes, resulting in excessive load pressure on a single RSS node and the inability to fully utilize the storage performance of each node.

Method used

By dynamically adjusting the load balancing strategy between execution units and management nodes, obtaining extended RSS nodes to update the load balancing strategy, avoiding storing shuffled data according to the same load balancing strategy during the running of the target application, and configuring different configurations for different stages. Load balancing strategy, and dynamically determine expansion nodes based on the load status of RSS nodes.

Benefits of technology

It effectively avoids excessive load pressure on a single RSS node, improves load balancing, ensures that the storage performance of each node is fully utilized, and reduces link building overhead and small data cross-node access overhead.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024082296_26092024_PF_FP
    Figure CN2024082296_26092024_PF_FP
Patent Text Reader

Abstract

Embodiments of the present application relate to the technical field of storage. Disclosed are a shuffle data storage method and apparatus and a storage medium. The method comprises: an execution unit stores first shuffle data to at least one remote shuffle service (RSS) node according to a first load balancing policy; the execution unit acquires an extended RSS node of a first RSS node; and the execution unit updates the first load balancing policy to obtain a second load balancing policy so as to store second shuffle data according to the second load balancing policy. Therefore, in the running process of a target application, the execution unit can acquire an extended RSS node for a certain RSS node, and then update a load balancing policy, so as to avoid storing shuffle data according to a same load balancing policy in the whole running process of the target application. In this way, excessive load pressure of a single RSS node can be avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Method, device and storage medium for storing shuffling data

[0001] This application claims priority to Chinese patent application No. 202310321360.0, filed on March 23, 2023, entitled “Method, device and storage medium for storing shuffled data”, the entire contents of which are incorporated herein by reference. Technical Field

[0002] The embodiments of the present application relate to the field of storage technology, and in particular to a method, device, and storage medium for storing shuffling data. Background Art

[0003] In a MapReduce system, data processing involves three steps: mapping, shuffling, and reducing. The mapping step converts raw data into key-value pairs to generate shuffled data. The shuffle step caches the shuffled data, and the reduce step retrieves and processes the shuffled data. Storing shuffled data is a current research hotspot.

[0004] In related art, when an application is run in a mapping and induction system, the system's executor performs tasks in the mapping process, obtains shuffled data, and stores the shuffled data to at least one of multiple remote shuffle service (RSS) nodes according to a preset load balancing policy. The preset load balancing policy is configured when the application is registered in the system.

[0005] After storing the shuffled data in the above manner, the load balancing between different RSS nodes is not very good, and the storage performance of each RSS node cannot be fully utilized.

[0006] Summary of the Invention

[0007] The present invention provides a method, device, and storage medium for storing shuffle data, which can improve the load balancing between different RSS nodes and fully utilize the storage performance of each RSS node. The technical solution is as follows:

[0008] In a first aspect, a method for storing shuffling data is provided, in which an execution unit stores first shuffling data to at least one remote shuffling service RSS node according to a first load balancing strategy, the first shuffling data being shuffling data generated when a target application is executed at a current time, and the at least one RSS node includes the first RSS node; the execution unit obtains an extended RSS node of the first RSS node; the execution unit updates the first load balancing strategy based on the extended RSS node of the first RSS node to obtain a second load balancing strategy; the execution unit stores second shuffling data according to the second load balancing strategy, the second shuffling data being shuffling data generated when the target application is executed after the current time.

[0009] In the embodiment of the present application, during the operation of the target application, the execution unit can obtain an extended RSS node for a certain RSS node and then update the load balancing policy, thereby avoiding storing shuffled data according to the same load balancing policy throughout the operation of the target application. This can avoid excessive load pressure on a single RSS node.

[0010] Optionally, the first shuffle data is the shuffle data generated when the execution unit executes the first mapping task in the target phase of the target application, and the target phase is any one of the multiple phases corresponding to the target application; the second shuffle data is the shuffle data generated when the execution unit executes the second mapping task in the target phase of the target application, and the second mapping task is a mapping task executed after the first mapping task.

[0011] Considering that the running process of the target application usually includes multiple stages, and each stage usually includes a large number of mapping tasks, the RSS node can also be expanded after a mapping task in a certain stage of the target application to update the first load balancing strategy, so that the updated load balancing strategy can be used in the next mapping task, thereby avoiding excessive load on a single RSS node.

[0012] Optionally, in this method, the execution unit can also obtain a load balancing policy set, which includes multiple load balancing policies corresponding to multiple stages one by one, and the first load balancing policy is the load balancing policy in the load balancing policy set corresponding to the target stage; the execution unit stores the load balancing policy set.

[0013] In order to improve the load balancing effect, different load balancing strategies can be pre-configured for different stages of the target application, so that in the initial period of any stage, data is stored according to the pre-configured load balancing strategy, and in the later stage of the stage, the RSS node can be expanded to update the corresponding load balancing strategy.

[0014] Optionally, the execution unit may obtain the load balancing policy set in the following manner: the execution unit receives the load balancing policy set from the driving unit.

[0015] In an embodiment of the present application, when the driver unit registers the target application, the load balancing strategy corresponding to each stage can be configured for the target application to obtain a load balancing strategy set.

[0016] Optionally, the execution unit may store the first shuffle data in at least one remote shuffle service RSS node according to the first load balancing strategy as follows: the execution unit may send a write data request message to the first RSS node, where the write data request message indicates that part of the first shuffle data may be stored in the first RSS node.

[0017] Accordingly, the execution unit may obtain the extended RSS node of the first RSS node in the following manner: the execution unit receives a write data response message from the first RSS node, where the write data response message carries the identifier of the extended RSS node.

[0018] That is, when the first RSS node receives a write data request message from the execution unit, after storing the shuffle data, the first RSS node will also check whether it is configured with an extended RSS node. If it is configured with an extended RSS node, it will return a write data response message carrying the identifier of the extended RSS node to the execution unit to notify the execution unit that its current load is too large and subsequent shuffle data can be stored in the extended RSS node.

[0019] In a second aspect, a method for storing shuffled data is provided. In this method, during the process of an execution unit storing first shuffled data in at least one remote shuffle service (RSS) node according to a first load balancing strategy, a management node, in response to the load pressure of a first RSS node among the at least one RSS node, determines a second RSS node from a plurality of RSS nodes as an extended RSS node of the first RSS node, so that the execution unit stores the second shuffled data according to a second load balancing strategy. The first shuffled data is shuffled data generated when the execution unit executes a target application at the current time, and the second shuffled data is shuffled data generated when the execution unit executes the target application after the current time. The second load balancing strategy is obtained by updating the first load balancing strategy based on the second RSS node.

[0020] In this embodiment of the present application, when the execution unit stores shuffled data generated during the operation of the target application, the management node can determine an extended RSS node for a specific RSS node in response to the load pressure of that RSS node in the initial load balancing policy. This avoids storing shuffled data according to the same load balancing policy throughout the entire operation of the target application, thus preventing excessive load pressure on a single RSS node.

[0021] Optionally, in response to the load pressure of the first RSS node, the management node determines the second RSS node from multiple RSS nodes as an extended RSS node of the first RSS node. The implementation method can be: when the management node receives a node extension request message from the first RSS node, the management node performs an operation of determining the second RSS node from multiple RSS nodes, and the node extension request message indicates that the total amount of shuffle data stored on the first RSS node exceeds a reference threshold.

[0022] Correspondingly, in this method, the management node also returns a node extension response message to the first RSS node, where the node extension response message carries the identifier of the second RSS node.

[0023] When the total amount of shuffled data stored on the first RSS node exceeds a reference threshold, it indicates that the first RSS node has little remaining storage space. Storing more shuffled data on the first RSS node at this point is likely to overload the first RSS node. Therefore, in this scenario, the first RSS node can send a node expansion request message to the management node to avoid excessive load on the first RSS node.

[0024] Optionally, the management node determines the second RSS node from multiple RSS nodes as an extended RSS node of the first RSS node as follows: the management node obtains the weight of each RSS node in the multiple RSS nodes, and the weight indicates the size of the load pressure of the corresponding RSS node; based on the weight of each RSS node in the multiple RSS nodes, the management node determines the second RSS node from the multiple RSS nodes.

[0025] By using weights, the management node can select an RSS node with a smaller load as an extension node.

[0026] Optionally, before obtaining the weight of each RSS node in the multiple RSS nodes, the management node may also receive load status data from each RSS node in the multiple RSS nodes, where the load status data indicates the load status of the corresponding RSS node; the management node determines the weight of each RSS node in the multiple RSS nodes based on the load status data of each RSS node in the multiple RSS nodes.

[0027] By having each RSS node report load status data, the management node can determine the weight of each RSS node.

[0028] Optionally, the first shuffle data is the shuffle data generated when the execution unit executes the first mapping task in the target phase of the target application, and the target phase is any one of the multiple phases corresponding to the target application; the second shuffle data is the shuffle data generated when the execution unit executes the second mapping task in the target phase of the target application, and the second mapping task is a mapping task executed after the first mapping task.

[0029] Considering that the running process of the target application usually includes multiple stages, and each stage usually includes a large number of mapping tasks, the RSS node can also be expanded after a mapping task in a certain stage of the target application to update the first load balancing strategy, so that the updated load balancing strategy can be used in the next mapping task, thereby avoiding excessive load on a single RSS node.

[0030] Optionally, the management node may also determine a load balancing policy set, the load balancing policy set including multiple load balancing policies corresponding one-to-one to multiple stages of the target application, the first load balancing policy being the load balancing policy in the load balancing policy set corresponding to the target stage.

[0031] In order to improve the load balancing effect, different load balancing strategies can be pre-configured for different stages of the target application, so that in the initial period of any stage, data is stored according to the pre-configured load balancing strategy, and in the later stage of the stage, the RSS node can be expanded to update the corresponding load balancing strategy.

[0032] Optionally, the management node may determine the load balancing policy set by executing an operation to determine the load balancing policy set upon receiving an application registration request from a driver unit, where the application registration request carries an identifier of a target application. Accordingly, in this method, the management node may also return the load balancing policy set to the driver unit.

[0033] In an embodiment of the present application, when a target application is registered through a driver unit, the management node configures the load balancing strategy corresponding to each stage for the target application to obtain a load balancing strategy set.

[0034] Optionally, the management node determines the load balancing strategy set in an implementation manner as follows: the management node determines the expected amount of shuffling data for each of the multiple stages; the management node determines the load balancing strategy set based on the expected amount of shuffling data for each of the multiple stages and the weight of each RSS node in the multiple RSS nodes; wherein there is a positive correlation between the expected number of shuffles in each stage and the number of RSS node identifiers included in the load balancing strategy corresponding to each stage.

[0035] There is a positive correlation between the expected number of shuffles in each phase and the number of RSS node identifiers included in the load balancing strategy for each phase. With this setup, if the expected number of shuffles in a phase is small, the RSS node identifiers in the load balancing strategy configured for that phase will also be small. This allows the shuffled data for each partition to be concentrated across a smaller number of RSS nodes in that phase, avoiding overly discrete distribution of shuffled data for partitions with small data volumes. This can reduce subsequent chain building overhead and cross-node access overhead for small data.

[0036] Optionally, the management node determines the expected amount of shuffling data for each of the multiple stages in an implementation manner as follows: the management node queries the shuffling data history records corresponding to the target application; if the management node queries the shuffling data history records, the management node determines the expected amount of shuffling data for each of the multiple stages based on the shuffling data history records.

[0037] In an embodiment of the present application, the expected amount of shuffling data for each of the multiple stages can be determined by the historical records of the shuffling data of the target application. In this way, the load balancing effect of the load balancing strategy for each stage determined according to the expected amount of shuffling data for each of the multiple stages is more significant.

[0038] Optionally, after the management node queries the shuffle data history records corresponding to the target application, if the management node does not query the shuffle data history records, it obtains the shuffle data sampling results corresponding to the target application; based on the shuffle data sampling results, the management node determines the expected shuffle data volume for each of the multiple stages.

[0039] In an embodiment of the present application, if there is no historical record of shuffling data for the target application, the expected amount of shuffling data for each of the multiple stages can also be determined by sampling, thereby expanding the application scenarios of the embodiment of the present application.

[0040] According to a third aspect, a method for storing shuffled data is provided, in which a first RSS node receives at least part of first shuffled data stored by an execution unit according to a first load balancing strategy, where the first shuffled data is shuffled data generated when the execution unit executes a target application at a current time; in response to its own load pressure, the first RSS node obtains an extended RSS node so that the execution unit stores second shuffled data according to a second load balancing strategy, where the second shuffled data is shuffled data generated when the execution unit executes the target application after the current time; wherein the second load balancing strategy is obtained by updating the first load balancing strategy based on the extended RSS node.

[0041] In an embodiment of the present application, when the execution unit stores shuffle data generated during the operation of the target application, each RSS node can determine whether to obtain an extended RSS node for itself based on its own load pressure, so that the execution unit can obtain the extended RSS node for the RSS node during the operation of the target application, thereby updating the load balancing policy, thereby avoiding storing shuffle data according to the same load balancing policy throughout the operation of the target application. This can avoid excessive load pressure on a single RSS node.

[0042] Optionally, in response to its own load pressure, the first RSS node obtains the extended RSS node in the following manner: when it is monitored that the total amount of shuffle data stored in itself exceeds a reference threshold, the first RSS node sends a node extension request message to the management node; the first RSS node receives a node extension response message from the management node, and the node extension response message carries the identifier of the extended RSS node.

[0043] When the total amount of shuffled data stored on the first RSS node exceeds a reference threshold, it indicates that the first RSS node has little remaining storage space. Storing more shuffled data on the first RSS node at this point is likely to overload the first RSS node. Therefore, in this scenario, the first RSS node can send a node expansion request message to the management node to avoid excessive load on the first RSS node.

[0044] Optionally, the implementation method of the first RSS node receiving at least part of the first shuffled data stored by the execution unit according to the first load balancing strategy can be: the first RSS node receives a write data request message from the execution unit, and the write data request message indicates that part of the first shuffled data should be stored in the first RSS node; accordingly, after the first RSS node obtains the extended RSS node, the first RSS node also sends a write data response message to the execution unit, and the write data response message carries the identifier of the extended RSS node.

[0045] That is, when the first RSS node receives a write data request message from the execution unit, after storing the shuffle data, the first RSS node will also check whether it is configured with an extended RSS node. If it is configured with an extended RSS node, it will return a write data response message carrying the identifier of the extended RSS node to the execution unit to notify the execution unit that its current load is too large and subsequent shuffle data can be stored in the extended RSS node.

[0046] Optionally, in this method, the first RSS node further periodically reports load status data of the first RSS node to the management node.

[0047] Since the load on each RSS node is constantly updated, the first RSS node needs to periodically report its own load status data so that the management node can update the weight of each RSS node in time to improve the effectiveness of the load balancing strategy.

[0048] In a fourth aspect, a device for storing shuffled data is provided, wherein the device has the function of implementing the method for storing shuffled data in the first aspect. The device includes at least one module, wherein the at least one module is configured to implement the method for storing shuffled data in the first aspect.

[0049] In a fifth aspect, a device for storing shuffled data is provided, wherein the device has the function of implementing the method for storing shuffled data in the second aspect. The device includes at least one module, wherein the at least one module is configured to implement the method for storing shuffled data in the second aspect.

[0050] In a sixth aspect, a device for storing shuffled data is provided, wherein the device has the function of implementing the method for storing shuffled data in the third aspect. The device includes at least one module, wherein the at least one module is configured to implement the method for storing shuffled data in the third aspect.

[0051] In a seventh aspect, a device for storing shuffled data is provided. The device comprises a processor and a memory, wherein the memory is configured to store a program that enables the device to execute the method for storing shuffled data provided in the first aspect, and to store data related to implementing the method for storing shuffled data provided in the first aspect. The processor is configured to execute the program stored in the memory.

[0052] In an eighth aspect, a device for storing shuffled data is provided. The device comprises a processor and a memory, wherein the memory is configured to store a program that enables the device to execute the method for storing shuffled data provided in the second aspect, and to store data related to implementing the method for storing shuffled data provided in the second aspect. The processor is configured to execute the program stored in the memory.

[0053] In a ninth aspect, a device for storing shuffled data is provided. The device comprises a processor and a memory, wherein the memory is configured to store a program that enables the device to execute the method for storing shuffled data provided in the third aspect, and to store data used to implement the method for storing shuffled data provided in the third aspect. The processor is configured to execute the program stored in the memory.

[0054] In the tenth aspect, a computer-readable storage medium is provided, wherein instructions are stored in the computer-readable storage medium. When the computer-readable storage medium is executed on a computer, the computer executes the method for storing shuffled data described in the first aspect, or the method for storing shuffled data described in the second aspect, or the method for storing shuffled data described in the third aspect.

[0055] In the eleventh aspect, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute the method for storing shuffling data described in the first aspect, or the method for storing shuffling data described in the second aspect, or the method for storing shuffling data described in the third aspect.

[0056] The technical effects obtained in the above-mentioned fourth to eleventh aspects are similar to the technical effects obtained by the corresponding technical means in the first to third aspects, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] FIG1 is a schematic diagram of the architecture of an RSS-based mapping induction system provided in an embodiment of the present application;

[0058] FIG2 is a schematic diagram of obtaining a load balancing strategy provided in an embodiment of the present application;

[0059] FIG3 is a schematic diagram of a load balancing strategy provided in an embodiment of the present application;

[0060] FIG4 is a schematic diagram of another load balancing strategy provided in an embodiment of the present application;

[0061] FIG5 is a schematic diagram of the architecture of an RSS-based mapping induction system provided in an embodiment of the present application;

[0062] 6 is a schematic diagram of a historical data management module of a metadata service node provided in an embodiment of the present application;

[0063] 7 is a schematic diagram of a load balancing management module of a metadata service node provided in an embodiment of the present application;

[0064] FIG8 is a schematic diagram of a load monitoring module of an RSS node provided in an embodiment of the present application;

[0065] 9 is a schematic diagram of an application load balancing management module of an execution unit node provided in an embodiment of the present application;

[0066] FIG10 is a schematic diagram of the interaction process of various modules in the system shown in FIG5 provided in an embodiment of the present application;

[0067] FIG11 is a flow chart of a method for storing shuffling data provided by an embodiment of the present application;

[0068] FIG12 is a flow chart of another method for storing shuffling data provided by an embodiment of the present application;

[0069] FIG13 is a flow chart of another method for storing shuffling data provided by an embodiment of the present application;

[0070] FIG14 is a flow chart of another method for storing shuffling data provided by an embodiment of the present application;

[0071] FIG15 is a schematic diagram of updating a load balancing strategy provided in an embodiment of the present application;

[0072] FIG16 is a schematic diagram of the structure of a device for storing shuffling data provided by an embodiment of the present application;

[0073] FIG17 is a schematic diagram of the structure of another device for storing shuffling data provided by an embodiment of the present application;

[0074] FIG18 is a schematic diagram of the structure of another device for storing shuffling data provided by an embodiment of the present application;

[0075] FIG19 is a schematic structural diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0076] In order to make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0077] It should be understood that the "plurality" mentioned herein refers to two or more. In the description of this application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is merely a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish between identical or similar items with substantially the same functions and effects. Those skilled in the art will understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit them to be different.

[0078] Before explaining the embodiments of the present application in detail, the application scenarios of the embodiments of the present application are first introduced.

[0079] The MapReduce system is a parallel computing architecture for big data. Its data processing consists of three steps: mapping, shuffling, and reducing. The shuffle step is used to cache the key-value pairs (i.e., shuffled data) generated by the mapping step for use in the subsequent reduction step.

[0080] The mapping-induction system consists of multiple compute nodes. After running an application on a compute node, multiple executors and a driver are deployed for the application. Therefore, the application can be understood as consisting of multiple executors and a driver. The driver runs the application's main() function and is responsible for resource allocation, information registration, and job scheduling. The executors handle tasks in the mapping, shuffling, or induction processes. Tasks in the mapping process are referred to as mapping tasks, and tasks in the induction process are referred to as induction tasks. In some scenarios, after receiving shuffled data, the executors write the shuffled data to local disk. In such scenarios, the executors and the shuffled data are highly bound to each other, sharing the same lifecycle, which can easily affect the stability of tasks executed by the executors. To address this issue, an external shuffle service (ESS) was introduced. The ESS can be understood as an agent launched on each compute node to manage the shuffled data.

[0081] However, ESS suffers from drawbacks such as a large number of network requests, lack of shuffle data backup, and lack of support for storage and computing separation. To address these shortcomings, the remote shuffle service (RSS) was introduced. RSS uses a separate storage node to cache shuffle data, decoupling computing and storage.

[0082] Figure 1 is a schematic diagram of the architecture of an RSS-based mapping and summarization system provided in an embodiment of the present application. As shown in Figure 1, the mapping and summarization system includes multiple computing nodes, multiple RSS nodes, and metadata service nodes on the computing side. Multiple execution units for a specific application are deployed on the multiple computing nodes.

[0083] In the architecture shown in Figure 1, the shuffle service is deployed as an independent service on a remote storage node (also known as a RSS node). The execution unit writes the shuffled data to the RSS node after executing the mapping task. After the mapping process is complete, the execution unit pulls the shuffled data directly from the RSS node when executing the induction task.

[0084] Among them, when storing shuffled data, different execution units write the shuffled data belonging to the same partition in the generated shuffled data to the same RSS node to improve the efficiency of subsequent execution units in executing the summarization task. Among them, the collection of data involved in the execution tasks of each execution unit in the application is called the data set of the application, and the key in the shuffled data is the data in the data set. Since the scale of the data set is usually large, in order to facilitate subsequent processing, multiple partitions are pre-configured according to the scale of the data set, and each partition corresponds to a part of the data in the data set. After the subsequent execution unit completes the mapping task according to the data set, it can put the shuffled data whose key in the shuffled data corresponds to the same partition on the same RSS node.

[0085] As shown in Figure 1, this architecture also includes a lightweight metadata service node, which plays a role in cluster state management and RSS node selection (that is, formulating load balancing strategies). The role of load balancing strategies becomes particularly important when multiple mapping tasks are executed in parallel.

[0086] When formulating a load balancing strategy, if the metadata service node waits for all mapping tasks to complete and then counts the amount of shuffled data, and then formulates a load balancing strategy based on the counted amount of shuffled data to allocate the appropriate RSS node, this approach will prevent the mapping process and the shuffled process from being executed in an overlapping manner, which is bound to cause serious performance degradation. Currently, in some scenarios, the execution unit uses a polling method to write the shuffled data of different partitions to each RSS node to avoid excessive load on a single RSS node. In other scenarios, as shown in Figure 2, the execution unit first obtains the load balancing strategy through the driver unit. For example, the driver unit sends a request to the metadata service node. After receiving the request, the metadata service node selects the corresponding RSS node for each partition based on the resource usage of each RSS node to obtain a load balancing strategy. Subsequently, during the operation of the application, each execution unit caches the shuffled data according to the load balancing strategy.

[0087] However, both of the above two methods cannot solve the following two problems.

[0088] Figure 3 is a schematic diagram of a load balancing strategy provided by an embodiment of the present application. As shown in Figure 3, when each execution unit performs a mapping task, it places the shuffled data belonging to partition 1 and the shuffled data belonging to partition 4 on one RSS node, the shuffled data belonging to partition 2 on one RSS node, and the shuffled data belonging to partition 3 on one RSS node.

[0089] As can be seen from Figure 3, the amount of shuffled data in partitions 1 and 4 is very large. This will cause multiple execution units to likely write a large amount of shuffled data to the first RSS node on the left at the same time, causing the RSS node to become a performance bottleneck.

[0090] Figure 4 is a schematic diagram of another load balancing strategy provided by an embodiment of the present application. As shown in Figure 4, when each execution unit performs a mapping task, it places the shuffled data belonging to partition 1 on one RSS node, the shuffled data belonging to partition 2 on one RSS node, and the shuffled data belonging to partition 3 on one RSS node.

[0091] As can be seen from Figure 4, the amount of shuffled data in these three partitions is relatively small, which will cause the shuffled data to be distributed very dispersed at the remote end, resulting in large chain building overhead and small data cross-node access overhead.

[0092] Based on this, an embodiment of the present application provides a method for storing shuffled data. This method can dynamically adjust the load balancing strategy during the application's runtime phase to avoid overloading a single RSS node. It can also estimate the amount of shuffled data at different stages of the application and statically assign a load balancing strategy to each stage to avoid sparse distribution of shuffled data in partitions with smaller data volumes.

[0093] The mapping and summarization system, the method for storing shuffle data, and related devices provided in the embodiments of the present application are explained in detail below.

[0094] FIG5 is a schematic diagram of the architecture of an RSS-based mapping and summarization system provided in an embodiment of the present application. As shown in FIG5 , the system includes multiple execution units and a driver unit for target applications, multiple RSS nodes, and a metadata service node deployed on the computing side. The target application is any application running in the mapping and summarization system. Multiple execution units and a driver unit are deployed on at least one computing node on the computing side. The embodiment of the present application does not limit the deployment method of the execution units and the driver units.

[0095] Each execution unit and the driver unit are connected wirelessly or wired for communication. Each execution unit and any RSS node are connected wirelessly or wired for communication. The driver unit and the metadata service node are connected wirelessly or wired for communication. The metadata service node is also connected wirelessly or wired for communication with each RSS node.

[0096] In an embodiment of the present application, the driver unit is used for resource application, information registration, and job scheduling. For example, the driver unit may request a load balancing policy set for a target application from a metadata service node. The load balancing policy set includes load balancing policies corresponding to each stage of the target application, and the driver unit may distribute the load balancing policy set to each execution unit so that each execution unit stores shuffled data for each stage according to the load balancing policy corresponding to each stage of the target application.

[0097] In addition, in the embodiment of the present application, during the operation of the target application, the aforementioned configured load balancing strategy can be dynamically updated according to the load conditions on each RSS node.

[0098] In order to realize the above two functions, some software modules are deployed on the metadata service node, RSS node and execution unit. These software modules are explained below.

[0099] As shown in FIG5 , the metadata service node includes a history management module (history manager) and a load balancing management module (LB manager), the RSS node includes a load monitoring module (LB monitor), and the execution unit includes an application load balancing management module (APP LB manager).

[0100] Figure 6 is a schematic diagram of a historical data management module of a metadata service node provided in an embodiment of the present application. As shown in Figure 6, the historical data management module is used to generate application history records (APP history records) and application sampling results (APP sample results) corresponding to the target application. The application history records indicate the amount of shuffled data at each stage during the historical operation of the target application. The application sampling results indicate the sampling results of the amount of shuffled data of the target application at each stage. Among them, the application history records are obtained by each RSS report, and the application sampling results are implemented by the sampling module included in the driving unit. The relevant implementation methods are described in detail in the subsequent method embodiments.

[0101] Figure 7 is a schematic diagram of a load balancing management module for a metadata service node provided in an embodiment of the present application. As shown in Figure 7, the load balancing management module includes a cluster load balancing status management module (cluster LB status manager), a load balancing strategy management module (LB strategy manager), and an RSS node extent handler module (RSS node extent handler).

[0102] Among them, the cluster load balancing state management module is used to configure the weight of each RSS node according to the load state data reported by each RSS node. The load balancing policy management module is used to respond to the request of the driving unit, configure the load balancing policy set (also called the initial load balancing policy set) for the target application based on the records in the historical data management module and the weights of each RSS node. The RSS node extension module is used to respond to the expansion requirements of a certain RSS node and extend another RSS node for the RSS node, so that part or all of the shuffle data that originally needed to be stored in the RSS node can be stored in the other RSS node after expansion. The relevant implementation method is described in detail in the subsequent method embodiment.

[0103] Figure 8 is a schematic diagram of a load monitoring module for an RSS node provided by an embodiment of the present application. As shown in Figure 8, the load monitoring management module includes a load balancing metric management module (LB metric manager), a load balancing reporting model module (LB report model) and a node extension management module (node ​​extend manager).

[0104] Among them, the load balancing measurement management module is used to record the distribution of shuffle data of all applications currently stored in the RSS node at each stage and the total amount of shuffle data stored by the RSS node. The load balancing reporting model module is used to periodically report the load status data of the node to the metadata service node. The node extension management module is used to determine whether to request the metadata service node to extend the RSS node based on its own load situation, so that the execution unit can update the load balancing strategy based on the extended RSS node. The relevant implementation method is described in detail in the subsequent method embodiment.

[0105] Figure 9 is a schematic diagram of an application load balancing management module of an execution unit node provided by an embodiment of the present application. As shown in Figure 9, the application load balancing management module includes an application load balancing strategy module (APP LB strategy) and an RSS node management module (RSS node manager).

[0106] Among them, the application load balancing policy module is used to receive the load balancing policy set from the driving unit on the one hand, and store the shuffled data to each RSS node according to the load balancing policy set when writing the shuffled data. On the other hand, it is used to update the load balancing policy in the load balancing policy set based on the extended RSS node obtained from a certain RSS node, and store the shuffled data to each RSS node according to the updated load balancing policy. The RSS node management module is used to register the target application to the extended RSS node. This is because when the target application is first registered, the target application is only registered to each RSS node in the initial load balancing policy set. For the newly extended RSS node, the target application needs to be re-registered on the newly extended RSS node. The relevant implementation method is described in detail in the subsequent method embodiment.

[0107] Figure 10 is a schematic diagram of the interaction process of various modules in the system shown in Figure 5 provided by an embodiment of the present application. As shown in Figure 10, the interaction process includes the following steps.

[0108] Step (01): The load detection module on the RSS node periodically reports its own load status data to the load balancing management module of the metadata service node, so that the metadata service node can configure corresponding weights for each RSS node based on the load status data of each RSS node.

[0109] Step (02) and step (1): The sampling module of the driver unit obtains the application sampling results for the target application and reports the application sampling results to the historical data management module of the metadata service node. The driver unit then requests the load balancing management module of the metadata service node to determine the load balancing policy set for the target application.

[0110] Step (2) and step (3): The load balancing management module of the metadata service node determines the load balancing strategy set for the target application based on the amount of shuffled data of the target application at each stage estimated by the historical data management module and the weight of each RSS node, and returns the load balancing strategy set for the target application to the driving unit.

[0111] Step (4) and step (5): The driving unit sends the load balancing policy set for the target application to the application load balancing management module in each execution unit, so that the application load balancing management module stores the shuffle data during the operation of the target application based on the load balancing policy set.

[0112] Steps (6) and (7): The RSS node monitors its own load, and when its own load is large, the load balancing management module of the metadata service node requests to expand the RSS node, and the load balancing management module returns the expanded RSS node to the RSS node, that is, the expanded RSS node.

[0113] Step (8): In response to the write data request message of the execution unit, the RSS node sends the situation of expanding the RSS node to the application load balancing management module in the execution unit, so that the application load balancing management module updates the load balancing policy in the load balancing policy set.

[0114] Step (9): The execution unit sends metadata of the shuffled data generated during the running of the target application to the driving unit, where the metadata of the shuffled data includes a storage location of the shuffled data.

[0115] Step (10) and step (11): When executing the induction task, the execution unit obtains the metadata of the shuffled data generated during the operation of the target application from the driving unit, and pulls the shuffled data from each RSS node based on the metadata.

[0116] Figures 5 to 10 are used to illustrate the application architecture of the embodiment of the present application. Optionally, the method provided in the embodiment of the present application can also be applied to other computing architectures, which will not be illustrated one by one here.

[0117] The following is an explanation of the method for storing shuffling data provided in an embodiment of the present application.

[0118] Figure 11 is a flow chart of a method for storing shuffle data provided by an embodiment of the present application. As shown in Figure 11, the method includes the following steps.

[0119] Step 1101: The execution unit stores first shuffle data to at least one RSS node according to a first load balancing strategy. The first shuffle data is shuffle data generated when executing a target application at the current time. The at least one RSS node includes the first RSS node.

[0120] Step 1102: The execution unit obtains an extended RSS node of the first RSS node.

[0121] Step 1103: The execution unit updates the first load balancing policy based on the extended RSS node of the first RSS node to obtain a second load balancing policy.

[0122] Step 1104: The execution unit stores second shuffle data according to the second load balancing strategy, where the second shuffle data is shuffle data generated when the target application is executed after the current time.

[0123] The implementation of the above steps can be referred to in subsequent embodiments and will not be described in detail here.

[0124] In the embodiment of the present application, during the operation of the target application, the execution unit can obtain the extended RSS node for a certain RSS node, thereby updating the load balancing policy, thereby avoiding storing shuffled data according to the same load balancing policy throughout the operation of the target application. This can avoid excessive load pressure on a single RSS node.

[0125] Figure 12 is a flow chart of another method for storing shuffle data provided by an embodiment of the present application. As shown in Figure 12, the method includes the following steps.

[0126] Step 1201: In the process of the execution unit storing the first shuffle data in at least one remote shuffle service RSS node according to the first load balancing strategy, in response to the load pressure of the first RSS node among the at least one RSS node, the management node determines a second RSS node from multiple RSS nodes as an extended RSS node of the first RSS node, so that the execution unit stores the second shuffle data according to the second load balancing strategy.

[0127] The at least one RSS node is an RSS node indicated in the first load strategy for storing the first shuffle data. The multiple RSS nodes are all RSS nodes registered on the management node.

[0128] Among them, the first shuffle data is the shuffle data generated when the execution unit executes the target application at the current time, the second shuffle data is the shuffle data generated when the execution unit executes the target application after the current time, and the second load balancing strategy is obtained by updating the first load balancing strategy based on the second RSS node.

[0129] The management node is exemplarily a metadata service node in the system shown in FIG5 . Optionally, the management node may also be implemented by other nodes, which is not limited in the embodiments of the present application.

[0130] The implementation of the above steps can be referred to in subsequent embodiments and will not be described in detail here.

[0131] In this embodiment of the present application, when the execution unit stores shuffled data generated during the operation of the target application, the management node can determine an extended RSS node for a specific RSS node in response to the load pressure of that RSS node in the initial load balancing policy. This avoids storing shuffled data according to the same load balancing policy throughout the entire operation of the target application, thus preventing excessive load pressure on a single RSS node.

[0132] Figure 13 is a flow chart of another method for storing shuffle data provided by an embodiment of the present application. As shown in Figure 13, the method includes the following steps.

[0133] Step 1301: A first RSS node receives at least part of first shuffled data stored by an execution unit according to a first load balancing strategy, where the first shuffled data is shuffled data generated when the execution unit currently executes a target application program.

[0134] Step 1302: In response to its own load pressure, the first RSS node obtains the extended RSS node, so that the execution unit stores the second shuffle data according to the second load balancing strategy.

[0135] The second shuffle data is shuffle data generated when the execution unit executes the target application after the current time. The second load balancing strategy is obtained by updating the first load balancing strategy based on the extended RSS node.

[0136] The implementation of the above steps can be referred to in subsequent embodiments and will not be described in detail here.

[0137] In an embodiment of the present application, when the execution unit stores shuffle data generated during the operation of the target application, each RSS node can determine whether to obtain an extended RSS node for itself based on its own load pressure, so that the execution unit can obtain the extended RSS node for the RSS node during the operation of the target application, thereby updating the load balancing policy, thereby avoiding storing shuffle data according to the same load balancing policy throughout the operation of the target application. This can avoid excessive load pressure on a single RSS node.

[0138] The embodiments shown in FIG. 11 to FIG. 13 are described in detail below.

[0139] Figure 14 is a flow chart of a method for storing shuffle data provided by an embodiment of the present application. As shown in Figure 14, the method includes the following steps.

[0140] Step 1401: The execution unit stores first shuffle data to at least one RSS node according to a first load balancing strategy. The at least one RSS node includes a first RSS node. The first shuffle data is shuffle data generated when executing a target application at the current time.

[0141] The first load balancing strategy includes at least one RSS node identifier, and the at least one RSS node identifier is used to uniquely identify at least one RSS node storing the first shuffled data. For example, in addition to including at least one RSS node identifier, the first load balancing strategy also includes at least one partition identifier corresponding to each RSS node identifier, which is used to indicate which partition's shuffled data is stored on which RSS node. For example, if the first RSS node identifier in the at least one RSS node identifier corresponds to the first partition identifier, then when storing the first shuffled data, the execution unit stores the shuffled data belonging to the first partition in the first shuffled data on the first RSS node.

[0142] In the embodiment of the present application, the RSS node can be expanded at any time during the operation of the target application to update the first load balancing strategy, thereby avoiding excessive load on a single RSS node. In this scenario, the first shuffle data can be shuffle data generated at any time during the operation of the target application.

[0143] Furthermore, considering that the target application's running process typically includes multiple stages, each of which typically includes a large number of mapping tasks, the RSS node can also be expanded after a mapping task in a certain stage of the target application to update the first load balancing strategy so that the updated load balancing strategy can be used in the next mapping task, thereby avoiding excessive load on a single RSS node. In this scenario, the first shuffled data is the shuffled data generated when the execution unit executes the first mapping task in the target stage of the target application, the target stage is any stage of the multiple stages corresponding to the target application, and the first mapping task is any mapping task in the target stage.

[0144] In addition, in an embodiment of the present application, in order to improve the load balancing effect, different load balancing strategies can be pre-configured for different stages of the target application, so that in the initial period of any stage, data can be stored according to the pre-configured load balancing strategy, and in the later stage of the stage, the RSS node can be expanded to update the corresponding load balancing strategy.

[0145] In this scenario, before the target application runs, the execution unit obtains and stores a load balancing policy set, which includes multiple load balancing policies corresponding to the multiple stages of the target application. In this case, the first load balancing policy is the load balancing policy in the load balancing policy set that corresponds to the target stage.

[0146] In some embodiments, the execution unit may obtain the load balancing policy set in the following manner: the execution unit receives the load balancing policy set from the driving unit.

[0147] For example, when a driver unit performs a registration operation for a target application, the driver unit sends an application registration request to the management node. The application registration request carries an identifier of the target application. When the management node receives the application registration request from the driver unit, the management node determines a load balancing policy set for the target application and returns the determined load balancing policy set to the driver unit.

[0148] That is, when registering a target application, the management node configures the load balancing policies corresponding to each stage for the target application to obtain a load balancing policy set.

[0149] Optionally, in the embodiment of the present application, the load balancing strategy for the target application may also be obtained through other methods, which will not be explained one by one here.

[0150] In addition, in some embodiments, the management node determines the load balancing strategy set in an implementation manner as follows: the management node determines the expected amount of shuffled data for each of multiple stages of the target application; the management node determines the load balancing strategy set based on the expected amount of shuffled data for each of the multiple stages and the weight of each RSS node in the multiple RSS nodes; wherein the expected number of shuffles in each stage is positively correlated with the number of RSS node identifiers included in the load balancing strategy corresponding to each stage.

[0151] The estimated amount of shuffled data at each stage can be understood as the amount of shuffled data that may be generated during the actual operation of that stage. In addition, the weight of each RSS node indicates the load size of each RSS node. For example, the larger the weight of each RSS node, the smaller the load of the RSS node.

[0152] The estimated number of shuffles in each phase is positively correlated with the number of RSS node identifiers included in the load balancing strategy for each phase. This allows for smaller RSS node identifiers in the load balancing strategy for a phase if the estimated number of shuffles is small. This allows the shuffled data for each partition to be distributed across a smaller number of RSS nodes during that phase, avoiding overly discrete distribution of shuffled data for partitions with smaller data volumes. This reduces subsequent chain building overhead and cross-node access overhead for small data volumes.

[0153] For example, the management node determines the expected amount of shuffling data for each of the multiple stages in an implementation manner as follows: the management node queries the shuffling data history record corresponding to the target application; if the management node queries the shuffling data history record, the management node determines the expected amount of shuffling data for each of the multiple stages based on the shuffling data history record.

[0154] The application history records shown in FIG6 include shuffling data history records corresponding to a plurality of application programs. Based on this, querying the shuffling data history records corresponding to the target application program can be achieved by querying the application history records, for example.

[0155] The aforementioned historical shuffle data record illustratively includes the amount of historical shuffle data corresponding to each of the multiple stages of the target application and the size of the historical dataset corresponding to the target application. Based on this, an estimated amount of shuffle data for each stage can be determined based on the amount of historical shuffle data corresponding to each stage in the historical shuffle data record, using a proportional relationship between the size of the dataset corresponding to the target application at the current time and the size of the historical dataset corresponding to the target application, using a scaling method.

[0156] The amount of historical shuffling data corresponding to each stage described above can be understood as the total amount of historical shuffling data corresponding to that stage. Accordingly, the estimated amount of shuffling data determined for each stage is also the estimated total amount of shuffling data. Optionally, the amount of historical shuffling data corresponding to each stage can, for example, include the amount of historical shuffling data for each of the multiple partitions. In this scenario, the estimated amount of shuffling data determined for each stage includes the estimated amount of shuffling data corresponding to each of the multiple partitions, facilitating more accurate configuration of load balancing strategies later on.

[0157] In addition, optionally, in some embodiments, after querying the shuffling data history records corresponding to the target application, if the management node does not query the shuffling data history records, it can obtain the shuffling data sampling results corresponding to the target application; based on the shuffling data sampling results, the management node determines the expected shuffling data volume for each of the multiple stages.

[0158] The application sampling results shown in FIG6 include shuffling data sampling results corresponding to multiple application programs. Based on this, querying the shuffling data sampling results corresponding to the target application program can be achieved by querying the application sampling results.

[0159] The shuffled data sampling results corresponding to the target application may include, for example, the sampled shuffled data volumes corresponding to each stage. Based on this, the estimated shuffled data volume for each stage may be determined based on the sampled shuffled data volumes corresponding to each stage.

[0160] The amount of sampled shuffled data corresponding to each stage can be understood as the sampling result of the shuffled data volume on a specific number of partitions. Based on this, the amount of sampled shuffled data corresponding to each stage can be scaled proportionally based on the total number of partitions to obtain the estimated shuffled data volume for that stage. The sampled shuffled data volume can be obtained by sampling a certain proportion of the shuffled data in a specified proportion of partitions using an additional insertion operator.

[0161] In addition, the weight of each RSS node in the plurality of RSS nodes is predetermined by the management node. In some embodiments, the management node may determine the weight of each RSS node in the plurality of RSS nodes by: the management node receiving load status data from each RSS node in the plurality of RSS nodes, the load status data indicating the load status of the corresponding RSS node; and the management node determining the weight of each RSS node in the plurality of RSS nodes based on the load status data of each RSS node in the plurality of RSS nodes.

[0162] By having each RSS node report load status data, the management node can determine the weight of each RSS node.

[0163] For example, the load status data may include memory usage, thread usage, network bandwidth pressure, disk usage, etc.

[0164] In addition, the weight of each of the multiple RSS nodes is determined based on the load status data of each of the multiple RSS nodes. For example, the weight can be set by the administrator based on relevant experience. For example, the greater the memory usage, thread usage, network bandwidth pressure, or disk usage of the RSS node, the smaller the weight of the RSS node. Alternatively, this can be achieved through some algorithms, which will not be explained here one by one.

[0165] Furthermore, because the load on each RSS node is constantly updating, the weight of each RSS node needs to be updated promptly to improve the effectiveness of the load balancing strategy. To this end, in some embodiments, a first RSS node periodically reports its load status data to a management node, allowing the management node to determine the weight of the first RSS node based on the load status data. In other words, the management node periodically updates the weight of the first RSS node.

[0166] In addition, if the target application is running unstably, configuring load balancing strategies for each stage based on the expected amount of shuffled data is not very meaningful. In this scenario, users can also configure the initial load balancing strategy for the target application through the metadata service node shown in Figure 5, which will not be explained in detail here.

[0167] Step 1402: The first RSS node receives at least part of the first shuffle data stored by the execution unit according to the first load balancing strategy.

[0168] After the execution unit stores the first shuffled data according to the first load balancing policy, since the first RSS node is a storage node designated by the first load balancing policy, the first RSS node receives at least part of the first shuffled data.

[0169] The first RSS node stores the shuffled data each time after receiving the shuffled data.

[0170] Step 1403: In response to its own load pressure, the first RSS node obtains the extended RSS node, so that the execution unit stores the second shuffle data according to the second load balancing strategy.

[0171] In an embodiment of the present application, during the operation of the target application, in order to avoid excessive load pressure on a single RSS node, after the execution unit stores the first shuffle data to each RSS node according to the first load balancing strategy, each RSS node can monitor its own load pressure to determine whether the RSS node needs to be expanded.

[0172] In some embodiments, step 1403 may be implemented as follows: when the first RSS node detects that the total amount of shuffle data stored in the node exceeds a reference threshold, the first RSS node sends a node extension request message to the management node; when the management node receives the node extension request message from the first RSS node, the management node determines a second RSS node from multiple RSS nodes as an extended RSS node, and the management node returns a node extension response message to the first RSS node, the node extension response message carries the identifier of the extended RSS node, and the first RSS node receives the node extension response message from the management node.

[0173] The reference threshold can be preconfigured by the administrator. When the total amount of shuffled data stored by the first RSS node exceeds the reference threshold, it indicates that the first RSS node has insufficient storage space. Storing a large amount of shuffled data in this situation will likely overload the first RSS node. Therefore, in this scenario, the first RSS node can send a node expansion request message to the management node.

[0174] During the operation of the target application, the first RSS node may periodically monitor its own load pressure according to a preset period. Optionally, during the operation of the target application, the first RSS node may monitor its own load pressure once each time it receives shuffle data from the execution unit.

[0175] In addition, the implementation method for the management node to determine the second RSS node from multiple RSS nodes as an extended RSS node can be: the management node obtains the weight of each RSS node in the multiple RSS nodes, and the weight indicates the size of the load pressure of the corresponding RSS node; based on the weight of each RSS node in the multiple RSS nodes, the management node determines the second RSS node from the multiple RSS nodes.

[0176] By using weights, the management node can select an RSS node with a smaller load as an extension node.

[0177] For example, in a scenario where the greater the weight, the smaller the load pressure, the management node selects a node with a relatively large weight from multiple RSS nodes as the second RSS node.

[0178] In addition, when the first RSS node receives the node expansion response message from the management node, the first RSS node may also check the number of mapping tasks that have not yet been executed among all mapping tasks registered to the first RSS node in the current phase. If the number of mapping tasks that have not yet been executed in the current phase is large, the second RSS node is stored locally as an expanded RSS node. Correspondingly, if the number of mapping tasks that have not yet been executed in the current phase is small, the second RSS node is not treated as an expanded RSS node.

[0179] The above implementation is described by taking the management node determining the extended RSS node as an example. Alternatively, the extended RSS node can be determined by other methods, such as the first RSS node can directly interact with other RSS nodes to determine the extended RSS node through the first RSS node, which will not be described in detail here.

[0180] Step 1404: The execution unit obtains an extended RSS node of the first RSS node.

[0181] In some embodiments, in step 1401, the execution unit sends a write data request message to the first RSS node, where the write data request message indicates that at least a portion of the first shuffled data should be stored in the first RSS node. In this scenario, step 1404 may be implemented as follows: the first RSS node receives a write data response message from the execution unit, where the write data response message carries the identifier of the extended RSS node.

[0182] That is, when the first RSS node receives a write data request message from the execution unit, after storing the shuffling data, the first RSS node will also check whether it is configured with an extended RSS node. For the specific configuration method, refer to step 1403. If the extended RSS node is configured, a write data response message carrying the identifier of the extended RSS node is returned to the execution unit to notify the execution unit that its current load is too large and subsequent shuffling data can be stored in the extended RSS node.

[0183] Optionally, in step 1403, when the first RSS node obtains the extended RSS node configured by the management node, the first RSS node may also directly send the identifier of the extended RSS node to the execution unit, instead of waiting to send the identifier of the extended RSS node until it receives the write data request message from the execution unit.

[0184] Step 1405: The execution unit updates the first load balancing policy based on the extended RSS node of the first RSS node to obtain a second load balancing policy.

[0185] After obtaining the node expansion result, the execution unit updates the first load balancing strategy through step 1405 to obtain a second load balancing strategy.

[0186] Among them, the execution unit updates the first load balancing strategy based on the extended RSS node of the first RSS node to obtain the second load balancing strategy, which can be understood as follows: assuming that the first load balancing strategy indicates that the shuffled data of the first partition and the second partition are stored in the first RSS node, the updated second load balancing strategy indicates that the shuffled data of the second partition is stored in the extended RSS node, and the first partition data is stored in the first RSS node.

[0187] Optionally, it can also be understood that: assuming that the first load balancing strategy indicates that the shuffled data of the first partition and the second partition are stored in the first RSS node, the updated second load balancing strategy indicates that the shuffled data of the first partition and the second partition are stored in the extended RSS node.

[0188] Step 1406: The execution unit stores second shuffle data according to the second load balancing strategy, where the second shuffle data is shuffle data generated when the target application is executed after the current time.

[0189] After the execution unit obtains the updated second load balancing strategy, the execution unit can store the subsequently generated second shuffle data according to the second load balancing strategy to avoid storing the shuffle data according to the first load balancing strategy during the entire running process of the target application, thereby avoiding excessive load on a single RSS node.

[0190] Optionally, in a scenario where a load balancing strategy is configured for each stage of the target application, steps 1401 to 1406 can achieve the following: updating the initially configured load balancing strategy at an intermediate moment in a stage of the target application, and the execution unit can store the second shuffle data subsequently generated in that stage according to the second load balancing strategy, so as to avoid storing the shuffle data according to the first load balancing strategy throughout the entire stage, thereby further avoiding excessive load on a single RSS node.

[0191] Figure 15 is a schematic diagram of an update of a load balancing strategy provided by an embodiment of the present application. As shown in Figure 15, it is assumed that the operation process of the target application includes three stages, namely the first stage, the second stage and the third stage, and an initial load balancing strategy is configured in the three stages of the target application. Each stage includes a large number of mapping tasks. For any stage, such as the first stage, for the shuffled data generated by the early mapping tasks of the first stage, the execution unit stores the shuffled data to each RSS node according to the initial load balancing. As the amount of shuffled data stored in each RSS node increases, the load pressure of each RSS node becomes larger. When the load pressure of a certain RSS node is too large, an extended RSS node for the RSS node can be configured, so that the execution unit can update the initial load balancing strategy for the first stage to transfer the shuffled data generated in the subsequent mapping tasks of the first stage that needs to be stored in the RSS node to the extended RSS node.

[0192] In summary, in the embodiment of the present application, during the operation of the target application, the execution unit can obtain an extended RSS node for a certain RSS node, thereby updating the load balancing policy, thereby avoiding storing shuffled data according to the same load balancing policy throughout the operation of the target application. This can avoid excessive load pressure on a single RSS node.

[0193] Furthermore, when registering a target application, different load balancing strategies can be configured for different stages of the target application, thereby avoiding excessive load pressure on a single RSS node. Therefore, an embodiment of the present application provides a static configuration scheme for a load balancing strategy at the stage level. The configuration of different load balancing strategies for different stages of the target application can be based on the expected amount of shuffled data for each stage, thereby avoiding the shuffled data of a large number of partitions with small data volumes being too scattered.

[0194] Furthermore, for a certain stage of the target application, an extended RSS node can be obtained in response to the load pressure of the RSS node after a mapping task to update the load balancing policy. Starting from the next mapping task after the mapping task, the updated load balancing policy is used to store shuffled data. In other words, the embodiment of the present application provides a dynamic response solution for the load balancing policy at the task level.

[0195] In summary, in the embodiment of the present application, the execution unit can obtain the extended RSS node for a certain RSS node during the operation of the target application, thereby updating the load balancing policy, thereby avoiding storing shuffled data according to the same load balancing policy throughout the operation of the target application. This can avoid excessive load pressure on a single RSS node.

[0196] FIG16 is a schematic diagram of the structure of a device for storing shuffling data provided in an embodiment of the present application. The device is deployed in an execution unit. As shown in FIG16 , the device 1600 includes the following modules.

[0197] A first storage module 1601 is configured to store first shuffle data in at least one remote shuffle service (RSS) node according to a first load balancing policy. The first shuffle data is shuffle data generated when the target application is currently executed. The at least one RSS node includes the first RSS node. For specific implementation, see step 1401 in the embodiment of FIG. 14 .

[0198] The first acquisition module 1602 is configured to acquire an extended RSS node of the first RSS node. For specific implementation, please refer to step 1404 in the embodiment of FIG14 .

[0199] The updating module 1603 is configured to update the first load balancing strategy based on the extended RSS node of the first RSS node to obtain a second load balancing strategy. Specific implementation methods can refer to step 1405 in the embodiment of FIG14 .

[0200] The second storage module 1604 is configured to store second shuffled data according to the second load balancing strategy. The second shuffled data is shuffled data generated when the target application is executed after the current time. For specific implementation, please refer to step 1406 in the embodiment of FIG14 .

[0201] Optionally, the first shuffle data is the shuffle data generated when the execution unit executes the first mapping task in the target phase of the target application, and the target phase is any one of the multiple phases corresponding to the target application; the second shuffle data is the shuffle data generated when the execution unit executes the second mapping task in the target phase of the target application, and the second mapping task is a mapping task executed after the first mapping task.

[0202] Optionally, the device also includes: a second acquisition module, used to obtain a load balancing policy set, the load balancing policy set includes multiple load balancing policies corresponding one-to-one to multiple stages, and the first load balancing policy is the load balancing policy in the load balancing policy set corresponding to the target stage; a third storage module, used to store the load balancing policy set.

[0203] Optionally, the second acquisition module is used to: the execution unit receives the load balancing strategy set from the driving unit.

[0204] Optionally, the first storage module is used to: send a write data request message to the first RSS node, the write data request message indicates that part of the first shuffled data is stored in the first RSS node; the first acquisition module is used to: receive a write data response message from the first RSS node, the write data response message carries the identifier of the extended RSS node.

[0205] In summary, in the embodiment of the present application, the execution unit can obtain the extended RSS node for a certain RSS node during the operation of the target application, thereby updating the load balancing policy, thereby avoiding storing shuffled data according to the same load balancing policy throughout the operation of the target application. This can avoid excessive load pressure on a single RSS node.

[0206] It should be noted that the aforementioned embodiments of the device for storing shuffled data are merely illustrative of the division of the aforementioned functional modules when storing shuffled data. In actual applications, the aforementioned functions can be assigned to different functional modules as needed, i.e., the internal structure of the device can be divided into different functional modules to perform all or part of the aforementioned functions. Furthermore, the aforementioned embodiments of the device for storing shuffled data and the method for storing shuffled data are conceptually identical. The detailed implementation process is described in the method embodiments and will not be further elaborated here.

[0207] Figure 17 is a schematic diagram of the structure of another device for storing shuffling data provided by an embodiment of the present application. The device is deployed on a management node. As shown in Figure 17, the device 1700 includes the following modules.

[0208] First determining module 1701 is configured to, during the process of the execution unit storing the first shuffle data in at least one remote shuffle service RSS node according to the first load balancing strategy, determine, in response to the load pressure of a first RSS node among the at least one RSS node, a second RSS node from a plurality of RSS nodes as an extended RSS node of the first RSS node, so that the execution unit stores the second shuffle data according to the second load balancing strategy. For specific implementation, see step 1403 in the embodiment of FIG. 14 .

[0209] Among them, the first shuffle data is the shuffle data generated when the execution unit executes the target application at the current time, the second shuffle data is the shuffle data generated when the execution unit executes the target application after the current time, and the second load balancing strategy is obtained by updating the first load balancing strategy based on the second RSS node.

[0210] Optionally, the first determining module is configured to: upon receiving a node expansion request message from a first RSS node, perform an operation of determining a second RSS node from a plurality of RSS nodes, the node expansion request message indicating that a total amount of shuffled data stored on the first RSS node exceeds a reference threshold;

[0211] The device further includes: a first sending module, configured to return a node extension response message to the first RSS node, where the node extension response message carries an identifier of the second RSS node.

[0212] Optionally, the first determination module is used to: obtain the weight of each RSS node in multiple RSS nodes, where the weight indicates the size of the load pressure of the corresponding RSS node; and determine a second RSS node from the multiple RSS nodes based on the weight of each RSS node in the multiple RSS nodes.

[0213] Optionally, the device also includes: a receiving module for receiving load status data from each RSS node in a plurality of RSS nodes, the load status data indicating the load status of the corresponding RSS node; and a second determination module for determining the weight of each RSS node in a plurality of RSS nodes based on the load status data of each RSS node in a plurality of RSS nodes.

[0214] Optionally, the first shuffle data is the shuffle data generated when the execution unit executes the first mapping task in the target phase of the target application, and the target phase is any one of the multiple phases corresponding to the target application; the second shuffle data is the shuffle data generated when the execution unit executes the second mapping task in the target phase of the target application, and the second mapping task is a mapping task executed after the first mapping task.

[0215] Optionally, the device also includes: a third determination module, used to determine a load balancing policy set, the load balancing policy set including multiple load balancing policies corresponding one-to-one to multiple stages of the target application, and the first load balancing policy is the load balancing policy corresponding to the target stage in the load balancing policy set.

[0216] Optionally, the third determination module is used to: when receiving an application registration request from the driving unit, execute the operation of determining the load balancing policy set, and the application registration request carries the identifier of the target application; the device also includes: a second sending module, used to return the load balancing policy set to the driving unit.

[0217] Optionally, the third determination module is used to: determine the expected amount of shuffling data for each of the multiple stages; determine a set of load balancing strategies based on the expected amount of shuffling data for each of the multiple stages and the weight of each RSS node in the multiple RSS nodes; wherein the expected number of shuffles in each stage is positively correlated with the number of RSS node identifiers included in the load balancing strategy corresponding to each stage.

[0218] Optionally, the third determination module is configured to: query a shuffle data history record corresponding to the target application; and if the shuffle data history record is found, determine an estimated shuffle data volume for each of the multiple stages based on the shuffle data history record.

[0219] Optionally, the third determination module is used to: if no shuffling data history record is found, obtain a shuffling data sampling result corresponding to the target application; and determine an estimated shuffling data volume for each of the multiple stages based on the shuffling data sampling result.

[0220] In this embodiment of the present application, when the execution unit stores shuffled data generated during the operation of the target application, the management node can determine an extended RSS node for a specific RSS node in response to the load pressure of that RSS node in the initial load balancing policy. This avoids storing shuffled data according to the same load balancing policy throughout the entire operation of the target application, thus preventing excessive load pressure on a single RSS node.

[0221] It should be noted that the aforementioned embodiments of the device for storing shuffled data are merely illustrative of the division of the aforementioned functional modules when storing shuffled data. In actual applications, the aforementioned functions can be assigned to different functional modules as needed, i.e., the internal structure of the device can be divided into different functional modules to perform all or part of the aforementioned functions. Furthermore, the aforementioned embodiments of the device for storing shuffled data and the method for storing shuffled data are conceptually identical. The detailed implementation process is described in the method embodiments and will not be further elaborated here.

[0222] Figure 18 is a schematic diagram of the structure of another device for storing shuffle data provided by an embodiment of the present application. The device is deployed at the first RSS node. As shown in Figure 18, the device 1800 includes the following modules.

[0223] Receiving module 1801 is configured to receive at least a portion of first shuffled data stored by the execution unit according to the first load balancing policy, where the first shuffled data is shuffled data generated when the execution unit currently executes the target application. For specific implementation, see step 1402 in the embodiment of FIG. 14 .

[0224] Acquisition module 1802 is configured to acquire an extended RSS node in response to its own load pressure, so that the execution unit can store second shuffle data according to a second load balancing policy. The second shuffle data is shuffle data generated when the execution unit executes the target application after the current time. For specific implementation methods, see step 1403 in the embodiment of Figure 14.

[0225] The second load balancing strategy is obtained by updating the first load balancing strategy based on the extended RSS node.

[0226] Optionally, the acquisition module is used to: when it monitors that the total amount of shuffle data stored in itself exceeds a reference threshold, send a node extension request message to the management node; receive a node extension response message from the management node, the node extension response message carrying the identifier of the extended RSS node.

[0227] Optionally, the receiving module is used to: receive a write data request message from the execution unit, the write data request message indicating that part of the data in the first shuffled data is stored in the first RSS node; the device also includes: a first sending module, used to send a write data response message to the execution unit, the write data response message carries the identifier of the extended RSS node.

[0228] Optionally, the device further includes: a second sending module, configured to periodically report the load status data of the first RSS node to the management node.

[0229] In an embodiment of the present application, when the execution unit stores shuffle data generated during the operation of the target application, each RSS node can determine whether to obtain an extended RSS node for itself based on its own load pressure, so that the execution unit can obtain the extended RSS node for the RSS node during the operation of the target application, thereby updating the load balancing policy, thereby avoiding storing shuffle data according to the same load balancing policy throughout the operation of the target application. This can avoid excessive load pressure on a single RSS node.

[0230] It should be noted that the aforementioned embodiments of the device for storing shuffled data are merely illustrative of the division of the aforementioned functional modules when storing shuffled data. In actual applications, the aforementioned functions can be assigned to different functional modules as needed, i.e., the internal structure of the device can be divided into different functional modules to perform all or part of the aforementioned functions. Furthermore, the aforementioned embodiments of the device for storing shuffled data and the method for storing shuffled data are conceptually identical. The detailed implementation process is described in the method embodiments and will not be further elaborated here.

[0231] Figure 19 is a schematic diagram of the structure of a computer device provided in an embodiment of the present application. The computing nodes, RSS nodes, or management nodes in the aforementioned embodiments can all be implemented using the computer device shown in Figure 19. Referring to Figure 19, the computer device includes a processor 1901, a communication bus 1902, a memory 1903, and at least one communication interface 1904.

[0232] The processor 1901 may be a general-purpose central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the present application.

[0233] The communication bus 1902 is used to transmit information between the above components.

[0234] The memory 1903 may be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM) or other type of dynamic storage device that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, an optical disc storage (including a compact disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 1903 may exist independently and be connected to the processor 1901 via the communication bus 1902. The memory 1903 may also be integrated with the processor 1901.

[0235] Memory 1903 is used to store program code for executing the solution of the present application, and is controlled by processor 1901 for execution. Processor 1901 is used to execute the program code stored in memory 1903. The program code may include one or more software modules. The computing nodes, RSS nodes, and management nodes in the aforementioned embodiments can all determine data for developing applications through processor 1901 and one or more software modules in the program code in memory 1903.

[0236] The communication interface 1904 uses any transceiver or other device for communicating with other devices or communication networks. The communication network can be Ethernet, radio access network (RAN), wireless local area network (WLAN), etc.

[0237] In a specific implementation, as an embodiment, a computer device may include multiple processors, such as processor 1901 and processor 1905 shown in FIG19 . Each of these processors may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. The processor herein may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).

[0238] The aforementioned computer device may be a general-purpose computer device or a dedicated computer device. In a specific implementation, the computer device may be a desktop computer, a portable computer, a network server, a personal digital assistant (PDA), a mobile phone, a tablet computer, a wireless terminal device, a communication device, or an embedded device. The embodiments of the present application do not limit the type of computer device.

[0239] In the above embodiments, all or part of the embodiments can be implemented by software, hardware, firmware, or any combination thereof. When implemented using software, all or part of the embodiments can be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media integrated therein. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a digital versatile disc (DVD)), or a semiconductor medium (eg, a solid state disk (SSD)).

[0240] Those skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware, or by a program to instruct the relevant hardware, and the program may be stored in a computer-readable storage medium, which may be a read-only memory, a disk, or an optical disk, etc.

[0241] The above description is an embodiment provided for this application and is not intended to limit the embodiments of this application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the embodiments of this application should be included in the scope of protection of the embodiments of this application.

Claims

1. A method for storing shuffle data, It is characterized in that The method comprises: The execution unit stores first shuffling data to at least one remote shuffling service RSS node according to a first load balancing strategy, wherein the first shuffling data is shuffling data generated when executing a target application at a current time, and the at least one RSS node includes a first RSS node; The execution unit obtains an extended RSS node of the first RSS node; The execution unit updates the first load balancing strategy based on the extended RSS node of the first RSS node to obtain a second load balancing strategy; The execution unit stores second shuffling data according to the second load balancing strategy, where the second shuffling data is shuffling data generated when the target application is executed after the current time.

2. The method according to claim 1, It is characterized in that The first shuffle data is shuffle data generated when the execution unit executes the first mapping task in the target phase of the target application, and the target phase is any phase of multiple phases corresponding to the target application; The second shuffle data is shuffle data generated when the execution unit executes a second mapping task in the target phase of the target application, and the second mapping task is a mapping task executed after the first mapping task.

3. The method according to claim 2, It is characterized in that The method further comprises: The execution unit obtains a load balancing strategy set, the load balancing strategy set includes a plurality of load balancing strategies corresponding to the plurality of stages one by one, the first load balancing strategy being a load balancing strategy in the load balancing strategy set corresponding to the target stage; The execution unit stores the load balancing strategy set.

4. The method according to claim 3, It is characterized in that The execution unit obtains a load balancing strategy set, including: The execution unit receives the load balancing strategy set from the driving unit.

5. The method according to any one of claims 1 to 4, It is characterized in that The execution unit stores the first shuffling data to at least one remote shuffling service RSS node according to the first load balancing strategy, including: The execution unit sends a write data request message to the first RSS node, where the write data request message indicates to store part of the first shuffle data in the first RSS node; The execution unit acquires the extended RSS node of the first RSS node, including: The execution unit receives a write data response message from the first RSS node, where the write data response message carries an identifier of the extended RSS node.

6. A method for storing shuffled data, It is characterized in that The method comprises: In a process in which the execution unit stores the first shuffle data in at least one remote shuffle service RSS node according to the first load balancing strategy, in response to the load pressure of a first RSS node among the at least one RSS node, the management node determines a second RSS node from a plurality of RSS nodes as an extended RSS node of the first RSS node, so that the execution unit stores the second shuffle data in accordance with the second load balancing strategy; Among them, the first shuffle data is the shuffle data generated when the execution unit executes the target application at the current time, the second shuffle data is the shuffle data generated when the execution unit executes the target application after the current time, and the second load balancing strategy is obtained by updating the first load balancing strategy based on the second RSS node.

7. The method according to claim 6, It is characterized in that In response to the load pressure of the first RSS node, the management node determines a second RSS node from a plurality of RSS nodes as an extended RSS node of the first RSS node, including: When the management node receives a node expansion request message from the first RSS node, the management node performs an operation of determining the second RSS node from the plurality of RSS nodes, the node expansion request message indicating that a total amount of shuffle data stored on the first RSS node exceeds a reference threshold; The method further comprises: The management node returns a node extension response message to the first RSS node, where the node extension response message carries the identifier of the second RSS node.

8. The method according to claim 6, It is characterized in that The management node determines a second RSS node from a plurality of RSS nodes as an extended RSS node of the first RSS node, including: The management node obtains a weight of each RSS node among the multiple RSS nodes, where the weight indicates a magnitude of a load pressure of the corresponding RSS node; The management node determines the second RSS node from the multiple RSS nodes based on the weight of each RSS node in the multiple RSS nodes.

9. The method according to claim 8, It is characterized in that Before the management node obtains the weight of each RSS node in the multiple RSS nodes, the method further includes: The management node receives load status data from each of the plurality of RSS nodes, the load status data indicating a load status of the corresponding RSS node; The management node determines a weight of each of the multiple RSS nodes based on load status data of each of the multiple RSS nodes.

10. The method according to any one of claims 6 to 9, It is characterized in that The first shuffle data is shuffle data generated when the execution unit executes the first mapping task in the target phase of the target application, and the target phase is any phase of multiple phases corresponding to the target application; The second shuffle data is shuffle data generated when the execution unit executes a second mapping task in the target phase of the target application, and the second mapping task is a mapping task executed after the first mapping task.

11. The method according to claim 10, It is characterized in that The method further comprises: The management node determines a load balancing policy set, the load balancing policy set includes multiple load balancing policies corresponding one-to-one to multiple stages of the target application, and the first load balancing policy is the load balancing policy in the load balancing policy set corresponding to the target stage.

12. The method according to claim 11, It is characterized in that The management node determines a load balancing strategy set, including: When the management node receives an application registration request from a driver unit, the management node performs an operation of determining the load balancing policy set, wherein the application registration request carries an identifier of the target application program; The method further comprises: The management node returns the load balancing strategy set to the driver unit.

13. The method according to claim 11, It is characterized in that The management node determines a load balancing strategy set, including: The management node determines an estimated amount of shuffled data for each of the plurality of stages; The management node determines the load balancing strategy set based on the estimated shuffle data volume of each stage in the multiple stages and the weight of each RSS node in the multiple RSS nodes; Among them, there is a positive correlation between the expected number of shuffles in each stage and the number of RSS node identifiers included in the load balancing strategy corresponding to each stage.

14. The method according to claim 13, It is characterized in that The management node determines an estimated amount of shuffled data for each of the multiple stages, including: The management node queries the shuffle data history records corresponding to the target application; If the management node queries the shuffle data history record, the management node determines the estimated shuffle data volume of each stage in the multiple stages based on the shuffle data history record.

15. The method of claim 14, It is characterized in that After the management node queries the shuffle data history records corresponding to the target application, the method further includes: If the management node fails to query the shuffle data history record, obtaining a shuffle data sampling result corresponding to the target application; The management node determines an estimated amount of shuffle data for each of the multiple stages based on the shuffle data sampling result.

16. A method for storing shuffled data, It is characterized in that The method comprises: The first RSS node receives at least part of the first shuffled data stored by the execution unit according to the first load balancing strategy, where the first shuffled data is shuffled data generated when the execution unit executes the target application at the current time; In response to its own load pressure, the first RSS node acquires an extended RSS node so that the execution unit stores second shuffle data according to a second load balancing strategy, where the second shuffle data is shuffle data generated when the execution unit executes the target application after the current time; The second load balancing strategy is obtained by updating the first load balancing strategy based on the extended RSS node.

17. The method of claim 16, It is characterized in that The first RSS node acquires the extended RSS node in response to its own load pressure, including: When it is monitored that the total amount of shuffle data stored in the first RSS node exceeds a reference threshold, the first RSS node sends a node expansion request message to the management node; The first RSS node receives a node extension response message from the management node, where the node extension response message carries an identifier of the extended RSS node.

18. The method of claim 16, It is characterized in that The first RSS node receives at least part of the first shuffle data stored by the execution unit according to the first load balancing strategy, including: The first RSS node receives a write data request message from the execution unit, wherein the write data request message indicates storing part of the first shuffle data to the first RSS node; After the first RSS node acquires the extended RSS node, the method further includes: The first RSS node sends a write data response message to the execution unit, where the write data response message carries the identifier of the extended RSS node.

19. The method according to any one of claims 16 to 18, It is characterized in that The method further comprises: The first RSS node periodically reports the load status data of the first RSS node to the management node.

20. A device for storing shuffle data, It is characterized in that The device is deployed in an execution unit, and the device includes: A first storage module is used to store first shuffling data to at least one remote shuffling service RSS node according to a first load balancing strategy, wherein the first shuffling data is shuffling data generated when executing a target application at a current time, and the at least one RSS node includes a first RSS node; A first acquisition module, used to acquire an extended RSS node of the first RSS node; An updating module, configured to update the first load balancing strategy based on an extended RSS node of the first RSS node to obtain a second load balancing strategy; The second storage module is used to store second shuffling data according to the second load balancing strategy, where the second shuffling data is shuffling data generated when the target application is executed after the current time.

21. The device according to claim 20, It is characterized in that The first shuffle data is shuffle data generated when the execution unit executes the first mapping task in the target phase of the target application, and the target phase is any phase of multiple phases corresponding to the target application; The second shuffle data is generated when the execution unit executes the second mapping task in the target phase of the target application. Shuffle data, the second mapping task is a mapping task executed after the first mapping task.

22. The device according to claim 21, It is characterized in that The device also includes: A second acquisition module is used to acquire a load balancing strategy set, wherein the load balancing strategy set includes multiple load balancing strategies corresponding to the multiple stages one by one, and the first load balancing strategy is the load balancing strategy in the load balancing strategy set corresponding to the target stage; The third storage module is used to store the load balancing strategy set.

23. The device according to claim 22, It is characterized in that The second acquisition module is used for: The execution unit receives the load balancing strategy set from the driving unit.

24. The device according to any one of claims 20 to 23, It is characterized in that The first storage module is used for: Sending a write data request message to the first RSS node, wherein the write data request message indicates storing part of the first shuffled data to the first RSS node; The first acquisition module is used to: A write data response message is received from the first RSS node, where the write data response message carries an identifier of the extended RSS node.

25. A device for storing shuffle data, It is characterized in that The device is deployed on a management node, and includes: A first determining module is used for determining a second RSS node from a plurality of RSS nodes as an extended RSS node of the first RSS node in response to a load pressure of a first RSS node among the at least one RSS node during a process in which the execution unit stores the first shuffle data in accordance with the first load balancing strategy at the at least one remote shuffle service RSS node, so that the execution unit stores the second shuffle data in accordance with the second load balancing strategy; Among them, the first shuffle data is the shuffle data generated when the execution unit executes the target application at the current time, the second shuffle data is the shuffle data generated when the execution unit executes the target application after the current time, and the second load balancing strategy is obtained by updating the first load balancing strategy based on the second RSS node.

26. The device according to claim 25, It is characterized in that The first determining module is used for: When receiving a node expansion request message from the first RSS node, performing an operation of determining the second RSS node from the plurality of RSS nodes, the node expansion request message indicating that a total amount of shuffle data stored on the first RSS node exceeds a reference threshold; The device also includes: The first sending module is used to return a node extension response message to the first RSS node, where the node extension response message carries the identifier of the second RSS node.

27. The device according to claim 25, It is characterized in that The first determining module is used to: Obtaining a weight of each RSS node among the plurality of RSS nodes, wherein the weight indicates a magnitude of a load pressure of the corresponding RSS node; The second RSS node is determined from among the plurality of RSS nodes based on a weight of each of the plurality of RSS nodes.

28. The device according to claim 27, It is characterized in that The device also includes: A receiving module, configured to receive load status data from each of the plurality of RSS nodes, wherein the load status data indicates a load status of the corresponding RSS node; The second determination module is used to determine the weight of each RSS node in the multiple RSS nodes based on the load status data of each RSS node in the multiple RSS nodes.

29. The device according to any one of claims 25 to 28, It is characterized in that The first shuffle data is shuffle data generated when the execution unit executes the first mapping task in the target phase of the target application, and the target phase is any phase of multiple phases corresponding to the target application; The second shuffle data is generated when the execution unit executes the second mapping task in the target phase of the target application. Shuffle data, the second mapping task is a mapping task executed after the first mapping task.

30. The device of claim 29, It is characterized in that The device also includes: The third determination module is used to determine a load balancing policy set, wherein the load balancing policy set includes multiple load balancing policies corresponding to multiple stages of the target application, and the first load balancing policy is the load balancing policy in the load balancing policy set corresponding to the target stage.

31. The device of claim 30, It is characterized in that The third determination module is used for: When receiving an application registration request from a driver unit, executing an operation of determining the load balancing policy set, the application registration request carrying an identifier of the target application; The device also includes: The second sending module is used to return the load balancing strategy set to the driving unit.

32. The device of claim 30, It is characterized in that The third determination module is used for: determining an estimated amount of shuffled data for each of the plurality of stages; Determining the load balancing strategy set based on the estimated shuffle data volume of each of the multiple stages and the weight of each RSS node of the multiple RSS nodes; Among them, there is a positive correlation between the expected number of shuffles in each stage and the number of RSS node identifiers included in the load balancing strategy corresponding to each stage.

33. The device of claim 32, It is characterized in that The third determination module is used for: querying a shuffle data history record corresponding to the target application; If the shuffle data history record is found, the estimated shuffle data volume of each stage in the multiple stages is determined based on the shuffle data history record.

34. The device of claim 33, It is characterized in that The third determination module is used for: If the shuffle data history record is not found, obtaining a shuffle data sampling result corresponding to the target application; Based on the shuffle data sampling result, an estimated shuffle data amount of each stage in the multiple stages is determined.

35. A device for storing shuffle data, It is characterized in that The device is deployed at a first RSS node, and includes: A receiving module, configured to receive at least part of the first shuffle data stored by the execution unit according to the first load balancing strategy, wherein the first shuffle data is shuffle data generated when the execution unit executes the target application at a current time; an acquisition module, configured to acquire an extended RSS node in response to its own load pressure, so that the execution unit stores second shuffle data according to a second load balancing strategy, wherein the second shuffle data is shuffle data generated when the execution unit executes the target application after the current time; The second load balancing strategy is obtained by updating the first load balancing strategy based on the extended RSS node.

36. The device of claim 35, It is characterized in that The acquisition module is used for: When it is detected that the total amount of shuffle data stored in itself exceeds the reference threshold, a node expansion request message is sent to the management node; A node extension response message is received from the management node, where the node extension response message carries an identifier of the extended RSS node.

37. The device of claim 35, It is characterized in that The receiving module is used for: receiving a write data request message from the execution unit, wherein the write data request message indicates storing part of the first shuffle data to the first RSS node; The device also includes: The first sending module is used to send a write data response message to the execution unit, where the write data response message carries the identifier of the extended RSS node.

38. The device according to any one of claims 35 to 37, It is characterized in that The device also includes: The second sending module is used to periodically report the load status data of the first RSS node to the management node.

39. A device for storing shuffle data, It is characterized in that The device includes a memory and a processor; The memory is used to store a program that supports the device to execute the method described in any one of claims 1 to 5, and to store data involved in implementing the method described in any one of claims 1 to 5; The processor is configured to execute the program stored in the memory.

40. A device for storing shuffle data, It is characterized in that The device includes a memory and a processor; The memory is used to store a program that supports the device to execute the method described in any one of claims 6 to 15, and to store data involved in implementing the method described in any one of claims 6 to 15; The processor is configured to execute the program stored in the memory.

41. A device for storing shuffle data, It is characterized in that The device includes a memory and a processor; The memory is used to store a program that supports the device to execute the method described in any one of claims 16 to 19, and to store data involved in implementing the method described in any one of claims 16 to 19; The processor is configured to execute the program stored in the memory.

42. A computer readable storage medium, It is characterized in that The computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the method described in any one of claims 1 to 5, or the method described in any one of claims 6 to 15, or the method described in any one of claims 16 to 19.

Citation Information

Patent Citations

  • Method and device for storing shuffling data and storage medium

    CN118689375A

  • Load balancing engine, client, distributed computing system and load balancing method

    CN109218355A

  • Load balance management method and related device

    CN110113399A

  • Resource scheduling method and device, electronic equipment and storage medium

    CN114237891A

  • Shuffled data processing method, related device, equipment and storage medium

    CN115793958A