mirror of https://github.com/milvus-io/milvus.git
Expose simd type to query node metrics (#8299)
Signed-off-by: dragondriver <jiquan.long@zilliz.com>pull/8311/head
parent
11b7ba2982
commit
b3f6bd2088
|
@ -48,6 +48,8 @@ func getSystemInfoMetrics(ctx context.Context, req *milvuspb.GetMetricsRequest,
|
|||
RetrieveReceiveBufSize: Params.RetrieveReceiveBufSize,
|
||||
RetrievePulsarBufSize: Params.RetrievePulsarBufSize,
|
||||
RetrieveResultReceiveBufSize: Params.RetrieveResultReceiveBufSize,
|
||||
|
||||
SimdType: Params.SimdType,
|
||||
},
|
||||
}
|
||||
resp, err := metricsinfo.MarshalComponentInfos(nodeInfos)
|
||||
|
|
|
@ -79,6 +79,8 @@ type QueryNodeConfiguration struct {
|
|||
RetrieveReceiveBufSize int64 `json:"retrieve_receive_buf_size"`
|
||||
RetrievePulsarBufSize int64 `json:"retrieve_pulsar_buf_size"`
|
||||
RetrieveResultReceiveBufSize int64 `json:"retrieve_result_receive_buf_size"`
|
||||
|
||||
SimdType string `json:"simd_type"`
|
||||
}
|
||||
|
||||
// QueryNodeInfos implements ComponentInfos
|
||||
|
|
|
@ -85,6 +85,8 @@ func TestQueryNodeInfos_Codec(t *testing.T) {
|
|||
RetrieveReceiveBufSize: 1024,
|
||||
RetrievePulsarBufSize: 1024,
|
||||
RetrieveResultReceiveBufSize: 1024,
|
||||
|
||||
SimdType: "avx2",
|
||||
},
|
||||
}
|
||||
s, err := MarshalComponentInfos(infos1)
|
||||
|
|
Loading…
Reference in New Issue