Uh oh!
There was an error while loading. Please reload this page.
[SPARK-22292][Mesos] Added spark.mem.max support for Mesos - #19510
[SPARK-22292][Mesos] Added spark.mem.max support for Mesos#19510windkit wants to merge 4 commits into
Conversation
skonto
commented
Oct 18, 2017
@windkit there is an open issue here: https://issues.apache.org/jira/browse/SPARK-22133 |
There was a problem hiding this comment.
Can we defend against minimum values and fail fast? For example default executor memory is 1.4MB. We could calculate the value returned by MesosSchedulerUtils.executorMemory. I don't think these values calculated in canLaunchTask ever change. Same applies for cpus.
There was a problem hiding this comment.
@skonto
For cpus, I think we can compare with minCoresPerExecutor
For mem, calling the MesosSchedulerUtils.executorMemory to get the minimum requirement.
Then at here, we parse the option, check the minimum and if it is too small, throw exception?
There was a problem hiding this comment.
Exception I think would be ok, the idea if something is never going to work let the user know, especially for the novice user. In general, the minimum would be a warning if we dont want an exception thrown.
There was a problem hiding this comment.
Should I add the check with this PR or a separate one?
There was a problem hiding this comment.
Do we need to have a check similar to
but for memory, so that we know we'll "land" on the maximum?windkit
commented
Oct 20, 2017
@skonto sure I can add those in, can you point to me where the documentation source code is? |
skonto
commented
Oct 20, 2017
@susanxhuynh pls review. |
susanxhuynh
commented
Oct 26, 2017
@windkit Trying to understand the need for this config ... could you accomplish the same thing by setting spark.cores.max, spark.executor.cores, and spark.executor.memory? Could you give an example scenario where this is needed? |
There was a problem hiding this comment.
Maybe add "across the cluster (not from each machine)". And, something about there is no maximum if this property is not set.
There was a problem hiding this comment.
My suggestion: "Duration for which unused resources are considered declined, when maximum number of cores spark.cores.max has been reached."
@ArtRand Is this the documentation you had in mind in https://issues.apache.org/jira/browse/SPARK-22133 ? Is this enough information for a non-Mesos expert to set this?
windkit
commented
Nov 1, 2017
@susanxhuynh Thanks for reviewing. |
skonto
commented
May 19, 2018
@windkit Could you update the PR? @susanxhuynh I think this is fine to merge, are you ok? |
AmplabJenkins
commented
Jun 9, 2018
Can one of the admins verify this patch? |
HyukjinKwon
commented
Jul 16, 2018
gentle ping @windkit |
Closesapache#17422Closesapache#17619Closesapache#18034Closesapache#18229Closesapache#18268Closesapache#17973Closesapache#18125Closesapache#18918Closesapache#19274Closesapache#19456Closesapache#19510Closesapache#19420Closesapache#20090Closesapache#20177Closesapache#20304Closesapache#20319Closesapache#20543Closesapache#20437Closesapache#21261Closesapache#21726Closesapache#14653Closesapache#13143Closesapache#17894Closesapache#19758Closesapache#12951Closesapache#17092Closesapache#21240Closesapache#16910Closesapache#12904Closesapache#21731Closesapache#21095 Added: Closesapache#19233Closesapache#20100Closesapache#21453Closesapache#21455Closesapache#18477 Added: Closesapache#21812Closesapache#21787 Author: hyukjinkwon <gurwls223@apache.org> Closesapache#21781 from HyukjinKwon/closing-prs.
What changes were proposed in this pull request?
To limit the amount of resources a spark job accept from Mesos, currently we can only use
spark.cores.maxto limit in terms of cpu cores.However, when we have big memory executors, it would consume all the resources.
This PR added
spark.mem.maxoption for MesosHow was this patch tested?
Added Unit Test