Change repository directory in Artifactory

I just installed Artifactory and I need to configure and run the Ivy public repository.

In order to recover from failures, I need Artifactory to store data in the RAID-1 file system installed in /srv (where MySQL data files are also stored). I would not want to use blob storage, so how can I tell Artifactory to store all its data in a directory other than the standard?

System Information: I am running SLES 11 and I have installed Artifactory from RPM.

+5
source share
2 answers

If you have artifactory 4.6 or higher, you can create the $ARTIFACTORY_HOME//binarystore.xml configuration file. e.g. /var/opt/jfrog/artifactory/etc/binarystore.xml

The following configuration places artifacts in the /data directory

 <config version="v1"> <chain template="file-system"> <!-- Use the "file-system" template --> </chain> <provider id="file-system" type="file-system"> <!-- Modify the "file-system" binary provider --> <fileStoreDir>/data/binaries</fileStoreDir> <!-- Override the <fileStoreDir> attribute --> </provider> </config> 
+6
source

Checksum-based storage is one of Artifactory's biggest benefits. It gives much better performance, deduplication and allows you to optimize loading, optimize replication, free copy and move artifacts. Blob storage is by far the right way to store blobs (binary files).

The location of the artifact repository can be changed to suit your needs by matching the repository as $ARTIFACTORY_HOME/data .

For disaster recovery, we recommend setting active / passive synchronization or an active / active cluster . In addition, Artifactory backup resets files in a standard directory structure format and the backup location can be configured.

+5
source

Source: https://habr.com/ru/post/1208435/


All Articles