Giter Site home page Giter Site logo

Comments (18)

zuston avatar zuston commented on August 15, 2024

I think it's necessary feature, what do u think? @jerqi

Besides, I have implement one policy of read directly and want to contribute.

from incubator-uniffle.

jerqi avatar jerqi commented on August 15, 2024

I think it's the most important thing that we don't official deployment plan now.

from incubator-uniffle.

zuston avatar zuston commented on August 15, 2024

Yes. we need a detailed deployment instruction for users in doc. But I dont think this feature depends on the former.

from incubator-uniffle.

jerqi avatar jerqi commented on August 15, 2024

Yes. we need a detailed deployment instruction for users in doc. But I dont think this feature depends on the former.

Sorry, i means that we don't official yarn deployment plan now. I think this feature depends yarn.

from incubator-uniffle.

zuston avatar zuston commented on August 15, 2024

Oh, this feature is not bound to Yarn.
We will deploy shuffle-servers on Yarn nodemanager machine using ansible, instead of using YARN Applications to deploy.

from incubator-uniffle.

jerqi avatar jerqi commented on August 15, 2024

Motivation

When uniffle shuffle servers are co-located with Yarn nodemanagers, we could use the short-circuit read to improve performance and reduce the overhead.

How to do

There are two options to solve this

  1. Directly read shuffle-data files by client side.
  2. Use the domain socket.

Option 1 - Directly read

This is the fastest way, but the local-files' read permission should be open for client side. This maybe have security problem.

Option2 - Domain socket

This way could be avoid security problem, but will be slower than above. And its implementation will be complex.

Conclusion

In my opinion, above two ways could be all supported in uniffle, which could be as different policies for users to choose.

Which option do you prefer?

from incubator-uniffle.

zuston avatar zuston commented on August 15, 2024

Which option do you prefer?

I prefer directly read in the initial version. What do u think? Maybe we could reserve the pluggable policy interface to implement for domain socket.

from incubator-uniffle.

jerqi avatar jerqi commented on August 15, 2024

Which option do you prefer?

I prefer directly read in the initial version.

How to know the local directory for Spark client?

from incubator-uniffle.

zuston avatar zuston commented on August 15, 2024

How to know the local directory for Spark client?

The stored local path should be retrieved from shuffle server by client side. So we need to add a new grpc api.

from incubator-uniffle.

jerqi avatar jerqi commented on August 15, 2024

When the taskScheduler allocate task, we don't consider reduce partition distribution, fewer task can use the feature.

from incubator-uniffle.

zuston avatar zuston commented on August 15, 2024

When the taskScheduler allocate task, we don't consider reduce partition distribution, fewer task can use the feature.

If having this feature, maybe we could update the Spark data-locality policy of preferLocation for uniffle. Anyway, this is a improvement. Do u think so?

from incubator-uniffle.

jerqi avatar jerqi commented on August 15, 2024

When the taskScheduler allocate task, we don't consider reduce partition distribution, fewer task can use the feature.

If having this feature, maybe we could update the Spark data-locality policy of preferLocation for uniffle. Anyway, this is a improvement. Do u think so?

Although it's an improvement, if it may bring more complexity and less effectiveness, I prefer not merging it.

from incubator-uniffle.

zuston avatar zuston commented on August 15, 2024

Got your thought.

complexity

This feature only introduces the short-circuit read handler. In my POC, it wont break down the current implementation. Besides, we could introduce the config to control whether to enable this.

effectiveness

The effectiveness depends on the Spark knowledge about the shuffle-data-locality. I think this can be improved by the later patches for Spark, like Alluxio does.

from incubator-uniffle.

zuston avatar zuston commented on August 15, 2024

Do u have some ideas? @jerqi

from incubator-uniffle.

jerqi avatar jerqi commented on August 15, 2024

Do u have some ideas? @jerqi

This feature need to increase a new rpc interface. The interfaces are very important. I need to guarantee the compatibility of interfaces. I think this is the biggest complexity which this feature brings. For effectiveness, we don't have data locality, we can't get too much performance improvement. And we have no plans about data locality, if we want to have this feature, we should achieve the feature of data locality.

from incubator-uniffle.

zuston avatar zuston commented on August 15, 2024

For your thought, do I need to submit a data-locality shuffle patch about Spark firstly? As I know, we need to change the Spark codebase about MapOutputTracker.getPreferredLocationsForShuffle and ShuffleRowRDD.getPreferredLocations . When enable RSS, the perferred locations could be gotten from the dep.shuffleHandle(RssShuffleHandle of Uniffle partitionToServers vars). If I'm wrong, plz point out it. Thanks

I still think this is a necessary feature for co-location deployment. Besides this has been implemented by other RSS project.

from incubator-uniffle.

jerqi avatar jerqi commented on August 15, 2024

For your thought, do I need to submit a data-locality shuffle patch about Spark firstly? As I know, we need to change the Spark codebase about MapOutputTracker.getPreferredLocationsForShuffle and ShuffleRowRDD.getPreferredLocations . When enable RSS, the perferred locations could be gotten from the dep.shuffleHandle(RssShuffleHandle of Uniffle partitionToServers vars). If I'm wrong, plz point out it. Thanks

I still think this is a necessary feature for co-location deployment. Besides this has been implemented by other RSS project.

Not only the spark patch, but also we need to modify the strategy of coordinator. I know the Bytedance RSS implement this feature, if the cluster is big enough, the feature will be useless.

from incubator-uniffle.

zuston avatar zuston commented on August 15, 2024

but also we need to modify the strategy of coordinator

Yes, we’d better to assign shuffle servers with data locality. This is a long way to get the best optimization.

from incubator-uniffle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.