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

[FEATURE] Reduce startup time associated with duplicated dependency downloads #2060

Open
peter-mcclonski opened this issue Jun 14, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@peter-mcclonski
Copy link
Contributor

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

What is the outcome that you are trying to reach?

We seek to reduce the startup time for newly submitted spark applications. Ideally, we would remove the duplication of downloads between the operator and driver.

Describe the solution you would like

TBD

Describe alternatives you have considered

We have internally addressed this by mounting a PVC to the operator's $SPARK_HOME/jars directory and sharing it across all drivers and all executors. We consider this to be a 'hacky' solution.

Additional context

The Spark Operator currently runs spark-submit twice. First, the operator pod runs spark-submit in cluster mode. This results in the first set of dependency downloads, on the operator. Then, the driver runs spark-submit in client mode. This results in the second set of dependency downloads, on the driver pod. If the job runs to completion and is then re-submitted with the same dependencies, the operator will not have to re-download the dependencies (unless Ivy opts to), but the newly created driver will again re-download the dependencies.

@peter-mcclonski peter-mcclonski added the enhancement New feature or request label Jun 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant