Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
L
lcc-reese84
Project
Project
Details
Activity
Releases
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
wangmingming
lcc-reese84
Commits
f86700fd
Commit
f86700fd
authored
Oct 30, 2023
by
wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
3f4f1269
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
46 deletions
+16
-46
docker-compose.yml
docker-compose.yml
+15
-45
main.py
src/main.py
+1
-1
No files found.
docker-compose.yml
View file @
f86700fd
...
@@ -7,52 +7,22 @@ services:
...
@@ -7,52 +7,22 @@ services:
deploy
:
deploy
:
resources
:
resources
:
limits
:
limits
:
cpus
:
'
2
'
cpus
:
'
1
'
memory
:
2
G
memory
:
1
G
volumes
:
volumes
:
-
/data/log/lcc-5s/:/data/log/lcc-5s/
-
/data/log/lcc-5s/:/data/log/lcc-5s/
environment
:
environment
:
-
work_dir=1
-
work_dir=1
# akm2: # 单个服务标识(名字)
reese842
:
# 单个服务标识(名字)
# container_name: lcc-py-5s-2 # 启动后的容器名称 相当于 --name 指定的名称
container_name
:
lcc-py-reese84-2
# 启动后的容器名称 相当于 --name 指定的名称
# image: py5s:latest # 镜像
image
:
lcctr:latest
# 镜像
# restart: "on-failure"
restart
:
"
on-failure"
# deploy:
deploy
:
# resources:
resources
:
# limits:
limits
:
# cpus: '2'
cpus
:
'
1'
# memory: 2G
memory
:
1G
# volumes:
volumes
:
# - /data/log/lcc-5s/:/data/log/lcc-5s/
-
/data/log/lcc-5s/:/data/log/lcc-5s/
# environment:
environment
:
# - work_dir=2
-
work_dir=1
# akm3: # 单个服务标识(名字)
\ No newline at end of file
# container_name: lcc-py-5s-3 # 启动后的容器名称 相当于 --name 指定的名称
# image: py5s:latest # 镜像
# restart: "on-failure"
# deploy:
# resources:
# limits:
# cpus: '1'
# memory: 1G
# volumes:
# - /data/log/lcc-5s/:/data/log/lcc-5s/
# akm3:
# akm3: # 单个服务标识(名字)
# container_name: lcc-py-5s-3 # 启动后的容器名称 相当于 --name 指定的名称
# image: py5s:latest # 镜像
# restart: "on-failure"
# deploy:
# resources:
# limits:
# cpus: '1'
# memory: 1G
# akm4: # 单个服务标识(名字)
# container_name: lcc-py-5s-4 # 启动后的容器名称 相当于 --name 指定的名称
# image: py5s:latest # 镜像
# restart: "on-failure"
# deploy:
# resources:
# limits:
# cpus: '1'
# memory: 1G
src/main.py
View file @
f86700fd
...
@@ -76,7 +76,7 @@ def exec(thread_id):
...
@@ -76,7 +76,7 @@ def exec(thread_id):
def
run
():
def
run
():
brush_thread
=
4
brush_thread
=
2
print
(
f
'本次并发数 {brush_thread}'
)
print
(
f
'本次并发数 {brush_thread}'
)
...
...
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