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

Mongos to provide read from secondary shard nodes

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 4.2.8
    • Component/s: None
    • Labels:
      None

      If mongos could have any parameter like read only from secondary shard nodes.

      We could use secondary preferred or secondary read preferences, but in that case any user might not use this preference and able to directly read from Primary and if one need to restrict that mongos complrity from reading primary, not found any.

      To stop this we have to create a mirror cluster that will sync delta, for that we can use mongo-connector or mongo-shake third party tools.

      But these also come with challenges like: Index sync is not possible. 

      Here is community discussion I had: https://developer.mongodb.com/community/forums/t/mongo-connector/8062

      It would be great feature if mongos could be restricted at that level to read from primary.

       

       

            Assignee:
            salman.baset@mongodb.com Salman Baset
            Reporter:
            aayushi.mangal3@gmail.com Aayushi Mangal
            Votes:
            4 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated: