Skip to content

Commit d86864d

Browse files
Add UseContainerSupport flag for MMS to see all available CPUs from within the container
1 parent 6610a41 commit d86864d

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

artifacts/config.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
vmargs=-Xmx128m -XX:-UseLargePages -XX:+UseG1GC -XX:MaxMetaspaceSize=32M -XX:MaxDirectMemorySize=10m -XX:+ExitOnOutOfMemoryError
1+
vmargs=-Xmx128m -XX:-UseLargePages -XX:+UseG1GC -XX:MaxMetaspaceSize=32M -XX:MaxDirectMemorySize=10m -XX:+ExitOnOutOfMemoryError -XX:-UseContainerSupport
22
model_store=/opt/ml/model
33
load_models=ALL
44
inference_address=http://0.0.0.0:8080

docker/1.2.0/py2/config.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
vmargs=-Xmx128m -XX:-UseLargePages -XX:+UseG1GC -XX:MaxMetaspaceSize=32M -XX:MaxDirectMemorySize=10m -XX:+ExitOnOutOfMemoryError
1+
vmargs=-Xmx128m -XX:-UseLargePages -XX:+UseG1GC -XX:MaxMetaspaceSize=32M -XX:MaxDirectMemorySize=10m -XX:+ExitOnOutOfMemoryError -XX:-UseContainerSupport
22
model_store=/opt/ml/model
33
load_models=ALL
44
inference_address=http://0.0.0.0:8080

docker/1.2.0/py3/config.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
vmargs=-Xmx128m -XX:-UseLargePages -XX:+UseG1GC -XX:MaxMetaspaceSize=32M -XX:MaxDirectMemorySize=10m -XX:+ExitOnOutOfMemoryError
1+
vmargs=-Xmx128m -XX:-UseLargePages -XX:+UseG1GC -XX:MaxMetaspaceSize=32M -XX:MaxDirectMemorySize=10m -XX:+ExitOnOutOfMemoryError -XX:-UseContainerSupport
22
model_store=/opt/ml/model
33
load_models=ALL
44
inference_address=http://0.0.0.0:8080

docker/build_artifacts/config.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
vmargs=-Xmx128m -XX:-UseLargePages -XX:+UseG1GC -XX:MaxMetaspaceSize=32M -XX:MaxDirectMemorySize=10m -XX:+ExitOnOutOfMemoryError
1+
vmargs=-Xmx128m -XX:-UseLargePages -XX:+UseG1GC -XX:MaxMetaspaceSize=32M -XX:MaxDirectMemorySize=10m -XX:+ExitOnOutOfMemoryError -XX:-UseContainerSupport
22
model_store=/opt/ml/model
33
load_models=ALL
44
inference_address=http://0.0.0.0:8080
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Based on https://github.com/pytorch/serve/blob/master/docs/configuration.md
2+
vmargs=-XX:-UseContainerSupport
23
enable_envvars_config=true
34
decode_input_request=false
45
load_models=ALL

0 commit comments

Comments
 (0)