Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
ydl_ai_recommender
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
闫发泽
ydl_ai_recommender
Commits
2d2941aa
Commit
2d2941aa
authored
Dec 21, 2022
by
柴鹏飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口启动采用A/B版本
parent
0157477e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
2 deletions
+26
-2
start_a.sh
bin/start_a.sh
+2
-1
start_b.sh
bin/start_b.sh
+13
-0
stop_a.sh
bin/stop_a.sh
+1
-1
stop_b.sh
bin/stop_b.sh
+10
-0
No files found.
bin/start.sh
→
bin/start
_a
.sh
View file @
2d2941aa
...
...
@@ -8,5 +8,5 @@ for port in `echo '7001,7002' | tr ',' ' '`
do
echo
$port
nohup python ../src/service/recommend_service.py
--port
=
$port
>
../log/console_service_
$port
.log 2>&1 &
echo
$!
>>
.start_service
.pid
echo
$!
>>
start_service_version_a
.pid
done
\ No newline at end of file
bin/start_b.sh
0 → 100755
View file @
2d2941aa
#!/bin/bash
set
-u
set
-x
for
port
in
`
echo
'7501,7502'
| tr
','
' '
`
do
echo
$port
nohup python ../src/service/recommend_service.py
--port
=
$port
>
../log/console_service_
$port
.log 2>&1 &
echo
$!
>>
start_service_version_b.pid
done
\ No newline at end of file
bin/stop.sh
→
bin/stop
_a
.sh
View file @
2d2941aa
#!/bin/bash
pid_file
=
.start_service
.pid
pid_file
=
start_service_version_a
.pid
# 结束接口服务
cat
$pid_file
| xargs
kill
...
...
bin/stop_b.sh
0 → 100755
View file @
2d2941aa
#!/bin/bash
pid_file
=
start_service_version_b.pid
# 结束接口服务
cat
$pid_file
| xargs
kill
# 删除 pid 文件
rm
$pid_file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment