Add support for reading from secondaries

XMLWordPrintableJSON

    • Atlas Streams
    • Sprint 58, Sprint 59
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Support for reading from secondaries
      Created with Jira Integration+ for joe.niemiec (joe.niemiec@mongodb.com)

       

      Today when reading a change stream in $source it will read from the primary, we should add support to read from the secondary to help prevent performance implications.

      ie - 
      $source.config.readPreference

      $source.config.readPreferenceTags

       

      Syntax changes

      $source: {     
        connectionName: “myConnection”,
        db: “db1”,
        coll: “coll1”
        .. other existing fields ...
        config: {
           ...
           readPreference: "primary|primaryPreferred|secondary|secondaryPreferred|nearest"
           //readPreferenceTags is intended to be able to target one specific node in the        
           //cluster to read from. This allows users to set up a temporary analytics node       
           //to serve the queries without affecting normal application workloads       
           readPreferenceTags: { key1: value1,  ... }     
        }, 
      }

       

       

       

       

            Assignee:
            Jason Qiu
            Reporter:
            Jonathan Dahl
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: