[ https://issues.apache.org/jira/browse/YARN-6471?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sunil G updated YARN-6471: -------------------------- Attachment: YARN-6471.001.patch Attaching an initial wip patch. This covers new configuration for absolute min/max and storing them at each queue level in a map. {code} @Override public Map<String, ResourceInformation> getMinimumResourceInformation() { return minResourceInformation; } @Override public Map<String, ResourceInformation> getMaximumResourceInformation() { return maxResourceInformation; } {code} So here we will have resource types as *memory*, *vcores* for now. Once resource profile is added, we can have more resources. Hence it may be better to store them in a map at each queue level. *ResourceInformation* is also a new class added in resource profile work which i copied here for now. Once resource profile branch is up, we can get rid of this. *ResourceInformation* helps to keep the resource value in a Long format with a units. Known units are "Mi, Ki etc". cc/[~leftnoteasy] > Support to add min/max resource configuration for a queue > --------------------------------------------------------- > > Key: YARN-6471 > URL: https://issues.apache.org/jira/browse/YARN-6471 > Project: Hadoop YARN > Issue Type: Sub-task > Components: capacity scheduler > Reporter: Sunil G > Assignee: Sunil G > Attachments: YARN-6471.001.patch > > > This jira will track the new configurations which are needed to configure min > resource and max resource of various resource types in a queue. > For eg: > {noformat} > yarn.scheduler.capacity.root.default.memory.min-resource > yarn.scheduler.capacity.root.default.memory.max-resource > yarn.scheduler.capacity.root.default.vcores.min-resource > yarn.scheduler.capacity.root.default.vcores.max-resource > {noformat} > Uploading a patch soon -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org