什么是Cache-fs?(视频)

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

什么是Cache-fs,如何将其配置为JFrog Artifactory存储配置的一部分?

视频转录

大家好,我叫Shai。我来自JFrog支持团队,今天在这个视频中,我将向您展示什么是Cache-fs以及如何配置它。

什么是Cache-fs?

cache -fs是本地二进制缓存。它应该为Artifactory提供请求,而不是去到一个远程位置。什么是偏远地区?例如,远程位置可以是S3桶。它可以是另一个Artifactory节点。基本上,您将获得性能提升,因为它是从本地存储设置的,而不是到远程位置。

让我们看看如何配置它。现在我在我的Artifactory本地机器上。这是7。xversion 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.

假设我想配置cache -fs并增加它的缓存大小。我将进入Cache-fs提供程序,然后简单地增加它。让我们编辑它,增加5g,把它改成10g,就是这样。我们需要做的下一件事就是简单地重新启动Artifactory,仅此而已。我们有一个10g的缓存。

在结束这个视频之前,我想再补充一点。我们总是努力使cache -f达到最大值,这意味着它总是会被填满。这是一种意图行为,因为我们希望缓存总是满的并被插入。

基本上就是这样。如果你有任何问题,欢迎提出来。就这样,伙计们。希望你们喜欢我的视频。如果你有任何问题,请在下方评论。