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

Require Customers to Set an Explicit Write Concern for Secondary Throttle

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Today

      Currently customer can enable a secondary throttle in two different ways. 

      1. The customer can set secondary throttle to true in config.settings 

      use config
      db.settings.updateOne(
         { "_id" : "balancer" },
         { $set : { "_secondaryThrottle" : true } },
         { upsert : true }
      ) 

      2. The customer can set secondary throttle with a explicit write concern in config.settings 

      use config
      db.settings.updateOne(
         { "_id" : "balancer" },
         { $set : { "_secondaryThrottle" : { "w": "majority" }  } },
         { upsert : true }
      ) 

       

      Future

      In future versions of MongoDB a customer should only be able to enable secondary throttle by explicitly setting a write concern such as the example below. 

      use config
      db.settings.updateOne(
         { "_id" : "balancer" },
         { $set : { "_secondaryThrottle" : { "w": "majority" }  } },
         { upsert : true }
      ) 

            Assignee:
            matt.panton@mongodb.com Matt Panton
            Reporter:
            matt.panton@mongodb.com Matt Panton
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: