Cluster parameters are persisted by all shards of the cluster and by the config server as well. Specifically, these are stored into the clusterParameters collection of the config database.
The goal of this task is to implement a consistency check to verify that the cluster parameter configuration is consistent across all nodes where it is persisted. The check procedure must be synchronized with the setClusterParameter command by locking the _kShardMembershipLock mutex in exclusive mode.
Currently the goal is to check the consistency of the persisted configuration on disk. Subsequently it will be evaluated whether and how to extend the check to the one in memory as well.