Skip to content

Commit

Permalink
added bounderies to yarn mem allocation
Browse files Browse the repository at this point in the history
  • Loading branch information
grierdavid committed Feb 15, 2017
1 parent 0c1a140 commit 043267c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions playbooks/library/site_facts/sitefacts.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,9 +268,9 @@ def hdfs_site_facts():
def yarn_site_facts(container_ram,containers):
yarn_site=dict()

yarn_site['yarn_scheduler_minimum_allocation_mb']=container_ram
yarn_site['yarn_scheduler_maximum_allocation_mb']=(containers*container_ram)
yarn_site['yarn_nodemanager_resource_memory_mb']=(containers*container_ram)
yarn_site['yarn_scheduler_minimum_allocation_mb']=clip(1024, container_ram, 8192)
yarn_site['yarn_scheduler_maximum_allocation_mb']=clip(1024, (containers*container_ram), 8192)
yarn_site['yarn_nodemanager_resource_memory_mb']=clip(1024, (containers*container_ram), 8192)

yarn_site['yarn_timeline-service_store-class'] = "org.apache.hadoop.yarn.server.timeline.RollingLevelDBTimelineStore"
yarn_site['yarn_timeline-service_generic-application-history_save-non-am-container-meta-info'] = "false"
Expand Down

0 comments on commit 043267c

Please sign in to comment.