Skip to content

Commit

Permalink
Mishards 091 (milvus-io#2462)
Browse files Browse the repository at this point in the history
* Upgrade mishards for milvus 0.9.1 (milvus-io#2461)

Signed-off-by: Yhz <[email protected]>

* [skip ci]add allowed server version 0.9.0

Signed-off-by: Yhz <[email protected]>
  • Loading branch information
BossZou authored May 29, 2020
1 parent e04ed52 commit 21b61c7
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 18 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Please mark all change in change log and use the issue from GitHub
- \#2353 Remove log_config from code and scripts
- \#2370 Clean compile warning
- \#2410 Logging build index progress
- \#2461 Upgrade mishards for milvus 0.9.1

## Task

Expand Down
2 changes: 1 addition & 1 deletion shards/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Follow below steps to start a standalone Milvus instance with Mishards from sour
3. Start Milvus server.

```shell
$ sudo nvidia-docker run --rm -d -p 19530:19530 -v /tmp/milvus/db:/var/lib/milvus/db milvusdb/milvus:0.9.0-gpu-d051520-cb92b1
$ sudo nvidia-docker run --rm -d -p 19530:19530 -v /tmp/milvus/db:/var/lib/milvus/db milvusdb/milvus:0.9.1-gpu-d052920-e04ed5
```

4. Update path permissions.
Expand Down
2 changes: 1 addition & 1 deletion shards/README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Python 版本为3.6及以上。
3. 启动 Milvus 服务。

```shell
$ sudo nvidia-docker run --rm -d -p 19530:19530 -v /tmp/milvus/db:/var/lib/milvus/db milvusdb/milvus:0.9.0-gpu-d051520-cb92b1
$ sudo nvidia-docker run --rm -d -p 19530:19530 -v /tmp/milvus/db:/var/lib/milvus/db milvusdb/milvus:0.9.1-gpu-d052920-e04ed5
```

4. 更改目录权限。
Expand Down
4 changes: 2 additions & 2 deletions shards/all_in_one/all_in_one.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ services:
milvus_wr:
runtime: nvidia
restart: always
image: milvusdb/milvus:0.9.0-gpu-d051520-cb92b1
image: milvusdb/milvus:0.9.1-gpu-d052920-e04ed5
ports:
- "0.0.0.0:19540:19530"
volumes:
Expand All @@ -13,7 +13,7 @@ services:
milvus_ro:
runtime: nvidia
restart: always
image: milvusdb/milvus:0.9.0-gpu-d051520-cb92b1
image: milvusdb/milvus:0.9.1-gpu-d052920-e04ed5
ports:
- "0.0.0.0:19541:19530"
volumes:
Expand Down
4 changes: 2 additions & 2 deletions shards/all_in_one/ro_server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ db_config:
# secondary_path | A semicolon-separated list of secondary directories used | Path | |
# | to save vector data and index data. | | |
#----------------------+------------------------------------------------------------+------------+-----------------+
# file_cleanup_timeout | time gap between soft-delete and hard-delete | Integer | 10 (s) |
# | range [0, 3600] | | |
# file_cleanup_timeout | The time gap between marking a file as 'deleted' and | Integer | 10 (s) |
# | physically deleting this file from disk, range [0, 3600] | | |
#----------------------+------------------------------------------------------------+------------+-----------------+
storage_config:
primary_path: /var/lib/milvus
Expand Down
4 changes: 2 additions & 2 deletions shards/all_in_one/wr_server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ db_config:
# secondary_path | A semicolon-separated list of secondary directories used | Path | |
# | to save vector data and index data. | | |
#----------------------+------------------------------------------------------------+------------+-----------------+
# file_cleanup_timeout | time gap between soft-delete and hard-delete | Integer | 10 (s) |
# | range [0, 3600] | | |
# file_cleanup_timeout | The time gap between marking a file as 'deleted' and | Integer | 10 (s) |
# | physically deleting this file from disk, range [0, 3600] | | |
#----------------------+------------------------------------------------------------+------------+-----------------+
storage_config:
primary_path: /var/lib/milvus
Expand Down
4 changes: 2 additions & 2 deletions shards/all_in_one_with_mysql/all_in_one.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ services:
milvus_wr:
runtime: nvidia
restart: always
image: milvusdb/milvus:0.9.0-gpu-d051520-cb92b1
image: milvusdb/milvus:0.9.1-gpu-d052920-e04ed5
volumes:
- /tmp/milvus/db:/var/lib/milvus/db
- ./wr_server.yml:/var/lib/milvus/conf/server_config.yaml
Expand All @@ -29,7 +29,7 @@ services:
milvus_ro:
runtime: nvidia
restart: always
image: milvusdb/milvus:0.9.0-gpu-d051520-cb92b1
image: milvusdb/milvus:0.9.1-gpu-d052920-e04ed5
volumes:
- /tmp/milvus/db:/var/lib/milvus/db
- ./ro_server.yml:/var/lib/milvus/conf/server_config.yaml
Expand Down
5 changes: 2 additions & 3 deletions shards/all_in_one_with_mysql/ro_server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ db_config:
# secondary_path | A semicolon-separated list of secondary directories used | Path | |
# | to save vector data and index data. | | |
#----------------------+------------------------------------------------------------+------------+-----------------+
# file_cleanup_timeout | time gap between soft-delete and hard-delete | Integer | 10 (s) |
# | range [0, 3600] | | |
# file_cleanup_timeout | The time gap between marking a file as 'deleted' and | Integer | 10 (s) |
# | physically deleting this file from disk, range [0, 3600] | | |
#----------------------+------------------------------------------------------------+------------+-----------------+
storage_config:
primary_path: /var/lib/milvus
Expand Down Expand Up @@ -224,4 +224,3 @@ logs:
max_log_file_size: 1024
log_rotate_num: 0


5 changes: 3 additions & 2 deletions shards/all_in_one_with_mysql/wr_server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ db_config:
# secondary_path | A semicolon-separated list of secondary directories used | Path | |
# | to save vector data and index data. | | |
#----------------------+------------------------------------------------------------+------------+-----------------+
# file_cleanup_timeout | time gap between soft-delete and hard-delete | Integer | 10 (s) |
# | range [0, 3600] | | |
# file_cleanup_timeout | The time gap between marking a file as 'deleted' and | Integer | 10 (s) |
# | physically deleting this file from disk, range [0, 3600] | | |
#----------------------+------------------------------------------------------------+------------+-----------------+
storage_config:
primary_path: /var/lib/milvus
Expand Down Expand Up @@ -223,3 +223,4 @@ logs:
path: /var/lib/milvus/logs
max_log_file_size: 1024
log_rotate_num: 0

2 changes: 1 addition & 1 deletion shards/mishards/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
env.read_env()


SERVER_VERSIONS = ['0.9.0']
SERVER_VERSIONS = ['0.9.0', '0.9.1']
DEBUG = env.bool('DEBUG', False)
MAX_RETRY = env.int('MAX_RETRY', 3)

Expand Down
4 changes: 2 additions & 2 deletions shards/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ py==1.8.0
pyasn1==0.4.7
pyasn1-modules==0.2.6
pylint==2.5.0
#pymilvus==0.2.11
pymilvus-test==0.3.17
pymilvus==0.2.12
#pymilvus-test==0.3.17
pyparsing==2.4.0
pytest==4.6.3
pytest-level==0.1.1
Expand Down

0 comments on commit 21b61c7

Please sign in to comment.