Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
ElasticCTR
提交
c0b6bdc7
E
ElasticCTR
项目概览
PaddlePaddle
/
ElasticCTR
通知
8
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
E
ElasticCTR
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
c0b6bdc7
编写于
2月 18, 2020
作者:
S
suoych
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove mlflow
上级
6b14d075
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
28 addition
and
26 deletion
+28
-26
elastic-ctr-cli/elastic-control.sh
elastic-ctr-cli/elastic-control.sh
+28
-26
未找到文件。
elastic-ctr-cli/elastic-control.sh
浏览文件 @
c0b6bdc7
...
...
@@ -364,14 +364,14 @@ function log()
echo
"Cube Transfer Log Has not been generated"
fi
echo
""
echo
"Padddle Serving Log:"
serving_pod
=
$(
kubectl get po |
grep
paddleserving |
awk
{
'print $1'
}
)
kubectl logs
${
serving_pod
}
|
grep
__INFO__
>
paddleserving.log
if
[
-f
paddleserving.log
]
;
then
tail
-n
20 paddleserving.log
else
echo
"PaddleServing Log Has not been generated"
fi
#
echo "Padddle Serving Log:"
#
serving_pod=$(kubectl get po | grep paddleserving | awk {'print $1'})
#
kubectl logs ${serving_pod} | grep __INFO__ > paddleserving.log
#
if [ -f paddleserving.log ]; then
#
tail -n 20 paddleserving.log
#
else
#
echo "PaddleServing Log Has not been generated"
#
fi
}
datafile_config
()
...
...
@@ -395,9 +395,9 @@ function apply()
kubectl delete jobs.batch.volcano.sh fleet-ctr-demo
fi
kubectl apply
-f
fleet-ctr.yaml
python3 listen.py &
echo
"waiting for mlflow..."
python3 service.py
#
python3 listen.py &
#
echo "waiting for mlflow..."
#
python3 service.py
return
}
...
...
@@ -478,26 +478,28 @@ while true; do
esac
done
if
[
$CPU
-lt
1
]
||
[
$CPU
-gt
4
]
;
then
die
"Invalid CPU Num, should be greater than 0 and less than 5."
fi
if
[
$CMD
=
"config_resource"
]
;
then
if
[
$MEM
-lt
1
]
||
[
$MEM
-gt
4
]
;
then
die
"Invalid MEM
Num, should be greater than 0 and less than 5."
fi
if
[
$CPU
-lt
1
]
||
[
$CPU
-gt
4
]
;
then
die
"Invalid CPU
Num, should be greater than 0 and less than 5."
fi
if
[
$PSERVER
-lt
1]
||
[
$PSERVER
-gt
9
]
;
then
die
"Invalid PSERVER Num, should be greater than 0 and less than 10
."
fi
if
[
$MEM
-lt
1
]
||
[
$MEM
-gt
4
]
;
then
die
"Invalid MEM Num, should be greater than 0 and less than 5
."
fi
if
[
$TRAINER
-lt
1]
||
[
$TRAIN
ER
-gt
9]
;
then
die
"Invalid TRAIN
ER Num, should be greater than 0 and less than 10."
fi
if
[
$PSERVER
-lt
1]
||
[
$PSERV
ER
-gt
9]
;
then
die
"Invalid PSERV
ER Num, should be greater than 0 and less than 10."
fi
if
[
$CUBE
-lt
0]
&&
[
$CUBE
-gt
9
]
;
then
die
"Invalid CUBE
Num, should be greater than 0 and less than 10."
fi
if
[
$TRAINER
-lt
1]
||
[
$TRAINER
-gt
9
]
;
then
die
"Invalid TRAINER
Num, should be greater than 0 and less than 10."
fi
if
[
$CUBE
-lt
0]
&&
[
$CUBE
-gt
9
]
;
then
die
"Invalid CUBE Num, should be greater than 0 and less than 10."
fi
fi
case
$CMD
in
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录