Closed yuzs2 closed 7 months ago
Em... You mean you failed to connect to the port 27017?
@haorenfsa Sorry it was a typo. Basically I failed to connect to port 19350. I used the below code to test the connection and it failed to connect.
c, err := client.NewClient(ctx, client.Config{
Address: 0.0.0.0:19530,
})
if err != nil {
// handling error and exit, to make example simple here
log.Fatal("failed to connect to milvus:", err.Error())
}
➭ go run conn.go
2023/11/20 16:36:50 failed to connect to milvus:context deadline exceeded
exit status 1
But yes I was port forwarding 27017 to 19530, because I was trying to follow the doc: https://milvus.io/docs/install_standalone-operator.md#Connect-to-Milvus
I'm also confused because I don't have the proxy pods created and I don't see anything in the backend of 27017.
Could you please let me know what components (pods, service, etc) are supposed to be created for the standalone milvus, and how can I confirm if the milvus is ready for use? I'm new to Milvus, so I appreciate your patience with my basic questions. Thank you.
Your milvus's runing in this pod pod/milvus-sample-milvus-standalone-57d7d74c5c-pjtm6
. And it listens to 19530 in that pod. When you use kubectl port-forward
, it opens a random port (in your case 27017
), which forwards net packets to 19530 port of milvus. so in your code the Address should be 19530.
Thanks for the help @haorenfsa. It resolved.
Hi, I installed milvus-operator in my k8s cluster and created a standalone milvus using it. (see https://github.com/zilliztech/milvus-operator/issues/45)
However, after the installation, there is no proxy pod created, and I'm unable to connect to the milvus following the doc: https://milvus.io/docs/install_standalone-operator.md#Connect-to-Milvus
When using the port-forwarding nothing will be shown in the 0.0.0.0:19530
How can I confirm whether the installation is successful? Could you please help? Thanks!