satnogs-wut/src/wut-worker-mas

28 lines
1.0 KiB
Plaintext
Raw Normal View History

2020-01-20 10:12:12 -07:00
#!/bin/bash
# wut-worker-mas
#
# Starts worker client.
#
# Usage:
# wut-worker-mas
# Example:
# wut-worker-mas
#
# Note:
# Each node needs a unique index number.
#
# NOTE!
# This generates the node number based off the hostname.
2022-08-17 10:19:24 -06:00
# The hosts are rs-ml0 through rs-ml10.
2020-01-20 10:12:12 -07:00
2022-08-17 10:19:24 -06:00
HOSTNUM=`hostname | sed -e 's/rs-ml//g'`
2020-01-20 10:12:12 -07:00
2020-01-20 13:01:58 -07:00
#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"}}'
2022-08-17 10:19:24 -06:00
#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"]}}'
2020-01-20 19:09:22 -07:00
#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"}}'
2020-01-20 10:12:12 -07:00
echo $TF_CONFIG
python3 wut-worker-mas.py