Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Serving
提交
49c982aa
S
Serving
项目概览
PaddlePaddle
/
Serving
大约 1 年 前同步成功
通知
186
Star
833
Fork
253
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
105
列表
看板
标记
里程碑
合并请求
10
Wiki
2
Wiki
分析
仓库
DevOps
项目成员
Pages
S
Serving
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
105
Issue
105
列表
看板
标记
里程碑
合并请求
10
合并请求
10
Pages
分析
分析
仓库分析
DevOps
Wiki
2
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
49c982aa
编写于
7月 19, 2020
作者:
B
barrierye
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix ci script
上级
cbb5fbaa
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
17 addition
and
15 deletion
+17
-15
tools/serving_build.sh
tools/serving_build.sh
+17
-15
未找到文件。
tools/serving_build.sh
浏览文件 @
49c982aa
...
...
@@ -137,9 +137,9 @@ function kill_server_process() {
sleep
1
}
function
kill_process_by_p
id
()
{
function
kill_process_by_p
ort
()
{
if
[
$#
!=
1
]
;
then
echo
"usage: kill_process_by_p
id
<PID>"
echo
"usage: kill_process_by_p
ort
<PID>"
exit
1
fi
local
PID
=
$1
...
...
@@ -530,7 +530,7 @@ function python_test_grpc_impl() {
check_cmd
"python test_batch_client.py > /dev/null"
check_cmd
"python test_timeout_client.py > /dev/null"
kill_server_process
kill_process_by_p
id
9393
kill_process_by_p
ort
9393
check_cmd
"python test_server.py uci_housing_model > /dev/null &"
sleep
5
# wait for the server to start
...
...
@@ -541,7 +541,7 @@ function python_test_grpc_impl() {
check_cmd
"python test_batch_client.py > /dev/null"
check_cmd
"python test_timeout_client.py > /dev/null"
kill_server_process
kill_process_by_p
id
9393
kill_process_by_p
ort
9393
cd
..
# pwd: /Serving/python/examples/grpc_impl_example
...
...
@@ -590,7 +590,7 @@ function python_test_grpc_impl() {
check_cmd
"python test_batch_client.py > /dev/null"
check_cmd
"python test_timeout_client.py > /dev/null"
kill_server_process
kill_process_by_p
id
9393
kill_process_by_p
ort
9393
check_cmd
"python test_server_gpu.py uci_housing_model > /dev/null &"
sleep
5
# wait for the server to start
...
...
@@ -601,7 +601,7 @@ function python_test_grpc_impl() {
check_cmd
"python test_batch_client.py > /dev/null"
check_cmd
"python test_timeout_client.py > /dev/null"
kill_server_process
kill_process_by_p
id
9393
kill_process_by_p
ort
9393
#ps -ef | grep "test_server_gpu" | grep -v serving_build | grep -v grep | awk '{print $2}' | xargs kill
cd
..
# pwd: /Serving/python/examples/grpc_impl_example
...
...
@@ -717,6 +717,8 @@ function python_test_pipeline(){
python
-m
paddle_serving_server.serve
--model
imdb_cnn_model
--port
9292
--workdir
test9292 &> cnn.log &
python
-m
paddle_serving_server.serve
--model
imdb_bow_model
--port
9393
--workdir
test9393 &> bow.log &
sleep
5
cat
cnn.log
cat
bow.log
# test: thread servicer & thread op
cat
<<
EOF
> config.yml
...
...
@@ -733,7 +735,7 @@ EOF
sleep
5
check_cmd
"python test_pipeline_client.py"
ps
-ef
|
grep
"pipeline_server"
|
grep
-v
grep
|
awk
'{print $2}'
| xargs
kill
kill_process_by_p
id
18080
kill_process_by_p
ort
18080
# test: thread servicer & process op
cat
<<
EOF
> config.yml
...
...
@@ -750,7 +752,7 @@ EOF
sleep
5
check_cmd
"python test_pipeline_client.py"
ps
-ef
|
grep
"pipeline_server"
|
grep
-v
grep
|
awk
'{print $2}'
| xargs
kill
kill_process_by_p
id
18080
kill_process_by_p
ort
18080
# test: process servicer & thread op
cat
<<
EOF
> config.yml
...
...
@@ -767,7 +769,7 @@ EOF
sleep
5
check_cmd
"python test_pipeline_client.py"
ps
-ef
|
grep
"pipeline_server"
|
grep
-v
grep
|
awk
'{print $2}'
| xargs
kill
kill_process_by_p
id
18080
kill_process_by_p
ort
18080
# test: process servicer & process op
cat
<<
EOF
> config.yml
...
...
@@ -784,11 +786,11 @@ EOF
sleep
5
check_cmd
"python test_pipeline_client.py"
ps
-ef
|
grep
"pipeline_server"
|
grep
-v
grep
|
awk
'{print $2}'
| xargs
kill
kill_process_by_p
id
18080
kill_process_by_p
ort
18080
kill_server_process
kill_process_by_p
id
9292
kill_process_by_p
id
9393
kill_process_by_p
ort
9292
kill_process_by_p
ort
9393
# start paddle serving service (grpc)
python
-m
paddle_serving_server.serve
--model
imdb_cnn_model
--port
9292
--use_multilang
--workdir
test9292 &> cnn.log &
...
...
@@ -798,10 +800,10 @@ EOF
sleep
5
check_cmd
"python test_pipeline_client.py"
ps
-ef
|
grep
"pipeline_server"
|
grep
-v
grep
|
awk
'{print $2}'
| xargs
kill
kill_process_by_p
id
18080
kill_process_by_p
ort
18080
kill_server_process
kill_process_by_p
id
9292
kill_process_by_p
id
9393
kill_process_by_p
ort
9292
kill_process_by_p
ort
9393
;;
GPU
)
echo
"pipeline ignore GPU test"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录