Migrating tenant schemas

When

  • migrate tenant on requests

  • migrate all tenant eventually

Filter

TenantMigrationFilter

  1. migrate when not already migrated

  2. responed with 503 when timeout

Frontends must handle 503.

Scheduled

TenantMigrationOrchestrator

  1. pull next random tenant

  2. mark tenant as Migrating

  3. migrate the tenant

  4. remove tenant as Migrating, set migrated_to_version

  5. wait, go to 1.

Coordination

TenantMigrations