File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
src/sagemaker_xgboost_container Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -103,6 +103,11 @@ def _set_mms_configs(is_multi_model, handler):
103103 _set_default_if_not_exist ("SAGEMAKER_MAX_HEAP_SIZE" , str (max_heap_size ) + "m" )
104104 _set_default_if_not_exist ("SAGEMAKER_MAX_DIRECT_MEMORY_SIZE" , os .environ ["SAGEMAKER_MAX_HEAP_SIZE" ])
105105
106+ disable_container_support_flag = ""
107+ if "SAGEMAKER_DISABLE_CONTAINER_SUPPORT" in os .environ \
108+ and os .environ ["SAGEMAKER_DISABLE_CONTAINER_SUPPORT" ] == "true" :
109+ disable_container_support_flag = " -XX:-UseContainerSupport"
110+
106111 MMS_CONFIG_FILE_PATH = get_mms_config_file_path ()
107112
108113 # TODO: Revert config.properties.tmp to config.properties and add back in vmargs
@@ -123,6 +128,7 @@ def _set_mms_configs(is_multi_model, handler):
123128 + os .environ ["SAGEMAKER_MAX_HEAP_SIZE" ]
124129 + " -XX:MaxDirectMemorySize="
125130 + os .environ ["SAGEMAKER_MAX_DIRECT_MEMORY_SIZE" ]
131+ + disable_container_support_flag
126132 + "\n "
127133 )
128134 g .write (f .read ())
You can’t perform that action at this time.
0 commit comments