-
Notifications
You must be signed in to change notification settings - Fork 28.5k
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
[SPARK-23825][K8s] Requesting memory + memory overhead for pod memory #20943
Conversation
… drivers and executors
ok to test |
Kubernetes integration test starting |
Kubernetes integration test status success |
Jenkins, ok to test |
Test build #88738 has finished for PR 20943 at commit
|
@felixcheung can you review this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is a reasonable point.
@foxish @mccheah @erikerlandson what do you think?
@@ -91,7 +91,7 @@ class BasicDriverConfigurationStepSuite extends SparkFunSuite { | |||
val resourceRequirements = preparedDriverSpec.driverContainer.getResources | |||
val requests = resourceRequirements.getRequests.asScala | |||
assert(requests("cpu").getAmount === "2") | |||
assert(requests("memory").getAmount === "256Mi") | |||
assert(requests("memory").getAmount === "456Mi") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm wondering - shouldn't this be 256M + 384M?
The documentation says - executorMemory * 0.10, with minimum of 384
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nvm - @liyinan926 just pointed out that it's being set explicitly above which I totally missed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@@ -91,7 +91,7 @@ class BasicDriverConfigurationStepSuite extends SparkFunSuite { | |||
val resourceRequirements = preparedDriverSpec.driverContainer.getResources | |||
val requests = resourceRequirements.getRequests.asScala | |||
assert(requests("cpu").getAmount === "2") | |||
assert(requests("memory").getAmount === "256Mi") | |||
assert(requests("memory").getAmount === "456Mi") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nvm - @liyinan926 just pointed out that it's being set explicitly above which I totally missed.
## What changes were proposed in this pull request? Kubernetes driver and executor pods should request `memory + memoryOverhead` as their resources instead of just `memory`, see https://issues.apache.org/jira/browse/SPARK-23825 ## How was this patch tested? Existing unit tests were adapted. Author: David Vogelbacher <[email protected]> Closes apache#20943 from dvogelbacher/spark-23825.
## What changes were proposed in this pull request? Kubernetes driver and executor pods should request `memory + memoryOverhead` as their resources instead of just `memory`, see https://issues.apache.org/jira/browse/SPARK-23825 ## How was this patch tested? Existing unit tests were adapted. Author: David Vogelbacher <[email protected]> Closes apache#20943 from dvogelbacher/spark-23825.
What changes were proposed in this pull request?
Kubernetes driver and executor pods should request
memory + memoryOverhead
as their resources instead of justmemory
, see https://issues.apache.org/jira/browse/SPARK-23825How was this patch tested?
Existing unit tests were adapted.