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

[BUG] minResources of volcano podGroup didn't take into account dynamicAllocation and memoryOverheadFactor #2244

Open
1 task done
kaka-zb opened this issue Oct 14, 2024 · 3 comments

Comments

@kaka-zb
Copy link
Contributor

kaka-zb commented Oct 14, 2024

Description

We've been using spark operator and volcano for a long time in production env, however, there are some problems with the calculation of resource usage for volcano podGroup when the sparkapp is submitted.

The spark.dynamicAllocation.* & spark.kubernetes.memoryOverheadFactor params of spark are not taken into account when calculating memory of minResources for volcano podGroup. As a result, the calculated minResources maybe smaller than real usage of sparkapp, and the gang scheduling maybe fail.

  • ✋ I have searched the open/closed issues and my issue is not listed.

Reproduction Code [Required]

Expected behavior

Actual behavior

Environment & Versions

  • Spark Operator App version: 2.0.1
  • Helm Chart Version: 2.0.1
  • Kubernetes Version: 1.25.7
  • Apache Spark version: 3.4.3

Additional context

@kaka-zb
Copy link
Contributor Author

kaka-zb commented Oct 14, 2024

BTW, i see that resourceusage directory implemented in yunikorn, and if you have no plan to support this for volcano, I can contribute our code for volcano, which has been verified by thousands times of spark task.

@jacobsalway
Copy link
Member

jacobsalway commented Oct 16, 2024

Hey, I wrote the resourceusage module for the Yunikorn batch scheduler. When I implemented this initially we discussed pulling these functions out into a more generic module for use across other batch schedulers. If you have code that also calculates the resulting pod resource fields I'd be happy to review and hopefully improve the existing solution and update the existing Volcano batch scheduler.

@kaka-zb
Copy link
Contributor Author

kaka-zb commented Oct 16, 2024

@jacobsalway Thanks for reply, i will submit a draft PR and then you can reveiw and then see if that helps.

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

No branches or pull requests

2 participants