ARTIFACTORY: Understanding the "Migration process is currently running due to an Upgrade" Message in Artifactory 7.x Upgrade
IntroductionThis article aims to explain the reason behind the message "Migration process is currently running due to an Upgrade" displayed in the Artifactory UI after upgrading from version 6.x to 7.x. The introduction of the metadata service in Artifactory 7.x triggers additional migration processes during the upgrade, which populate data to the metadata service responsible for presenting artifact information in the Packages view and Search bar of the Artifactory UI. It is important to note that this behavior is expected during the upgrade process, and the message will disappear once the background migrations are completed.
Explanation
When upgrading Artifactory from version 6.x to 7.x, the migration task runs in the background, ensuring the availability of the Packages view and Search functionality once the migration is finished.
To monitor the progress of the metadata migration, you can refer to the logs and look for an entry similar to the below mentioned line, which indicates the completion of the metadata migration process:
2022-06-09T10:21:42.806Z [jfrt ] [INFO ] [6f79c7332b765f1c] [onStatusStorageServiceImpl:137] [n-event-dispatcher-0] - Migration for 'metadata-service-migration' has finished.
These log entries can be found in the $JFROG_HOME/artifactory/var/log/artifactory-service.log file or its archived counterparts in the $JFROG_HOME/artifactory/var/log/archived directory.
It is worth mentioning that during the migration process, the Packages view and Search tasks in the Artifactory UI may have limited results until the migration is completed.
Benchmark and Migration Duration
As part of our testing, we conducted a migration process on Artifactory with 27,000 packages and 1.2 million versions. The migration was performed using default configurations, employing 5 migration threads to the metadata service (MDS). The Artifactory instance and PostgreSQL database were hosted on separate machines with the following specifications: GCP VM with 8 CPUs and 30 GB RAM.
Based on the benchmark results, the migration rate achieved ranged from 60,000 to 67,000 versions per hour. With these specifications, the entire migration process took between 18 and 22 hours.
Conclusion
During an upgrade from Artifactory 6.x to 7.x, the "Migration process is currently running due to an Upgrade" message is displayed in the Artifactory UI. This message is a result of background migrations that populate data to the metadata service introduced in Artifactory 7.x.
Once the migrations are completed, the message will disappear, and the Packages view and Search functionality will become fully available. To monitor the migration progress, you can refer to the logs. For more information about upgrading Artifactory, please refer to the provided reference.
Reference:
Upgrading Artifactory