-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Sharding
-
Labels:
-
Fully Compatible
-
v5.0
-
Sharding 2021-02-22
Below is the cleanup process after Cloud gets a commit decision for a tenant migration:
- Update DNS to forward all client requests to the recipient.
- Send donorForgetMigration to the donor.
- 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.