-
Notifications
You must be signed in to change notification settings - Fork 435
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
[VL] VeloxBackend should know it run in executor or driver #7837
Comments
@zhztheplayer @zhouyuan can you give some thoughts? thanks! |
Driver and executor do have different plugin entrypoints, https://github.com/apache/incubator-gluten/blob/main/backends-velox/src/main/scala/org/apache/gluten/backendsapi/velox/VeloxListenerApi.scala, are you suggesting a new approach? |
But in VeloxBackend.cc, we can not know where it run. The info do not pass from java code to cpp code |
I see. Do you know which part of C++ code requires for this information? |
if it run in driver, it should not init velox cache. https://github.com/apache/incubator-gluten/blob/main/cpp/velox/compute/VeloxBackend.cc#L197 |
I am curious why it matters to initialize the cache in driver or not. Do you already see some issues or errors in your circumstance? BTW I'll prefer changing the JNI API to have different paths for driver / executor native initializations if we have to do it. |
Yes, when initialize the cache, it will create cache dir and check remaining disk capacity while spark driver node may has smaller disk than executor. |
Do we start any Velox pipeline on driver today? Where the cache is initialized? Looks only the BHJ's hash build may be run on driver which we haven't implemented yet. |
this line will check ssd space.
|
Thank you. Then we should initialize velox on driver and worker differently. |
Description
VeloxBackend show know where it run, executor or driver? for example if if run driver ,it should not init velox cache. There are two methods to this enhancement:
The text was updated successfully, but these errors were encountered: