提交 c0b6bdc7 编写于 作者: S suoych

Remove mlflow

上级 6b14d075
...@@ -364,14 +364,14 @@ function log() ...@@ -364,14 +364,14 @@ function log()
echo "Cube Transfer Log Has not been generated" echo "Cube Transfer Log Has not been generated"
fi fi
echo "" echo ""
echo "Padddle Serving Log:" #echo "Padddle Serving Log:"
serving_pod=$(kubectl get po | grep paddleserving | awk {'print $1'}) #serving_pod=$(kubectl get po | grep paddleserving | awk {'print $1'})
kubectl logs ${serving_pod} | grep __INFO__ > paddleserving.log #kubectl logs ${serving_pod} | grep __INFO__ > paddleserving.log
if [ -f paddleserving.log ]; then #if [ -f paddleserving.log ]; then
tail -n 20 paddleserving.log # tail -n 20 paddleserving.log
else #else
echo "PaddleServing Log Has not been generated" # echo "PaddleServing Log Has not been generated"
fi #fi
} }
datafile_config() datafile_config()
...@@ -395,9 +395,9 @@ function apply() ...@@ -395,9 +395,9 @@ function apply()
kubectl delete jobs.batch.volcano.sh fleet-ctr-demo kubectl delete jobs.batch.volcano.sh fleet-ctr-demo
fi fi
kubectl apply -f fleet-ctr.yaml kubectl apply -f fleet-ctr.yaml
python3 listen.py & # python3 listen.py &
echo "waiting for mlflow..." # echo "waiting for mlflow..."
python3 service.py # python3 service.py
return return
} }
...@@ -478,26 +478,28 @@ while true; do ...@@ -478,26 +478,28 @@ while true; do
esac esac
done done
if [ $CPU -lt 1 ] || [ $CPU -gt 4 ]; then if [ $CMD = "config_resource" ]; then
die "Invalid CPU Num, should be greater than 0 and less than 5."
fi
if [ $MEM -lt 1 ] || [ $MEM -gt 4 ]; then if [ $CPU -lt 1 ] || [ $CPU -gt 4 ]; then
die "Invalid MEM Num, should be greater than 0 and less than 5." die "Invalid CPU Num, should be greater than 0 and less than 5."
fi fi
if [ $PSERVER -lt 1] || [ $PSERVER -gt 9]; then if [ $MEM -lt 1 ] || [ $MEM -gt 4 ]; then
die "Invalid PSERVER Num, should be greater than 0 and less than 10." die "Invalid MEM Num, should be greater than 0 and less than 5."
fi fi
if [ $TRAINER -lt 1] || [ $TRAINER -gt 9]; then if [ $PSERVER -lt 1] || [ $PSERVER -gt 9]; then
die "Invalid TRAINER Num, should be greater than 0 and less than 10." die "Invalid PSERVER Num, should be greater than 0 and less than 10."
fi fi
if [ $CUBE -lt 0] && [ $CUBE -gt 9 ]; then if [ $TRAINER -lt 1] || [ $TRAINER -gt 9]; then
die "Invalid CUBE Num, should be greater than 0 and less than 10." die "Invalid TRAINER Num, should be greater than 0 and less than 10."
fi 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 case $CMD in
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册