Ruby Driver
  1. Ruby Driver
  2. RUBY-326

Allow read preference to include a set of tags.

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major - P3 Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.7.0
    • Component/s: None
    • Labels:
      None
    • # Replies:
      4
    • Last comment by Customer:
      false

      Description

      The proper behavior is still unspecified, so we're waiting on this.

        Issue Links

          Activity

          Hide
          Brennan Cheung
          added a comment -

          Is there a roadmap for when this is planning on being implemented? We are currently using master / slave and can't upgrade to sharding until the following 2 use cases are resolved.

          1) Ability to have one of the nodes in the replica sets be at a different data center (backup). Reads should NOT be routed to this node.

          2) Ability to have one of the nodes in the replica sets be dedicated for long running queries (analytics, reports, etc). Map/Reduce blocks and causes our queries to take really long / time out.

          +1 for this feature

          Show
          Brennan Cheung
          added a comment - Is there a roadmap for when this is planning on being implemented? We are currently using master / slave and can't upgrade to sharding until the following 2 use cases are resolved. 1) Ability to have one of the nodes in the replica sets be at a different data center (backup). Reads should NOT be routed to this node. 2) Ability to have one of the nodes in the replica sets be dedicated for long running queries (analytics, reports, etc). Map/Reduce blocks and causes our queries to take really long / time out. +1 for this feature
          Hide
          Grégoire Seux
          added a comment -

          this depends on the core server related feature (SERVER-3358)

          Show
          Grégoire Seux
          added a comment - this depends on the core server related feature ( SERVER-3358 )
          Hide
          Kyle Banker
          added a comment -

          Brennan,

          Right now, the driver will chose a nearby node (by pingtime). So reads probably won't be sent to the secondary data center. But tags will certainly help guarantee this.

          Once we've decided on the semantic, we'll implement. Will update this ticket when I have more info on a scheduled release date.

          Kyle

          Show
          Kyle Banker
          added a comment - Brennan, Right now, the driver will chose a nearby node (by pingtime). So reads probably won't be sent to the secondary data center. But tags will certainly help guarantee this. Once we've decided on the semantic, we'll implement. Will update this ticket when I have more info on a scheduled release date. Kyle
          Hide
          Gary Murakami
          added a comment -

          Note related to CS-3527 - check how read preference interacts with map reduce. Note that even though write of a map reduced output collection only occurs on the primary, it gets replicated to the secondaries. This should be tested and researched for timing, single-host in-memory results set, etc.

          Show
          Gary Murakami
          added a comment - Note related to CS-3527 - check how read preference interacts with map reduce. Note that even though write of a map reduced output collection only occurs on the primary, it gets replicated to the secondaries. This should be tested and researched for timing, single-host in-memory results set, etc.

            People

            • Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since reply:
                1 year, 44 weeks ago
                Date of 1st Reply: