-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(shuffles): Locality aware pre shuffle merge (#3505)
Only merge maps in pre shuffle merge if they are on the same node. Uses the `ray.experimental.get_object_locations` API to retrieve the node id for an object, and `ray.util.scheduling_strategies.NodeAffinitySchedulingStrategy` to schedule the merge job on a node. The benefit here is that the maps + merges finish slightly quicker. On a 3000 x 3000 300mb partition shuffle: - Locality aware: 12m 32s - Unaware: 13m 9s. On a 1000 x 1000 100mb partition shuffle: - Locality aware: 29s - Unaware: 45s When we increase the partitions by 3x, the performance increase with locality awareness doesn't really change. Looking at the trace for the 3000 x 3000 shuffle. Locality aware: <img width="1257" alt="Screenshot 2024-12-10 at 12 15 14 PM" src="https://github.com/user-attachments/assets/bb50f804-6d29-46ff-a344-a94f8d10835a"> Unaware: <img width="1262" alt="Screenshot 2024-12-10 at 12 12 23 PM" src="https://github.com/user-attachments/assets/9d191ab1-1521-491a-9047-f678adf7d711"> The reduces take up pretty much most of the time anyway, but you can see that the maps + merges take less time in locality aware mode. 2.6 mins vs 3.1 mins. --------- Co-authored-by: EC2 Default User <[email protected]> Co-authored-by: Colin Ho <[email protected]>
- Loading branch information
1 parent
2557dba
commit 6ae4e77
Showing
4 changed files
with
93 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters