mirror of https://github.com/milvus-io/milvus.git
[skip ci]Implement get milvus simd type (#8547)
Signed-off-by: yanliang567 <yanliang.qiao@zilliz.com>pull/8569/head
parent
4c9929d0c3
commit
14e6b39d54
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue