This is an automated email from the ASF dual-hosted git repository.

chesnay pushed a commit to branch dev-master
in repository https://gitbox.apache.org/repos/asf/flink-docker.git


The following commit(s) were added to refs/heads/dev-master by this push:
     new d2c7055  [FLINK-21036] Set default number of task slots to 1
d2c7055 is described below

commit d2c7055ac62db7ee4731406c3d8d449d25917983
Author: Chesnay Schepler <[email protected]>
AuthorDate: Sun Jan 24 22:18:51 2021 +0100

    [FLINK-21036] Set default number of task slots to 1
---
 docker-entrypoint.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh
index c82b7f0..075f2da 100755
--- a/docker-entrypoint.sh
+++ b/docker-entrypoint.sh
@@ -135,7 +135,7 @@ elif [ "$1" = "taskmanager" ]; then
 
     echo "Starting Task Manager"
 
-    
TASK_MANAGER_NUMBER_OF_TASK_SLOTS=${TASK_MANAGER_NUMBER_OF_TASK_SLOTS:-$(grep 
-c ^processor /proc/cpuinfo)}
+    TASK_MANAGER_NUMBER_OF_TASK_SLOTS=${TASK_MANAGER_NUMBER_OF_TASK_SLOTS:-1}
 
     set_common_options
     set_config_option taskmanager.numberOfTaskSlots 
${TASK_MANAGER_NUMBER_OF_TASK_SLOTS}

Reply via email to