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

Dynamic, date based, tag (zone) ranges

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor - P4
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: Sharding
    • Labels:

      Description

      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")
      

        Attachments

          Activity

            People

            Assignee:
            backlog-server-sharding Backlog - Sharding Team
            Reporter:
            jason.zucchetto Jason Zucchetto
            Participants:
            Votes:
            9 Vote for this issue
            Watchers:
            16 Start watching this issue

              Dates

              Created:
              Updated: