Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-4166

Allow multiple pools of secondaries

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 12_01_17
    • Affects Version/s: 5.0.0
    • Component/s: None
    • Labels:
      None

      I'd like to have different server instances connect to isolated pools of secondaries within my recordset. For example, suppose I have Primary "P" and Secondaries "S1" to "S4". I'd like to have:

      Rails server 1 connects to P, S1, S2
      Rails server 2 connects to P, S3, S4

      The reason for this is that Rails server 2 can be something like DelayedJob which has a high load of read queries, but I can tolerate some slowness on the DB side, while server 1 is my mission-critical webserver.

      Please let me know if this is possible on Mongoid 3.x as well.

            Assignee:
            Unassigned Unassigned
            Reporter:
            johnnyshields Johnny Shields
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: