我在Linux服务器上向milvus数据库中插入了2000万个数据。在插入嵌入向量时,出现了以下错误:
RPC error: [batch_insert], <MilvusException: (code=1, message=<_MultiThreadedRendezvous of RPC that terminated with:
status = StatusCode.RESOURCE_EXHAUSTED
details = "grpc: received message larger than max (704699372 vs. 67108864)"
debug_error_string = "UNKNOWN:Error received from peer ipv4:127.0.0.1:19530 {grpc_message:"grpc: received message larger than max (704699372 vs. 67108864)", grpc_status:8, created_time:"2023-04-17T11:41:39.477035873+05:30"}"
>)>, <Time:{'RPC start': '2023-04-17 11:41:10.531339', 'RPC error': '2023-04-17 11:41:39.548799'}>
我尝试更新MAX_MESSAGE_LENGTH,但这不起作用。
>>>MAX_MESSAGE_LENGTH =256*1024*1024
>>>server = grpc.server(futures.ThreadPoolExecutor(max_workers=10), options=[('grpc.max_send_message_length',MAX_MESSAGE_LENGTH), ('grpc.max_receive_message_length',MAX_MESSAGE_LENGTH)])
>>>server.add_insecure_port('[::]:19530')
我是milvus数据库的新手。
1条答案
按热度按时间cgh8pdjw1#
看起来这不是你的服务器的问题,而是Milvus的问题,因为这个测试案例表明插入有64mb的限制。