You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Yufei Gu (JIRA)" <ji...@apache.org> on 2017/10/27 23:33:00 UTC
[jira] [Commented] (YARN-7413) Support resource type in SLS
[ https://issues.apache.org/jira/browse/YARN-7413?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16223050#comment-16223050 ]
Yufei Gu commented on YARN-7413:
--------------------------------
Uploaded patch v1. To make it work, you need to add resource type in yarn-site.xml for RM like this:
{code}
<property>
<name>yarn.resource-types</name>
<value>type1,type2</value>
</property>
{code}
For Nodemanager configuration, add following configuration into sls-runner.xml. If you don't do this, all nodes still get resource type1 and type2 with default value 10.
{code}
<property>
<name>yarn.sls.nm.resource-type.type1</name>
<value>10</value>
</property>
<property>
<name>yarn.sls.nm.resource-type.type2</name>
<value>10</value>
</property>
{code}
Work load configuration:
{code}
{ "job.start.ms" : 0, "job.queue.name": "default","am.memory" : 4096, "am.vcores":4, "job.tasks": [ { "duration.ms": 30000, "container.type1": 1, "container.type2": 2}]}
{code}
> Support resource type in SLS
> ----------------------------
>
> Key: YARN-7413
> URL: https://issues.apache.org/jira/browse/YARN-7413
> Project: Hadoop YARN
> Issue Type: Improvement
> Components: scheduler-load-simulator
> Reporter: Yufei Gu
> Assignee: Yufei Gu
> Attachments: YARN-7413.001.patch
>
>
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org