New worker hosts, mas

master
Jeff Moe 2022-08-17 10:19:24 -06:00
parent fb236fcf30
commit ac2ae3f1cf
2 changed files with 6 additions and 5 deletions

View File

@ -13,10 +13,10 @@
#
# NOTE!
# This generates the node number based off the hostname.
# The hosts are ml1 through ml5. The index starts at zero,
# The hosts are rs-ml1 through rs-ml10. The index starts at zero,
# so the index is hostname minus one (without alpha).
HOSTNUM=`hostname | sed -e 's/ml//g'`
HOSTNUM=`hostname | sed -e 's/rs-ml//g'`
let HOSTNUM=$HOSTNUM-1
export TF_CONFIG='{"cluster": {"worker": [ "rs-ml1:23009", "rs-ml2:23009", "rs-ml3:23009", "rs-ml4:23009", "rs-ml5:23009", "rs-ml6:23009", "rs-ml7:23009", "rs-ml8:23009", "rs-ml9:23009", "rs-ml10:23009"]}, "task": {"index": '$HOSTNUM', "type": "worker"}}'

View File

@ -13,12 +13,13 @@
#
# NOTE!
# This generates the node number based off the hostname.
# The hosts are ml0 through ml5.
# The hosts are rs-ml0 through rs-ml10.
HOSTNUM=`hostname | sed -e 's/ml//g'`
HOSTNUM=`hostname | sed -e 's/rs-ml//g'`
#export TF_CONFIG='{"cluster": {"worker": [ "ml0-int:2222", "ml1-int:2222", "ml2-int:2222", "ml3-int:2222", "ml4-int:2222", "ml5-int:2222"]}, "task": {"index": '$HOSTNUM', "type": "worker"}}'
export TF_CONFIG='{"cluster": {"worker": [ "ml1-int:2222", "ml2-int:2222", "ml3-int:2222", "ml4-int:2222", "ml5-int:2222"]}}'
#export TF_CONFIG='{"cluster": {"worker": [ "ml1-int:2222", "ml2-int:2222", "ml3-int:2222", "ml4-int:2222", "ml5-int:2222"]}}'
export TF_CONFIG='{"cluster": {"worker": [ "ml1:23009", "ml2:23009", "ml3:23009", "ml4:23009", "ml5:23009", "ml6:23009", "ml7:23009", "ml8:23009", "ml9:23009", "ml10:23009"]}}'
#export TF_CONFIG='{"cluster": {"chief": [ "ml0-int:2222" ], "worker": [ "ml1-int:2222", "ml2-int:2222", "ml3-int:2222", "ml4-int:2222", "ml5-int:2222"]}, "task": {"index": '$HOSTNUM', "type": "worker"}}'
echo $TF_CONFIG