If you have Artifactory HA two(or more) node cluster which has data already in NFS, and you wish to switch to Sharding so that each node has its own local filestore (just like in the file-system binary provider) and is connected to all other cluster nodes via dynamically allocated Remote Binary Providers using the Sharding-Cluster Binary Provider, you will need to perform these three steps:
- In your primary node, change the template of your binarystore.xml from NFS to Sharding, you can use this standard template, which has redundancy set to “2” out of the box.
2. Perform a rolling restart(Restart 1st node, then the second one)
3. The binaries that were stored previously on NFS(now on your filestore of your primary node) will not be propagated automatically to your secondary node filestore. You will need to manually perform an rsync between two /data directories of your two nodes. Any new uploads, after all these all three steps above are complete, will be propagate the files to /data directories of both nodes automatically.