分布式部署:服务器分布式部署,扩缩容后路由的计算

This commit is contained in:
qiaoxin
2021-07-28 21:13:51 +08:00
parent acdaa9f9ac
commit dc832da60a
13 changed files with 150 additions and 54 deletions

View File

@@ -5,6 +5,7 @@ if [ $# != 1 ] ; then
echo "alpha: 同步代码到 alpha 服务器上,作为测试服供服务开发使用"
echo "dev: 同步代码到 dev 服务器上,作为测试服供服务开发使用"
echo "monitor: 同步代码到 monitor 服务器上,用做监控和压力测试"
echo "distribute: 同步代码到 distribute 服务器上,用做监控和压力测试"
exit 1;
fi
@@ -18,6 +19,8 @@ elif [ ${1} == 'isbn' ] ; then
destUrl="root@zyzisbn:/root/zyz/"
elif [ ${1} == 'monitor' ] ; then
destUrl="root@zyzmon:/root/zyz/"
elif [ ${1} == 'distribute' ] ; then
destUrl="root@zyzdistribute:/root/zyz/"
else
echo "需要一个参数指明服务器"
exit 1;