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

Decrease the default value for tenantMigrationGarbageCollectionDelayMS to 15 minutes

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

      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.

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

              Created:
              Updated:
              Resolved: