Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CELEBORN] Add compression for row-based shuffle #6380

Merged
merged 3 commits into from
Jul 11, 2024

Conversation

kerwin-zk
Copy link
Contributor

What changes were proposed in this pull request?

When using CelebornShuffleManager, columnar shuffle data is typically compressed on the Gluten side and sent directly to Celeborn, so compression is not needed on the Celeborn side. Therefore, spark.celeborn.client.shuffle.compression.codec is set to none. However, when row-based shuffle occurs, this configuration causes Celeborn to skip compression, leading to data bloat.

How was this patch tested?

CI

Copy link

github-actions bot commented Jul 9, 2024

Thanks for opening a pull request!

Could you open an issue for this pull request on Github Issues?

https://github.com/apache/incubator-gluten/issues

Then could you also rename commit message and pull request title in the following format?

[GLUTEN-${ISSUES_ID}][COMPONENT]feat/fix: ${detailed message}

See also:

@kerwin-zk kerwin-zk requested a review from ulysses-you July 10, 2024 02:01
Comment on lines 145 to 148
if ("none"
.equalsIgnoreCase(
conf.get(SPARK_CELEBORN_COMPRESSION_CODEC_KEY, celebornDefaultCodec))) {
conf.set(SPARK_CELEBORN_COMPRESSION_CODEC_KEY, celebornDefaultCodec);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shall we use a new spark conf copy to hold the configs for row-based celeborn shuffle manager ? I think it's risk to share the configs for both row-based and columnar shuffle manager, for example, the first shuffle is row-based then the conf will overwrite, and later the columnar shuffle manager would use the overwritten conf.

@@ -330,14 +351,18 @@ public <K, C> ShuffleReader<K, C> getReader(
if (handle instanceof CelebornShuffleHandle) {
@SuppressWarnings("unchecked")
CelebornShuffleHandle<K, ?, C> h = (CelebornShuffleHandle<K, ?, C>) handle;
CelebornConf readerConf = celebornConf;
if (_vanillaCelebornShuffleManager != null) {
readerConf = rowBasedCelebornConf;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When the _vanillaCelebornShuffleManager is null if we get row-based, can it happen ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, when gettingReader, vanillaCelebornShuffleManager is usually null. I am looking to see if there is any way to pass this message.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

@ulysses-you ulysses-you left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you @kerwin-zk

@kerwin-zk kerwin-zk merged commit 62036bf into apache:main Jul 11, 2024
39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants