提交 c0b6bdc7 编写于 作者: S suoych

Remove mlflow

上级 6b14d075
......@@ -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] || [ $TRAINER -gt 9]; then
die "Invalid TRAINER Num, should be greater than 0 and less than 10."
fi
if [ $PSERVER -lt 1] || [ $PSERVER -gt 9]; then
die "Invalid PSERVER 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.
先完成此消息的编辑!
想要评论请 注册