gpt4 book ai didi

artifactory - 从 Jfrog Artifactory 中删除 Artifactory 不会释放磁盘空间

转载 作者:行者123 更新时间:2023-12-05 00:56:16 52 4
gpt4 key购买 nike

我有 Artifactory Jfrog 6.16.0 Pro。我安装了插件 artifactCleanup 并针对存储库运行它。它删除了大约 500GB。下一步,我从垃圾箱中删除文件,现在它为零。最后一个我手动运行“垃圾收集”。

空间没有被释放。在存储部分,它向我显示了以下信息:

Binaries Size: 1.67 TB
Artifacts Size: 663.15 GB
Optimization: 257.79%

删除 Artifactory 后如何真正释放空间?

最佳答案

首先让我们确定 Artifactory GC 的工作原理。来自 docs :

When a new file is deployed, Artifactory checks if a binary with thesame checksum already exists and if so, links the repository path tothis binary. Upon deletion of a repository path, Artifactory does notdelete the binary since it may be used by other paths. However, onceall paths pointing to a binary are deleted, the file is actually nolonger being used. To make sure your system does not become cloggedwith unused binaries, Artifactory periodically runs a "GarbageCollection" to identify unused ("deleted") binaries and dispose ofthem from the datastore. By default, this is set to run every 4 hoursand is controlled by a cron expression.

这意味着如果我将相同的 5GB 文件存储 100 次,那么我们的 Artifactory 大小为 500GB,而我们的二进制文件大小仍为 5GB。这是因为 Artifactory 通过基于校验和的存储进行重复数据删除。

二进制文件大小不应超过 Artifactory 大小,恰恰相反,优化不应 100% 通过。但是,这基本上是通过运行“df”命令计算得出的,因此如果 GC 尚未运行,它将显示那些二进制文件仍然存在。

这会将我们带到您的问题,这可能不是问题,但之前链接的文档中也提到了预期行为:

Unreferenced binaries, (including existing unreferenced binaries orartifacts that were manually deleted from the trashcan), will bedeleted during the previous Full GC strategy that runs every 20 GCiterations (configurable,'artifactory.gc.skipFullGcBetweenMinorIterations=20').

这告诉我们,二进制文件的实际删除只会每 20 次迭代发生一次。请尝试手动触发 GC 20 次;完整 GC 的输出将与常规输出不同,为您提供删除内容的摘要。

如果这不起作用,请检查 Artifactory 用户的权限以确保它可以删除文件。

关于artifactory - 从 Jfrog Artifactory 中删除 Artifactory 不会释放磁盘空间,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62558517/

52 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com