mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
fix: Delay holmes initialization preventing initialization too soon (#43773)
Related to #43760 Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
This commit is contained in:
parent
3b8ab8cb99
commit
3647568cf3
@ -318,9 +318,6 @@ func (mr *MilvusRoles) Run() {
|
||||
thw.Start()
|
||||
defer thw.Stop()
|
||||
|
||||
internalmetrics.InitHolmes()
|
||||
defer internalmetrics.CloseHolmes()
|
||||
|
||||
// only standalone enable localMsg
|
||||
if mr.Local {
|
||||
if err := os.Setenv(metricsinfo.DeployModeEnvKey, metricsinfo.StandaloneDeployMode); err != nil {
|
||||
@ -355,6 +352,9 @@ func (mr *MilvusRoles) Run() {
|
||||
paramtable.SetRole(mr.ServerType)
|
||||
}
|
||||
|
||||
internalmetrics.InitHolmes()
|
||||
defer internalmetrics.CloseHolmes()
|
||||
|
||||
// init tracer before run any component
|
||||
tracer.Init()
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user