Migrating an HA Artifactory cluster
How to migrate from "s3" to "cluster-s3"?
- AuthorFullName__c
- Ariel Kabov
- articleNumber
- 000004536
- ft:sourceType
- Salesforce
- FirstPublishedDate
- 2019-09-01T06:44:31Z
- lastModifiedDate
- 2024-03-10T07:47:44Z
- VersionNumber
- 5
- Make sure Artifactory Garbage Collection will not run during this procedure.
- While Artifactory is still running, update the $ARTIFACTORY_HOME/etc/binarystore.xml of the primary node with the desired final configuration. Confirm the configuration change has successfully propagated to all other cluster nodes.
- For each node, if configured, remove the “artifactory.ha.data.dir” entry from the $ARTIFACTORY_HOME/etc/ha-node.properties.
- Take off the network and shut down all member nodes.
- Take the primary node off the network to block new uploads.
- Monitor the “_add” directory (at the previously configured $artifactory.ha.data.dir/eventual/_add/).
- Once the “_add” directory is empty, restart the primary node.
- Return the primary node to the network and restore GC configurations.
- Start each node at a time, and add it back to the network.
- Confirm that both $artifactory.ha.data.dir/eventual/_add/ and $artifactory.ha.data.dir/eventual/_delete/ are empty. If one of these isn’t empty, run the below referenced “Convert script” (on any of the nodes).
- The shared mount is probably not needed anymore, you can remove/disable it.