[skip ci]Implement get milvus simd type (#8547)

Signed-off-by: yanliang567 <yanliang.qiao@zilliz.com>
This commit is contained in:
yanliang567 2021-09-26 12:54:14 +08:00 committed by GitHub
parent 4c9929d0c3
commit 14e6b39d54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,13 +35,11 @@ class MilvusSys:
@property
def simd_type(self):
raise NotImplementedError()
# TODO: get simd_type when milvus metrics implemented
# """get the first query node's simd type"""
# for node in self.nodes:
# if 'QueryNode' == node.get('infos').get('type'):
# return node.get('infos').get('simd_type')
# raise Exception("No query node found")
"""get the first query node's simd type"""
for node in self.nodes:
if 'QueryNode' == node.get('infos').get('type'):
return node.get('infos').get('system_configurations').get('simd_type')
raise Exception("No query node found")
@property
def query_nodes(self):