[SERVER-62264] Create cluster server parameter polling job on mongos Created: 24/Dec/21  Updated: 29/Oct/23  Resolved: 28/May/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.1.0-rc0

Type: Task Priority: Major - P3
Reporter: Varun Ravichandran Assignee: Varun Ravichandran
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Sprint: Security 2022-05-02, Security 2022-05-16, Security 2022-05-30
Participants:

 Description   

Cluster server parameters also need to be synchronized from the CSRS to mongoses on sharded clusters. Unlike replica sets, there is no way to monitor a source of truth on disk and make in-memory changes appropriately. Therefore, mongoses will have to run a periodic job in the background that polls for updated parameters. The frequency of these checks will be bounded via a new setParameter, clusterParameterStalenessIntervalSecs. The periodic job will also be triggered every time a new clusterParameterTime is gossiped in.

  1. Define a new node-specific server parameter, clusterParameterStalenessIntervalSecs, that is used to bound the maximum amount of time between consecutive runs.
  2. Create a polling job that runs on a background thread and runs a find command filtering on documents with clusterParameterTime greater than the largest clusterParameterTime the mongos has cached locally.
  3. Update the in-memory ServerParameters affected by the reply.
  4. Write a unit test to ensure that the polling job works as expected.


 Comments   
Comment by Githook User [ 28/May/22 ]

Author:

{'name': 'Varun Ravichandran', 'email': 'varun.ravichandran@mongodb.com', 'username': 'varunravi98'}

Message: SERVER-62264: Periodically refresh cluster server parameters on mongos
Branch: master
https://github.com/mongodb/mongo/commit/c9e3facf5dd94fd39066f54d44ee846f750c988b

Comment by Githook User [ 28/May/22 ]

Author:

{'name': 'Varun Ravichandran', 'email': 'varun.ravichandran@mongodb.com', 'username': 'varunravi98'}

Message: SERVER-62264: Periodically refresh cluster server parameters on mongos
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/8a7648e48035393e9418551c5f70647896cf0b19

Generated at Thu Feb 08 05:54:38 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.