Commit 1fe31633 authored by wangmingming's avatar wangmingming

请求造纸

parent 1d35b5cc
...@@ -20,12 +20,25 @@ services: ...@@ -20,12 +20,25 @@ services:
deploy: deploy:
resources: resources:
limits: limits:
cpus: '2' cpus: '1'
memory: 2G memory: 1G
volumes: volumes:
- /data/log/lcc-b6/:/data/log/lcc-b6/ - /data/log/lcc-b6/:/data/log/lcc-b6/
environment: environment:
- work_dir=2 - work_dir=2
b63: # 单个服务标识(名字)
container_name: lcc-py-b6-3 # 启动后的容器名称 相当于 --name 指定的名称
image: lccb6:latest # 镜像
restart: "on-failure"
deploy:
resources:
limits:
cpus: '1'
memory: 1G
volumes:
- /data/log/lcc-b6/:/data/log/lcc-b6/
environment:
- work_dir=3
# akm3: # 单个服务标识(名字) # akm3: # 单个服务标识(名字)
# container_name: lcc-py-5s-3 # 启动后的容器名称 相当于 --name 指定的名称 # container_name: lcc-py-5s-3 # 启动后的容器名称 相当于 --name 指定的名称
# image: py5s:latest # 镜像 # image: py5s:latest # 镜像
......
This diff is collapsed.
...@@ -25,12 +25,12 @@ def md5(text): ...@@ -25,12 +25,12 @@ def md5(text):
client = MongoClient('mongodb://lcc-spider:JIUsfhiad&^@18.144.59.80:27017/?authSource=admin&directConnection=true') client = MongoClient('mongodb://lcc-spider:JIUsfhiad&^@18.144.59.80:27017/?authSource=admin&directConnection=true')
db = client.env db = client.env
# 查询所有文档 # 查询所有文档
if platform.uname().system != 'Darwin': # if platform.uname().system != 'Darwin':
# , 'success': {'$gte': 30}
result = db.env_shape.find({'env.funcs' :{'$ne': None}, 'success': {'$gte': 30}}) result = db.env_shape.find({'env.funcs' :{'$ne': None}})
data = {str(x['_id']): x['env'] for x in result} data = {str(x['_id']): x['env'] for x in result}
print(result) print(result)
with open('env.json', 'w', encoding='utf-8') as f: with open('env.json', 'w', encoding='utf-8') as f:
f.write(json.dumps(data)) f.write(json.dumps(data))
with open('env.json', 'r', encoding='utf-8') as f: with open('env.json', 'r', encoding='utf-8') as f:
......
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