Core Server
  1. Core Server
  2. SERVER-2545

multi data center support via location aware sharding

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major - P3 Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1.2
    • Labels:
    • Backport:
      No
    • # Replies:
      23
    • Last comment by Customer:
      false
    • Documentation changes needed?:
      Yes

      Description

      A core feature of MongoDB is the ability to perform atomic operations – i.e. single document transactions. However, this then implies a need for a primary/secondary architecture for replicas; for a given shard, all writes must be sent to the current primary. In multi data center systems, the primary may not be in the client's data center.

      This jira proposes allowing the user to specify some weight or affinity for (super)chunk ranges to help the balancer decide which shard has which chunks. Different shards would then (when healthy) keep their primary at the appropriate data center.

      This would be important when trying to build regional shards for multi-datacenter clusters where user/regional data should be kept in the regional shard(s). It would also allow the user to indicate that contiguous chunk ranges should be on the same shard(s).

      This would depend on the ability to make the shard/replicas datacenter aware. Without both you can't create shards that can be used in a region to do local writes to that region.

        Issue Links

          Activity

          Hide
          auto
          added a comment -

          Author:

          {u'date': u'2012-06-15T09:38:48-07:00', u'email': u'eliot@10gen.com', u'name': u'Eliot Horowitz'}

          Message: SERVER-2545 - balancer fully tag aware
          Branch: master
          https://github.com/mongodb/mongo/commit/f9ec6b8c2da49235cc61d2211b25e0a7500d0d17

          Show
          auto
          added a comment - Author: {u'date': u'2012-06-15T09:38:48-07:00', u'email': u'eliot@10gen.com', u'name': u'Eliot Horowitz'} Message: SERVER-2545 - balancer fully tag aware Branch: master https://github.com/mongodb/mongo/commit/f9ec6b8c2da49235cc61d2211b25e0a7500d0d17
          Hide
          auto
          added a comment -

          Author:

          {u'date': u'2012-06-15T10:02:32-07:00', u'email': u'eliot@10gen.com', u'name': u'Eliot Horowitz'}

          Message: SERVER-2545 - randomize order that we balance tags
          Branch: master
          https://github.com/mongodb/mongo/commit/14f33c4ec4c5785726195224dfd993140de5c158

          Show
          auto
          added a comment - Author: {u'date': u'2012-06-15T10:02:32-07:00', u'email': u'eliot@10gen.com', u'name': u'Eliot Horowitz'} Message: SERVER-2545 - randomize order that we balance tags Branch: master https://github.com/mongodb/mongo/commit/14f33c4ec4c5785726195224dfd993140de5c158
          Hide
          auto
          added a comment -

          Author:

          {u'date': u'2012-06-15T10:02:50-07:00', u'email': u'eliot@10gen.com', u'name': u'Eliot Horowitz'}

          Message: SERVER-2545 - fix test
          Branch: master
          https://github.com/mongodb/mongo/commit/a289a4809b140c5a24f60b97872d3e68602536a9

          Show
          auto
          added a comment - Author: {u'date': u'2012-06-15T10:02:50-07:00', u'email': u'eliot@10gen.com', u'name': u'Eliot Horowitz'} Message: SERVER-2545 - fix test Branch: master https://github.com/mongodb/mongo/commit/a289a4809b140c5a24f60b97872d3e68602536a9
          Hide
          auto
          added a comment -

          Author:

          {u'date': u'2012-06-15T12:22:54-07:00', u'email': u'eliot@10gen.com', u'name': u'Eliot Horowitz'}

          Message: SERVER-2545 - start of a few shell helpers
          Branch: master
          https://github.com/mongodb/mongo/commit/297b940ee79fbba5fa2dd9c15a3af4eb9e87a6d0

          Show
          auto
          added a comment - Author: {u'date': u'2012-06-15T12:22:54-07:00', u'email': u'eliot@10gen.com', u'name': u'Eliot Horowitz'} Message: SERVER-2545 - start of a few shell helpers Branch: master https://github.com/mongodb/mongo/commit/297b940ee79fbba5fa2dd9c15a3af4eb9e87a6d0
          Hide
          auto
          added a comment -

          Author:

          {u'date': u'2012-06-15T15:12:20-07:00', u'email': u'eliot@10gen.com', u'name': u'Eliot Horowitz'}

          Message: SERVER-2545 - sanity check tag ranges
          Branch: master
          https://github.com/mongodb/mongo/commit/8cb54a63e154cec11f1b07ab124e762c3d0d9dff

          Show
          auto
          added a comment - Author: {u'date': u'2012-06-15T15:12:20-07:00', u'email': u'eliot@10gen.com', u'name': u'Eliot Horowitz'} Message: SERVER-2545 - sanity check tag ranges Branch: master https://github.com/mongodb/mongo/commit/8cb54a63e154cec11f1b07ab124e762c3d0d9dff

            People

            • Votes:
              14 Vote for this issue
              Watchers:
              25 Start watching this issue

              Dates

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