Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-83421

Support cluster getClusterParameter command in embedded router

    • Service Arch
    • Fully Compatible
    • Service Arch 2024-01-08, Service Arch 2024-01-22, Service Arch 2024-02-05, Service Arch 2024-02-19

      Support cluster getClusterParameter command in embedded router. We can't use the mongos implementation directly because it refreshes cluster parameter values and FCV from the config server, and the uses that data to change the value of parameters in-memory. Mongod, however, changes the in-memory values based on an OpObserver for when it replicates the writes that represent the cluster-parameter changes.

      The current proposed solution is to use the in-memory parameter-changing logic from the shard-role, but have the command return the values it fetches from the config servers. This means that the in-memory values of cluster parameters in the embeded router may no longer strictly lag the configsvr/cluster-wide committed values; instead, they may advance earlier, when the in-process shard-role replicates an in-progress cluster parameter change. However, this will still provide an eventually-consistent semantic, and offers the code on the router the same semantics w/r/t the in-memory values that the shard-role has.

            Assignee:
            george.wangensteen@mongodb.com George Wangensteen
            Reporter:
            george.wangensteen@mongodb.com George Wangensteen
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: