Expose simd type to query node metrics (#8299)

Signed-off-by: dragondriver <jiquan.long@zilliz.com>
pull/8311/head
dragondriver 2021-09-23 11:27:54 +08:00 committed by GitHub
parent 11b7ba2982
commit b3f6bd2088
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 0 deletions

View File

@ -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)

View File

@ -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

View File

@ -85,6 +85,8 @@ func TestQueryNodeInfos_Codec(t *testing.T) {
RetrieveReceiveBufSize: 1024,
RetrievePulsarBufSize: 1024,
RetrieveResultReceiveBufSize: 1024,
SimdType: "avx2",
},
}
s, err := MarshalComponentInfos(infos1)