Commit d90df26c authored by wang's avatar wang

test

parent 246dee64
version: "3.7" # compose版本号
services:
reese841: # 单个服务标识(名字)
container_name: lcc-py-tr-1 # 启动后的容器名称 相当于 --name 指定的名称
image: lcctr:latest # 镜像
container_name: lcc-py-pr-1 # 启动后的容器名称 相当于 --name 指定的名称
image: lccpr:latest # 镜像
restart: "always"
deploy:
resources:
......@@ -10,22 +10,22 @@ services:
cpus: '2'
memory: 1G
volumes:
- /data/log/lcc-5s/:/data/log/lcc-5s/
- /data/log/lcc-pr/:/data/log/lcc-pr/
environment:
- work_dir=1
reese842: # 单个服务标识(名字)
container_name: lcc-py-tr-2 # 启动后的容器名称 相当于 --name 指定的名称
image: lcctr:latest # 镜像
restart: "always"
deploy:
resources:
limits:
cpus: '2'
memory: 1G
volumes:
- /data/log/lcc-5s/:/data/log/lcc-5s/
environment:
- work_dir=2
# reese842: # 单个服务标识(名字)
# container_name: lcc-py-tr-2 # 启动后的容器名称 相当于 --name 指定的名称
# image: lcctr:latest # 镜像
# restart: "always"
# deploy:
# resources:
# limits:
# cpus: '2'
# memory: 1G
# volumes:
# - /data/log/lcc-pr/:/data/log/lcc-pr/
# environment:
# - work_dir=2
# reese843: # 单个服务标识(名字)
# container_name: lcc-py-reese84-3 # 启动后的容器名称 相当于 --name 指定的名称
# image: lcctr:latest # 镜像
......@@ -36,7 +36,7 @@ services:
# cpus: '2'
# memory: 1G
# volumes:
# - /data/log/lcc-5s/:/data/log/lcc-5s/
# - /data/log/lcc-pr/:/data/log/lcc-pr/
# environment:
# - work_dir=3
# reese844: # 单个服务标识(名字)
......@@ -49,6 +49,6 @@ services:
# cpus: '2'
# memory: 1G
# volumes:
# - /data/log/lcc-5s/:/data/log/lcc-5s/
# - /data/log/lcc-pr/:/data/log/lcc-pr/
# environment:
# - work_dir=3
\ No newline at end of file
......@@ -62,7 +62,7 @@ def exec(thread_id):
# format='{time:YYYY-MM-DD HH:mm:ss.SSS} |<lvl>{level:8}</>| {name} : {module}:{line:4} | <cyan>{extra[module_name]}</> | - <lvl>{message}</>',
# colorize=True, level="INFO")
log.add(pathlib.Path(work_dir).joinpath(f'5s-{thread_id}.log'),
log.add(pathlib.Path(work_dir).joinpath(f'pr-{thread_id}.log'),
format='{time:YYYY-MM-DD HH:mm:ss.SSS} |<lvl>{level:8}</>| {name} : {module}:{line:4} | <cyan>{extra[module_name]}</> | - <lvl>{message}</>',
colorize=False, level="INFO")
log.warning(f"logpath {Path(work_dir).joinpath(f'pr-{thread_id}.log')}")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment