Dynamic, date based, tag (zone) ranges

XMLWordPrintableJSON

    • Cluster Scalability
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Method to create dynamic, date based, tag ranges for shard tags. E.g. Within the past 7 days => "recent", greater than 7 days => "archive".

      Currently, this can be done with a cron job to continually adjust tag ranges, however, this is only becoming more popular and the cron job option adds another level of complexity to deployments.

      e.g. all recent photo albums are on "recent" tagged shards (where the ratio of data size to RAM is much lower or the drive is SSD)

      sh.addTagRange("photos.albums", 
      { "date_uploaded" : { $currentDate : true }  }, 
      { "date_uploaded" : { $currentDate : -7 }  }, 
      "recent")
      

              Assignee:
              [DO NOT USE] Backlog - Cluster Scalability
              Reporter:
              Jason Zucchetto (Inactive)
              Votes:
              9 Vote for this issue
              Watchers:
              16 Start watching this issue

                Created:
                Updated: