mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-03 20:39:36 +08:00
[skip ci]Add comments in milvus systemInfo class (#8467)
Signed-off-by: yanliang567 <yanliang.qiao@zilliz.com>
This commit is contained in:
parent
4aea1a00cc
commit
029b2b0764
@ -45,6 +45,7 @@ class MilvusSys:
|
||||
|
||||
@property
|
||||
def query_nodes(self):
|
||||
"""get all query nodes in Milvus deployment"""
|
||||
query_nodes = []
|
||||
for node in self.nodes:
|
||||
if 'QueryNode' == node.get('infos').get('type'):
|
||||
@ -53,6 +54,7 @@ class MilvusSys:
|
||||
|
||||
@property
|
||||
def data_nodes(self):
|
||||
"""get all data nodes in Milvus deployment"""
|
||||
data_nodes = []
|
||||
for node in self.nodes:
|
||||
if 'DataNode' == node.get('infos').get('type'):
|
||||
@ -61,6 +63,7 @@ class MilvusSys:
|
||||
|
||||
@property
|
||||
def index_nodes(self):
|
||||
"""get all index nodes in Milvus deployment"""
|
||||
index_nodes = []
|
||||
for node in self.nodes:
|
||||
if 'IndexNode' == node.get('infos').get('type'):
|
||||
|
Loading…
Reference in New Issue
Block a user