Open binhvcom opened 2 years ago
from milvus import Milvus, IndexType, MetricType, Status milvus = Milvus(host='milvusv2.local', port='19530') param = {'collection_name':'test01', 'dimension':256, 'index_file_size':1024, 'metric_type':MetricType.L2} milvus.create_collection(param) milvus.create_partition('test01', 'tag01') import random vectors = [[random.random() for _ in range(256)] for _ in range(20)] vector_ids = [id for id in range(20)] milvus.insert(collection_name='test01', records=vectors, ids=vector_ids) milvus.insert('test01', vectors, partition_tag="tag01") ivf_param = {'nlist': 16384} milvus.create_index('test01', IndexType.IVF_FLAT, ivf_param)
services: milvus: image: 'milvusdb/milvus:1.0.0-cpu-d030521-1ea92e' hostname: milvus.local networks: binhbtn: ipv4_address: 172.23.0.3 volumes:
networks: binhbtn: driver: bridge ipam: config:
M2M: milvus_version: 1.0.0 source_milvus_path: '/var/lib/milvus' mysql_parameter: source_collection: test01: dest_host: 'milvus.local' dest_port: 19530 mode: 'overwrite'
H2M: milvus_version: 1.x data_path: data_dir: '/var/lib/milvus/backup' dest_host: '172.23.0.3' dest_port: 19530 mode: 'overwrite' dest_collection_name: 'test01' dest_partition_name: 'tag01' collection_parameter: dimension: index_file_size: metric_type:
M2H: milvus_version: 1.0.0 source_milvus_path: '/var/lib/milvus' mysql_parameter: source_collection: test01: data_dir: '/var/lib/milvus/backup'
1. Error:
2. How to reproduce:
services: milvus: image: 'milvusdb/milvus:1.0.0-cpu-d030521-1ea92e' hostname: milvus.local networks: binhbtn: ipv4_address: 172.23.0.3 volumes:
networks: binhbtn: driver: bridge ipam: config:
3. Config