-
Type:
Improvement
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Cluster Scalability
-
Cluster Scalability Priorities
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Currently, server parameters related to the same sharding features are defined in the same IDL file, for example, resharding_server_parameters.idl, analyze_shard_key_server_parameters.idl, multi_update_coordinator_server_parameters.idl, so the ones that are supposed to be mongod-only end up existing on mongos as well and the ones that are supposed to be mongos-only end up existing on mongod as well. This can lead to confusion to users.
Since we are not going to have role-based server parameters any time soon, we should consider splitting each of these idl files into three files, one with mongos-only server parameters, one with mongod-only server parameters and one with mongod-mongos server parameters, and linking those files into the mongos and/or mongod binaries accordingly.