# 创建hostfile文件
HOSTFILE="hostfile"
> $HOSTFILE

# 添加master节点
echo "job-c40223a0-31c9-4c85-a517-f02142ea7320-master-0" >> $HOSTFILE

# 添加worker节点
for i in $(seq 0 $(($WORLD_SIZE - 2))); do
	    echo "job-c40223a0-31c9-4c85-a517-f02142ea7320-worker-$i" >>$HOSTFILE
    done

    echo "Hostfile has been created with $WORLD_SIZE nodes."

