thinket
thinket

Reputation: 97

Set Artifactory to only have cache filesystem

Goal: My goal is to have Artifactory as a cache mirror of another Java Artifact repository with a maximum cache size (e.g. 10Gb)

What is implemented: Artifactory has an option to enable cache-fs as a filestore option. I've enabled it through the binarystore.xml configuration with the cache size of 10Gb.

Expectation: I expected that there's only one filesystem that is cache based. Once the amount of artifacts hit 10Gb, it will start removing the least recently used artifacts.

Actual Behaviour: The cache filesystem ($ARTIFACTORY_HOME/data/cache) is created side by side with the default filesystem ($ARTIFACTORY_HOME/data/filestore). The default system will store all the artifacts where the cache is used for quick lookup.

Question

Is it possible to only set Artifactory to only have the cache filesystem without the default filesystem?

Upvotes: 0

Views: 966

Answers (1)

Dror Bereznitsky
Dror Bereznitsky

Reputation: 20376

The cache-fs is meant to be used as a caching layer on top of other storage layers. The main motivation is improving performance when working with a slow NFS or a remote object storage.
cache-fs cannot be used on its own and requires a file-system, S3 or similar binary provider.
If you would like to limit the storage being used by the Artifactory file system you can set a storage quota. Once Artifactory will reach the quota you will not be able to deploy any new artifacts.
If you plan to use Artifactory only for mirroring another repository, you can configure Artifactory to cleanup unused cached artifacts in order to limit storage usage.

Upvotes: 3

Related Questions