简体   繁体   English

二进制文件大小在 jfrog 中显示很高

[英]Binaries size showing high in jfrog

在此处输入图像描述

I have deleted all the artifacts from jfrog cloud and I have deleted all the repositories.我已经从 jfrog 云中删除了所有工件,并且我已经删除了所有存储库。 Stil the Binaries size showing as 1.5GB.仍然二进制文件大小显示为 1.5GB。 How to resolve this issue.如何解决这个问题。 I am not seeing maintenance option in jfrog.我没有在 jfrog 中看到维护选项。 I am a individual user and i am the admin for this account.我是个人用户,我是此帐户的管理员。

Artifacts in Artifactory are not removed immediately. Artifactory 中的工件不会立即被移除。 There is a default trash can that stores your artifacts for 2 weeks by default, before deleting them forever.有一个默认的垃圾桶,默认情况下将您的工件存储 2 周,然后永久删除它们。

The trash can settings can be accessed only by admin, therefore as a non-admin user, you can wait ~2 weeks or ask your Artifactory admin to empty the trash can.垃圾桶设置只能由管理员访问,因此作为非管理员用户,您可以等待大约 2 周或要求您的 Artifactory 管理员清空垃圾桶。

To empty the trash can as admin, go to Administration | Artifactory | General | Settings以管理员身份清空垃圾桶,go Administration | Artifactory | General | Settings Administration | Artifactory | General | Settings Administration | Artifactory | General | Settings and then click on the "Empty Trash Can" Administration | Artifactory | General | Settings ,然后点击“清空垃圾箱”

For more information see:有关更多信息,请参阅:

I know it is late, but let me share this info so it may be helpful to others.我知道已经很晚了,但让我分享一下这个信息,以便对其他人有所帮助。

There are two scenarios有两种情况

  1. You can check whether the Trash is cleaned up or not, if not the usual retention period is 14 days, meaning once you delete any artifact it will come to Trash (if Trash facility is enabled).您可以检查垃圾箱是否被清理,如果没有,通常的保留期是 14 天,这意味着一旦您删除任何工件,它就会进入垃圾箱(如果启用了垃圾箱工具)。 It will be in trash for 14 days after this period automatically Trash will be cleaned up.在此期间后,它将在垃圾箱中自动保留 14 天 垃圾箱将被清理。

  2. When we delete any artifact in UI or by using Jfrog API it will not delete the actual binary of that artifact, instead it will delete the checksum of that binary.当我们在 UI 中删除任何工件或使用 Jfrog API 时,它不会删除该工件的实际二进制文件,而是会删除该二进制文件的校验和。 In above case you can see in the screenshot Binary size is 1.53 GB and the artifact size is 8.06 MB which should not the case.在上述情况下,您可以在屏幕截图中看到二进制大小为 1.53 GB,工件大小为 8.06 MB,这不应该是这种情况。

Artifact size will always be higher than Binary size.工件大小将始终高于二进制大小。

But the reason for the above issue is - artifactoy will store binaries in checksum based storage.但上述问题的原因是 - artifactoy 会将二进制文件存储在基于校验和的存储中。

So when we delete the artifact it will delete the checksum alone, not the actual binary.因此,当我们删除工件时,它将单独删除校验和,而不是实际的二进制文件。

Then this actual binaries will be deleted by GC run by artifactory for every 4 hours by default(this will be triggered by cront exp, we can run this manually by using API as well).然后这个实际的二进制文件将被 artifactory 默认每 4 小时运行一次 GC 删除(这将由 cront exp 触发,我们也可以使用 API 手动运行它)。

While running the GC jfrog will check is there any binaries without any checksum reference, then it will be deleted during GC run.在运行 GC 时 jfrog 将检查是否有没有任何校验和引用的二进制文件,然后在 GC 运行期间将其删除。

Please refer below links for detailed info.请参阅以下链接以获取详细信息。

https://jfrog.com/knowledge-base/why-does-removing-deleting-old-artifacts-is-not-affecting-the-artifactory-disk-space-usage/#:~:text=The%20above%20behavior,any%20other%20repository . https://jfrog.com/knowledge-base/why-does-removing-deleting-old-artifacts-is-not-affecting-the-artifactory-disk-space-usage/#:~:text=The%20above% 20behavior,any%20other%20repository .

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM