What is Cache-fs? [Video]

Shai Ben-Zvi
2021-02-02 19:33

What is Cache-fs and how to configure it as part of the storage configuration in JFrog Artifactory?

 

Video Transcription

Hey guys, my name is Shai. I’m from the JFrog support team, and today in this video I will show you what is Cache-fs and how to configure it.

What is Cache-fs?

Cache-fs is a local binary cache. It’s supposed to serve requests for Artifactory instead of going to a remote location. What is a remote location? A remote location can be, for example, your S3 bucket. It can be another Artifactory node. Basically you will get a performance boost, because instead of going to a remote location, it has been set from a local storage.

Let’s see how we can configure it. Right now I’m on my Artifactory local machine. This is a 7.x version of Artifactory and I’m currently under the var/etc/artifactory directory. Here you will be able to see the binary store XML, which is where I configured a file store. On Artifactory 6.x you will be able to find it under the etc folder under the JFrog home directory. Let’s edit it. Here you will be able to observe that I’m using cluster S3, and here you will be able to observe also a chain of provider. Basically when Artifactory is searching for a binary, it will first go to the Cache-fs, which is what we are going to configure, and then if it will not be able to find it there, it will go to the other providers which I will not cover in this video.

Let’s say I want to configure the Cache-fs and increase its cache size. I will go to the Cache-fs provider and I will simply increase it. Let’s edit it and add five gig, change it to 10 gigs, and that’s it. The next thing that we will require to do is to simply restart Artifactory and that’s it. We have a cache with 10 gigs.

Before I will end this video I would like to add one more thing. The Cache-fs we always strive to be at the maximum, which means that it will always fill up. That’s an intention behavior because we will want that the cache will always be full and be insert.

That’s basically it. If you have any questions, you are welcome to ask. That’s it guys. I hope you enjoyed my video. If you have any questions, feel free to comment below.