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

[SPARK-10514] [Mesos] waiting for min no of total cores acquired by Spark by implementing the sufficientResourcesRegistered method #8672

Closed
wants to merge 2 commits into from

Conversation

SleepyThread
Copy link
Contributor

spark.scheduler.minRegisteredResourcesRatio configuration parameter works for YARN mode but not for Mesos Coarse grained mode.

If the parameter specified default value of 0 will be set for spark.scheduler.minRegisteredResourcesRatio in base class and this method will always return true.

There are no existing test for YARN mode too. Hence not added test for the same.

…park by implementing the sufficientResourcesRegistered method
@dragos
Copy link
Contributor

dragos commented Sep 10, 2015

You need to update documentation as well. It's not clear to me how you determine the total number of expected resources. Is that spark.cores.max (in Mesos mode)?

@SleepyThread
Copy link
Contributor Author

@dragos This change is for Coarse grained mode hence "spark.cores.max" is used to determine total no of resource. The documentation is already in place. You can see it in the image.

screen shot 2015-09-10 at 9 37 01 am

@SleepyThread
Copy link
Contributor Author

Sorry, got your point. I will update the Documentation.

@dragos
Copy link
Contributor

dragos commented Sep 10, 2015

Hm, I definitely don't see Mesos in http://spark.apache.org/docs/latest/configuration.html (only Yarn). That's what I meant. Where is the screenshot from?

@SleepyThread
Copy link
Contributor Author

@dragos I have updated the Documentation. Feel free to give any feedback.

@SleepyThread
Copy link
Contributor Author

@tnachen [Friendly Reminder] Can you please take a look to the patch?

@dragos
Copy link
Contributor

dragos commented Sep 10, 2015

Looks good to me

@andrewor14
Copy link
Contributor

ok to test

@andrewor14
Copy link
Contributor

OK, LGTM. Although there was some discussion to remove this back then (I can't find the PR now) it was inconclusive and never merged. This patch just makes it aligned with the docs so that's a strict improvement.

@@ -1109,10 +1109,11 @@ Apart from these, the following properties are also available, and may be useful
</tr>
<tr>
<td><code>spark.scheduler.minRegisteredResourcesRatio</code></td>
<td>0.8 for YARN mode; 0.0 otherwise</td>
<td>0.8 for YARN mode; 0.0 for standalone mode and Mesos Coarse grained mode</td>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

coarse-grained, I'll fix this on merge

@asfgit asfgit closed this in a5ef2d0 Sep 10, 2015
@SparkQA
Copy link

SparkQA commented Sep 10, 2015

Test build #42283 has finished for PR 8672 at commit bc06cbd.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SleepyThread
Copy link
Contributor Author

Thanks @andrewor14. I will close the issue in JIRA.

drcrallen pushed a commit to metamx/spark that referenced this pull request Apr 26, 2016
…park by implementing the sufficientResourcesRegistered method

spark.scheduler.minRegisteredResourcesRatio configuration parameter works for YARN mode but not for Mesos Coarse grained mode.

If the parameter specified default value of 0 will be set for spark.scheduler.minRegisteredResourcesRatio in base class and this method will always return true.

There are no existing test for YARN mode too. Hence not added test for the same.

Author: Akash Mishra <akash.mishra20@gmail.com>

Closes apache#8672 from SleepyThread/master.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants