Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: pkg/v2.5.5使用standalone模式部署etcd.use.embed: false配置无效 #40302

Open
1 task done
stefanlee91418 opened this issue Mar 3, 2025 · 3 comments
Open
1 task done
Assignees
Labels
component/etcd help wanted Extra attention is needed kind/bug Issues or changes related a bug

Comments

@stefanlee91418
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Environment

- Milvus version:
- Deployment mode(standalone or cluster): standalone
- MQ type(rocksmq, pulsar or kafka):    
- SDK version(e.g. pymilvus v2.0.0rc2): nodejs	2.5.5
- OS(Ubuntu or CentOS): Ubuntu
- CPU/Memory: 2C/2G
- GPU: 
- Others:

Current Behavior

独立部署一个etcd,并且milvus pkg/v2.5.5使用standalone模式部署,使用user.yaml覆盖milvus.yaml部分配置如下:
Image

webui显示etcd状态为不健康:

Image

Expected Behavior

明确配置etcd.use.embed: false,并且配置etcd.endpoints了,不应该尝试连接嵌入的etcd(127.0.0.1:2379)

Steps To Reproduce

Milvus Log

[GIN] 2025/03/03 - 09:46:56 | 200 | 58.688µs | 118.249.21.164 | GET "/api/v1/_cluster/clients"

[GIN] 2025/03/03 - 09:46:56 | 200 | 8.009044ms | 118.249.21.164 | GET "/api/v1/_cluster/info"

[2025/03/03 09:46:56.498 +00:00] [INFO] [etcd/etcd_util.go:152] ["create etcd client(enable auth)"] [useSSL=false] [endpoints="[172.17.0.1:2379]"] [minVersion=1.3]

[2025/03/03 09:46:56.570 +00:00] [INFO] [etcd/etcd_util.go:152] ["create etcd client(enable auth)"] [useSSL=false] [endpoints="[http://127.0.0.1:2379]"] [minVersion=1.3]

[2025/03/03 09:46:56.570 +00:00] [WARN] [grpclog/grpclog.go:46] ["[core][Channel #147 SubChannel #148]grpc: addrConn.createTransport failed to connect to {Addr: "127.0.0.1:2379", ServerName: "127.0.0.1", }. Err: connection error: desc = "transport: Error while dialing: dial tcp 127.0.0.1:2379: connect: connection refused""]

[2025/03/03 09:46:57.198 +00:00] [DEBUG] [metrics/thread.go:53] ["thread watcher observe thread num"] [threadNum=20]

[2025/03/03 09:46:57.571 +00:00] [WARN] [grpclog/grpclog.go:46] ["[core][Channel #147 SubChannel #148]grpc: addrConn.createTransport failed to connect to {Addr: "127.0.0.1:2379", ServerName: "127.0.0.1", }. Err: connection error: desc = "transport: Error while dialing: dial tcp 127.0.0.1:2379: connect: connection refused""]

[2025/03/03 09:46:59.009 +00:00] [WARN] [grpclog/grpclog.go:46] ["[core][Channel #147 SubChannel #148]grpc: addrConn.createTransport failed to connect to {Addr: "127.0.0.1:2379", ServerName: "127.0.0.1", }. Err: connection error: desc = "transport: Error while dialing: dial tcp 127.0.0.1:2379: connect: connection refused""]

Anything else?

No response

@stefanlee91418 stefanlee91418 added kind/bug Issues or changes related a bug needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Mar 3, 2025
Copy link
Contributor

github-actions bot commented Mar 3, 2025

The title and description of this issue contains Chinese. Please use English to describe your issue.

Copy link

dosubot bot commented Mar 3, 2025

@stefanlee91418 你好! 我是Dosu,一个可以帮助你解决bug、回答问题,还能帮你成为贡献者的机器人。我会在等待人类维护者的时间里帮助你。

I found two similar discussions that might be relevant to your issue:

  1. Milvus etcd endpoint failure - This discussion is still open and might provide insights into similar problems with etcd endpoint failures.
  2. When I debug the milvus in standalone mode, it could not connect to etcd. - This discussion is also open and discusses issues related to connecting to etcd in standalone mode [1][2].

To address your specific issue, ensure that the etcd.use.embed parameter is set to false in your configuration. This can be done by setting the environment variable ETCD_USE_EMBED to false or by configuring it directly in the Milvus configuration file. The relevant configuration is:

p.UseEmbedEtcd = ParamItem{
    Key:          "etcd.use.embed",
    DefaultValue: "false",
    Version:      "2.1.0",
    Doc:          "Whether to enable embedded Etcd (an in-process EtcdServer).",
    Export:       true,
}

Make sure that your user.yaml file correctly overrides the milvus.yaml settings, as user.yaml has the highest precedence in configuration overrides [3][4].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@yanliang567
Copy link
Contributor

/assign @Linkwei
Please help to take a look
/unassign

@sre-ci-robot sre-ci-robot assigned Linkwei and unassigned yanliang567 Mar 3, 2025
@yanliang567 yanliang567 added help wanted Extra attention is needed and removed needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/etcd help wanted Extra attention is needed kind/bug Issues or changes related a bug
Projects
None yet
Development

No branches or pull requests

3 participants