-
Type: Improvement
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Replication, Sharding
-
Labels:None
It would be useful to tag each instance of mongod.
This could be use by mongos or drivers to prefer some nodes in a replica set over others.
For example a tag could be dc1 and dc2 if the slaves of a replica set are distributed in two datacenters.
This is feature is a generalized version of SLAVE_OK with two tags SLAVE and MASTER