Skip to content

Commit

Permalink
Merge pull request #8 from kbase/dev-detect_resources
Browse files Browse the repository at this point in the history
Enable autodetection of node resources
  • Loading branch information
MrCreosote authored Jul 30, 2024
2 parents 3c0adbe + 9b95d8d commit fb26853
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,21 @@ COPY ./conf/yarn/fair-scheduler.xml /opt/hadoop/fair-scheduler.xml

ENV HADOOP_OPTIONAL_TOOLS=hadoop-aws

###
# Enable hardware capability detection (memory, CPU)
###

ENV YARN-SITE.XML_yarn.nodemanager.resource.detect-hardware-capabilities=true
ENV YARN-SITE.XML_yarn.nodemanager.resource.count-logical-processors-as-cores=true

# Not sure if yarn.nodemanager.resource.pcores-vcores-multiplier needs to be set, seems like
# the yarn code should be able to figure it out

# Currently resource limits are used only to determine whether to add a job to a node based on the
# requested resources. Once the job is running it might take up more resources than requested.
# If we find this to be a problem we can look into YARN's ability to kill jobs overusing resources:
# https://hadoop.apache.org/docs/current/hadoop-yarn/hadoop-yarn-site/NodeManagerCGroupsMemory.html

###
# Finish the build
###
Expand Down

0 comments on commit fb26853

Please sign in to comment.