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

Decrease the default value for tenantMigrationGarbageCollectionDelayMS to 15 minutes

    XMLWordPrintableJSON

Details

    • Fully Compatible
    • v5.0
    • Sharding 2021-02-22

    Description

      Below is the cleanup process after Cloud gets a commit decision for a tenant migration:

      1. Update DNS to forward all client requests to the recipient.
      2. Send donorForgetMigration to the donor.
      3. Clean up tenant databases on the donor a short grace period of 15 minutes after step 1. This is safe since all cursors have the default timeout of 10 minutes and noCursorTimeout is blocked on the proxy.

      For step 3 to work (i.e. not fail with TenantMigrationComitted), tenantMigrationGarbageCollectionDelayMS must align with the grade period. So we should decrease its default value from 48 hours to 15 minutes.

      Attachments

        Activity

          People

            jason.zhang@mongodb.com Jason Zhang
            cheahuychou.mao@mongodb.com Cheahuychou Mao
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: