{"action":"created","comment":{"url":"https://api.github.com/repos/apache/spark/pulls/comments/69676444","id":69676444,"diff_hunk":"@@ -180,30 +180,47 @@ Note that jars or python files that are passed to spark-submit should be URIs re\n \n # Mesos Run Modes\n \n-Spark can run over Mesos in two modes: \"coarse-grained\" (default) and \"fine-grained\".\n-\n-The \"coarse-grained\" mode will launch only *one* long-running Spark task on each Mesos\n-machine, and dynamically schedule its own \"mini-tasks\" within it. The benefit is much lower startup\n-overhead, but at the cost of reserving the Mesos resources for the complete duration of the\n-application.\n-\n-Coarse-grained is the default mode. You can also set `spark.mesos.coarse` property to true\n-to turn it on explicitly in [SparkConf](configuration.html#spark-properties):\n-\n-{% highlight scala %}\n-conf.set(\"spark.mesos.coarse\", \"true\")\n-{% endhighlight %}\n-\n-In addition, for coarse-grained mode, you can control the maximum number of resources Spark will\n-acquire. By default, it will acquire *all* cores in the cluster (that get offered by Mesos), which\n-only makes sense if you run just one application at a time. You can cap the maximum number of cores\n-using `conf.set(\"spark.cores.max\", \"10\")` (for example).\n-\n-In \"fine-grained\" mode, each Spark task runs as a separate Mesos task. This allows\n-multiple instances of Spark (and other frameworks) to share machines at a very fine granularity,\n-where each application gets more or fewer machines as it ramps up and down, but it comes with an\n-additional overhead in launching each task. This mode may be inappropriate for low-latency\n-requirements like interactive queries or serving web requests.\n+Spark can run over Mesos in two modes: \"coarse-grained\" (default) and\n+\"fine-grained\".\n+\n+In \"coarse-grained\" mode, each Spark executor runs as a single Mesos\n+task.  Spark executors are sized according to the following\n+configuration variables:\n+\n+* Executor memory: `spark.executor.memory`\n+* Executor cores: `spark.executor.cores`\n+* Number of executors: `spark.cores.max`/`spark.executor.cores`\n+\n+Please see the [Spark Configuration](configuration.html) page for\n+details and default values.\n+\n+Executors are brought up eagerly when the application starts, until\n+`spark.cores.max` is reached.  If you don't set `spark.cores.max`, the\n+Spark application will reserve all resources offered to it by Mesos,\n+so we of course urge you to set this variable in any sort of\n+multi-tenant cluster, including one which runs multiple concurrent\n+Spark applications.\n+\n+The scheduler will start executors round-robin on the offers Mesos\n+gives it, but there are no spread guarantees, as Mesos does not\n+provide such guarantees on the offer stream.\n+\n+The benefit of coarse-grained mode is much lower startup overhead, but\n+at the cost of reserving Mesos resources for the complete duration of\n+the application.","path":"docs/running-on-mesos.md","position":55,"original_position":55,"commit_id":"2daaedb7257ab9471139cc43e65aaeeb857e09eb","original_commit_id":"2daaedb7257ab9471139cc43e65aaeeb857e09eb","user":{"login":"rxin","id":323388,"avatar_url":"https://avatars.githubusercontent.com/u/323388?v=3","gravatar_id":"","url":"https://api.github.com/users/rxin","html_url":"https://github.com/rxin","followers_url":"https://api.github.com/users/rxin/followers","following_url":"https://api.github.com/users/rxin/following{/other_user}","gists_url":"https://api.github.com/users/rxin/gists{/gist_id}","starred_url":"https://api.github.com/users/rxin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rxin/subscriptions","organizations_url":"https://api.github.com/users/rxin/orgs","repos_url":"https://api.github.com/users/rxin/repos","events_url":"https://api.github.com/users/rxin/events{/privacy}","received_events_url":"https://api.github.com/users/rxin/received_events","type":"User","site_admin":false},"body":"say a word about dynamic allocation?\\","created_at":"2016-07-06T05:17:32Z","updated_at":"2016-07-06T05:17:32Z","html_url":"https://github.com/apache/spark/pull/14059#discussion_r69676444","pull_request_url":"https://api.github.com/repos/apache/spark/pulls/14059","_links":{"self":{"href":"https://api.github.com/repos/apache/spark/pulls/comments/69676444"},"html":{"href":"https://github.com/apache/spark/pull/14059#discussion_r69676444"},"pull_request":{"href":"https://api.github.com/repos/apache/spark/pulls/14059"}}},"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/14059","id":76354731,"html_url":"https://github.com/apache/spark/pull/14059","diff_url":"https://github.com/apache/spark/pull/14059.diff","patch_url":"https://github.com/apache/spark/pull/14059.patch","issue_url":"https://api.github.com/repos/apache/spark/issues/14059","number":14059,"state":"open","locked":false,"title":"[Mesos] expand coarse-grained mode docs","user":{"login":"mgummelt","id":153734,"avatar_url":"https://avatars.githubusercontent.com/u/153734?v=3","gravatar_id":"","url":"https://api.github.com/users/mgummelt","html_url":"https://github.com/mgummelt","followers_url":"https://api.github.com/users/mgummelt/followers","following_url":"https://api.github.com/users/mgummelt/following{/other_user}","gists_url":"https://api.github.com/users/mgummelt/gists{/gist_id}","starred_url":"https://api.github.com/users/mgummelt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgummelt/subscriptions","organizations_url":"https://api.github.com/users/mgummelt/orgs","repos_url":"https://api.github.com/users/mgummelt/repos","events_url":"https://api.github.com/users/mgummelt/events{/privacy}","received_events_url":"https://api.github.com/users/mgummelt/received_events","type":"User","site_admin":false},"body":"## What changes were proposed in this pull request?\r\n\r\ndocs\r\n\r\n## How was this patch tested?\r\n\r\nviewed the docs in github\r\n\r\n\r\n","created_at":"2016-07-05T22:42:08Z","updated_at":"2016-07-06T05:17:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2f8dc5c844bba82714e77dda03d683714b671834","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/apache/spark/pulls/14059/commits","review_comments_url":"https://api.github.com/repos/apache/spark/pulls/14059/comments","review_comment_url":"https://api.github.com/repos/apache/spark/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/spark/issues/14059/comments","statuses_url":"https://api.github.com/repos/apache/spark/statuses/2daaedb7257ab9471139cc43e65aaeeb857e09eb","head":{"label":"mesosphere:coarse-grained","ref":"coarse-grained","sha":"2daaedb7257ab9471139cc43e65aaeeb857e09eb","user":{"login":"mesosphere","id":3458585,"avatar_url":"https://avatars.githubusercontent.com/u/3458585?v=3","gravatar_id":"","url":"https://api.github.com/users/mesosphere","html_url":"https://github.com/mesosphere","followers_url":"https://api.github.com/users/mesosphere/followers","following_url":"https://api.github.com/users/mesosphere/following{/other_user}","gists_url":"https://api.github.com/users/mesosphere/gists{/gist_id}","starred_url":"https://api.github.com/users/mesosphere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mesosphere/subscriptions","organizations_url":"https://api.github.com/users/mesosphere/orgs","repos_url":"https://api.github.com/users/mesosphere/repos","events_url":"https://api.github.com/users/mesosphere/events{/privacy}","received_events_url":"https://api.github.com/users/mesosphere/received_events","type":"Organization","site_admin":false},"repo":{"id":34087729,"name":"spark","full_name":"mesosphere/spark","owner":{"login":"mesosphere","id":3458585,"avatar_url":"https://avatars.githubusercontent.com/u/3458585?v=3","gravatar_id":"","url":"https://api.github.com/users/mesosphere","html_url":"https://github.com/mesosphere","followers_url":"https://api.github.com/users/mesosphere/followers","following_url":"https://api.github.com/users/mesosphere/following{/other_user}","gists_url":"https://api.github.com/users/mesosphere/gists{/gist_id}","starred_url":"https://api.github.com/users/mesosphere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mesosphere/subscriptions","organizations_url":"https://api.github.com/users/mesosphere/orgs","repos_url":"https://api.github.com/users/mesosphere/repos","events_url":"https://api.github.com/users/mesosphere/events{/privacy}","received_events_url":"https://api.github.com/users/mesosphere/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mesosphere/spark","description":"Mirror of Apache Spark","fork":true,"url":"https://api.github.com/repos/mesosphere/spark","forks_url":"https://api.github.com/repos/mesosphere/spark/forks","keys_url":"https://api.github.com/repos/mesosphere/spark/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mesosphere/spark/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mesosphere/spark/teams","hooks_url":"https://api.github.com/repos/mesosphere/spark/hooks","issue_events_url":"https://api.github.com/repos/mesosphere/spark/issues/events{/number}","events_url":"https://api.github.com/repos/mesosphere/spark/events","assignees_url":"https://api.github.com/repos/mesosphere/spark/assignees{/user}","branches_url":"https://api.github.com/repos/mesosphere/spark/branches{/branch}","tags_url":"https://api.github.com/repos/mesosphere/spark/tags","blobs_url":"https://api.github.com/repos/mesosphere/spark/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mesosphere/spark/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mesosphere/spark/git/refs{/sha}","trees_url":"https://api.github.com/repos/mesosphere/spark/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mesosphere/spark/statuses/{sha}","languages_url":"https://api.github.com/repos/mesosphere/spark/languages","stargazers_url":"https://api.github.com/repos/mesosphere/spark/stargazers","contributors_url":"https://api.github.com/repos/mesosphere/spark/contributors","subscribers_url":"https://api.github.com/repos/mesosphere/spark/subscribers","subscription_url":"https://api.github.com/repos/mesosphere/spark/subscription","commits_url":"https://api.github.com/repos/mesosphere/spark/commits{/sha}","git_commits_url":"https://api.github.com/repos/mesosphere/spark/git/commits{/sha}","comments_url":"https://api.github.com/repos/mesosphere/spark/comments{/number}","issue_comment_url":"https://api.github.com/repos/mesosphere/spark/issues/comments{/number}","contents_url":"https://api.github.com/repos/mesosphere/spark/contents/{+path}","compare_url":"https://api.github.com/repos/mesosphere/spark/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mesosphere/spark/merges","archive_url":"https://api.github.com/repos/mesosphere/spark/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mesosphere/spark/downloads","issues_url":"https://api.github.com/repos/mesosphere/spark/issues{/number}","pulls_url":"https://api.github.com/repos/mesosphere/spark/pulls{/number}","milestones_url":"https://api.github.com/repos/mesosphere/spark/milestones{/number}","notifications_url":"https://api.github.com/repos/mesosphere/spark/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mesosphere/spark/labels{/name}","releases_url":"https://api.github.com/repos/mesosphere/spark/releases{/id}","deployments_url":"https://api.github.com/repos/mesosphere/spark/deployments","created_at":"2015-04-17T00:19:40Z","updated_at":"2016-07-01T17:37:07Z","pushed_at":"2016-07-06T00:11:52Z","git_url":"git://github.com/mesosphere/spark.git","ssh_url":"git@github.com:mesosphere/spark.git","clone_url":"https://github.com/mesosphere/spark.git","svn_url":"https://github.com/mesosphere/spark","homepage":null,"size":180798,"stargazers_count":2,"watchers_count":2,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":2,"default_branch":"master"}},"base":{"label":"apache:master","ref":"master","sha":"5b7a1770ac9cf36a1e92b31d10fe6eeee92fef17","user":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":17165658,"name":"spark","full_name":"apache/spark","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/spark","description":"Mirror of Apache Spark","fork":false,"url":"https://api.github.com/repos/apache/spark","forks_url":"https://api.github.com/repos/apache/spark/forks","keys_url":"https://api.github.com/repos/apache/spark/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/spark/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/spark/teams","hooks_url":"https://api.github.com/repos/apache/spark/hooks","issue_events_url":"https://api.github.com/repos/apache/spark/issues/events{/number}","events_url":"https://api.github.com/repos/apache/spark/events","assignees_url":"https://api.github.com/repos/apache/spark/assignees{/user}","branches_url":"https://api.github.com/repos/apache/spark/branches{/branch}","tags_url":"https://api.github.com/repos/apache/spark/tags","blobs_url":"https://api.github.com/repos/apache/spark/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/spark/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/spark/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/spark/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/spark/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/spark/languages","stargazers_url":"https://api.github.com/repos/apache/spark/stargazers","contributors_url":"https://api.github.com/repos/apache/spark/contributors","subscribers_url":"https://api.github.com/repos/apache/spark/subscribers","subscription_url":"https://api.github.com/repos/apache/spark/subscription","commits_url":"https://api.github.com/repos/apache/spark/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/spark/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/spark/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/spark/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/spark/contents/{+path}","compare_url":"https://api.github.com/repos/apache/spark/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/spark/merges","archive_url":"https://api.github.com/repos/apache/spark/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/spark/downloads","issues_url":"https://api.github.com/repos/apache/spark/issues{/number}","pulls_url":"https://api.github.com/repos/apache/spark/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/spark/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/spark/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/spark/labels{/name}","releases_url":"https://api.github.com/repos/apache/spark/releases{/id}","deployments_url":"https://api.github.com/repos/apache/spark/deployments","created_at":"2014-02-25T08:00:08Z","updated_at":"2016-07-06T03:37:44Z","pushed_at":"2016-07-06T05:13:48Z","git_url":"git://github.com/apache/spark.git","ssh_url":"git@github.com:apache/spark.git","clone_url":"https://github.com/apache/spark.git","svn_url":"https://github.com/apache/spark","homepage":null,"size":507133,"stargazers_count":9197,"watchers_count":9197,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":8519,"mirror_url":"git://git.apache.org/spark.git","open_issues_count":414,"forks":8519,"open_issues":414,"watchers":9197,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/spark/pulls/14059"},"html":{"href":"https://github.com/apache/spark/pull/14059"},"issue":{"href":"https://api.github.com/repos/apache/spark/issues/14059"},"comments":{"href":"https://api.github.com/repos/apache/spark/issues/14059/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/spark/pulls/14059/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/spark/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/spark/pulls/14059/commits"},"statuses":{"href":"https://api.github.com/repos/apache/spark/statuses/2daaedb7257ab9471139cc43e65aaeeb857e09eb"}}}}
{"actor":{"display_login":"rxin"}}