Comment 2 for bug 1697394

Revision history for this message
zhanggang (gangzh) wrote :

*******************************************************************
class MongoDbClusterView(ClusterView):

    def build_instances(self):
        return self._build_instances(['query_router'], ['member'])

class MongoDbMgmtClusterView(MgmtClusterView):

    def build_instances(self):
        return self._build_instances(['query_router'],
                                     ['config_server',
                                      'member',
                                      'query_router'])
*****************************************************************

As common use, just show the ip of mongos(query_router) and data nodes(member) of cluster is fine.
And if you want more detail, use mgmt, it will show all nodes include config_node, data_node, and mongos.

The architecture of these database is different(cassandra, galera, redis, vertica, mongo...), which means instance nodes to be publish could be different.
So, I think it's not a bug.