joyent / conch-api

Datacenter build and management service
Mozilla Public License 2.0
22 stars 11 forks source link

validation_state_member schema migration must be rewritten #972

Closed karenetheridge closed 4 years ago

karenetheridge commented 4 years ago

migration 0129 takes way too long to run now on production data. Mitigation steps must be taken to allow the v2->v3 migration to complete in a timely fashion.

I recommend:

The unfortunate side effect here is that validation results will be unavailable for all existing devices until the process is completed. However, new device reports and validations will continue to be processed, and a device's existing status can still be seen because validation results are copied into device.health.