未验证 提交 1f443acb 编写于 作者: B BossZou 提交者: GitHub

Mishards 010 upgrade & Add config unit in demo config (#2550)

* Update mishards config
Signed-off-by: NYhz <yinghao.zou@zilliz.com>

* Update mishards config
Signed-off-by: NYhz <yinghao.zou@zilliz.com>

* Upgrade mishards for milvus v0.10.0 (fix #2548)
Signed-off-by: NYhz <yinghao.zou@zilliz.com>

* Launch server fail using demo config (#2549)
Signed-off-by: NYhz <yinghao.zou@zilliz.com>

* [skip ci] Remove surplus config yaml
Signed-off-by: NYhz <yinghao.zou@zilliz.com>
上级 bcd3de2b
...@@ -8,6 +8,7 @@ Please mark all change in change log and use the issue from GitHub ...@@ -8,6 +8,7 @@ Please mark all change in change log and use the issue from GitHub
- \#2367 Fix inconsistent reading and writing when using mishards - \#2367 Fix inconsistent reading and writing when using mishards
- \#2368 Make read node detect delete behavior - \#2368 Make read node detect delete behavior
- \#2394 Drop collection timeout if too many partitions created on collection - \#2394 Drop collection timeout if too many partitions created on collection
- \#2549 Launch server fail using demo config
## Feature ## Feature
- \#2363 Update branch version - \#2363 Update branch version
...@@ -21,6 +22,7 @@ Please mark all change in change log and use the issue from GitHub ...@@ -21,6 +22,7 @@ Please mark all change in change log and use the issue from GitHub
- \#2489 Add exception throw on mysql meta error - \#2489 Add exception throw on mysql meta error
- \#2495 Add creating lock file failure reason. - \#2495 Add creating lock file failure reason.
- \#2516 Improve unit test coverage - \#2516 Improve unit test coverage
- \#2548 Upgrade mishards for milvus v0.10.0
## Task ## Task
......
...@@ -95,7 +95,7 @@ storage: ...@@ -95,7 +95,7 @@ storage:
wal: wal:
enable: true enable: true
recovery_error_ignore: false recovery_error_ignore: false
buffer_size: 256 buffer_size: 256MB
path: /var/lib/milvus/wal path: /var/lib/milvus/wal
#----------------------+------------------------------------------------------------+------------+-----------------+ #----------------------+------------------------------------------------------------+------------+-----------------+
...@@ -115,8 +115,8 @@ wal: ...@@ -115,8 +115,8 @@ wal:
# | double-quote required). | | | # | double-quote required). | | |
#----------------------+------------------------------------------------------------+------------+-----------------+ #----------------------+------------------------------------------------------------+------------+-----------------+
cache: cache:
cache_size: 4 cache_size: 4GB
insert_buffer_size: 1 insert_buffer_size: 1GB
preload_collection: preload_collection:
#----------------------+------------------------------------------------------------+------------+-----------------+ #----------------------+------------------------------------------------------------+------------+-----------------+
...@@ -142,7 +142,7 @@ cache: ...@@ -142,7 +142,7 @@ cache:
#----------------------+------------------------------------------------------------+------------+-----------------+ #----------------------+------------------------------------------------------------+------------+-----------------+
gpu: gpu:
enable: false enable: false
cache_size: 1 cache_size: 1GB
gpu_search_threshold: 1000 gpu_search_threshold: 1000
search_devices: search_devices:
- gpu0 - gpu0
...@@ -168,7 +168,7 @@ logs: ...@@ -168,7 +168,7 @@ logs:
level: debug level: debug
trace.enable: true trace.enable: true
path: /var/lib/milvus/logs path: /var/lib/milvus/logs
max_log_file_size: 1024 max_log_file_size: 1024MB
log_rotate_num: 0 log_rotate_num: 0
#----------------------+------------------------------------------------------------+------------+-----------------+ #----------------------+------------------------------------------------------------+------------+-----------------+
......
...@@ -3,7 +3,7 @@ services: ...@@ -3,7 +3,7 @@ services:
milvus_wr: milvus_wr:
runtime: nvidia runtime: nvidia
restart: always restart: always
image: milvusdb/milvus:0.9.1-gpu-d052920-e04ed5 image: milvusdb/milvus:0.10.0-gpu-d061320-83cc81
ports: ports:
- "0.0.0.0:19540:19530" - "0.0.0.0:19540:19530"
volumes: volumes:
...@@ -13,7 +13,7 @@ services: ...@@ -13,7 +13,7 @@ services:
milvus_ro: milvus_ro:
runtime: nvidia runtime: nvidia
restart: always restart: always
image: milvusdb/milvus:0.9.1-gpu-d052920-e04ed5 image: milvusdb/milvus:0.10.0-gpu-d061320-83cc81
ports: ports:
- "0.0.0.0:19541:19530" - "0.0.0.0:19541:19530"
volumes: volumes:
......
此差异已折叠。
此差异已折叠。
...@@ -18,7 +18,7 @@ services: ...@@ -18,7 +18,7 @@ services:
milvus_wr: milvus_wr:
runtime: nvidia runtime: nvidia
restart: always restart: always
image: milvusdb/milvus:0.9.1-gpu-d052920-e04ed5 image: milvusdb/milvus:0.10.0-gpu-d061320-83cc81
volumes: volumes:
- /tmp/milvus/db:/var/lib/milvus/db - /tmp/milvus/db:/var/lib/milvus/db
- ./wr_server.yml:/var/lib/milvus/conf/server_config.yaml - ./wr_server.yml:/var/lib/milvus/conf/server_config.yaml
...@@ -29,7 +29,7 @@ services: ...@@ -29,7 +29,7 @@ services:
milvus_ro: milvus_ro:
runtime: nvidia runtime: nvidia
restart: always restart: always
image: milvusdb/milvus:0.9.1-gpu-d052920-e04ed5 image: milvusdb/milvus:0.10.0-gpu-d061320-83cc81
volumes: volumes:
- /tmp/milvus/db:/var/lib/milvus/db - /tmp/milvus/db:/var/lib/milvus/db
- ./ro_server.yml:/var/lib/milvus/conf/server_config.yaml - ./ro_server.yml:/var/lib/milvus/conf/server_config.yaml
......
import copy
import time import time
import json import json
import logging import logging
...@@ -5,7 +6,6 @@ import threading ...@@ -5,7 +6,6 @@ import threading
from functools import wraps from functools import wraps
from collections import defaultdict from collections import defaultdict
from milvus import Milvus from milvus import Milvus
# from milvus.client.hooks import BaseSearchHook
from mishards import (settings, exceptions, topology) from mishards import (settings, exceptions, topology)
from utils import singleton from utils import singleton
...@@ -254,7 +254,9 @@ class ConnectionGroup(topology.TopoGroup): ...@@ -254,7 +254,9 @@ class ConnectionGroup(topology.TopoGroup):
uri = kwargs.get('uri', None) uri = kwargs.get('uri', None)
if not uri: if not uri:
raise RuntimeError('\"uri\" is required to create connection pool') raise RuntimeError('\"uri\" is required to create connection pool')
pool = Milvus(name=name, **kwargs) milvus_args = copy.deepcopy(kwargs)
milvus_args["max_retry"] = settings.MAX_RETRY
pool = Milvus(name=name, **milvus_args)
status = self.add(pool) status = self.add(pool)
if status != topology.StatusType.OK: if status != topology.StatusType.OK:
pool = None pool = None
......
...@@ -14,8 +14,8 @@ py==1.8.0 ...@@ -14,8 +14,8 @@ py==1.8.0
pyasn1==0.4.7 pyasn1==0.4.7
pyasn1-modules==0.2.6 pyasn1-modules==0.2.6
pylint==2.5.0 pylint==2.5.0
#pymilvus==0.2.12 pymilvus==0.2.13
pymilvus-test==0.3.25 #pymilvus-test==0.3.25
pyparsing==2.4.0 pyparsing==2.4.0
pytest==4.6.3 pytest==4.6.3
pytest-level==0.1.1 pytest-level==0.1.1
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册