Nexus OOS - 清理代理/属性/

发布于 2024-12-08 17:18:18 字数 694 浏览 0 评论 0原文

我得到了一个具有以下设置的 Nexus OOS 实例:

一切正常,我的 Nexus 实例工作正常......但我注意到 inode 的数量增加了很多。 经过一番检查,我可以看出每个 inode 都来自 proxy/attributes/ 目录。 根据文档:

存储有关远程存储库中包含的文件的数据。每个 代理存储库在 proxy/attributes/ 目录中有一个子目录 以及 Nexus 在远程存储库中与之交互的每个文件 有一个 XML 文件,它捕获以下数据: 最后请求的 时间戳、特定文件的远程 URL、文件的长度 文件,以及特定文件的摘要等。如果你 需要备份代理存储库的本地缓存内容,您 还应该备份代理存储库目录的内容 在代理/属性/下。

好的,我明白为什么这个位置有很多小文件,但我有一个虚拟问题:为了避免达到我的索引节点限制,我可以定期清理代理/属性/的内容吗?破坏任何东西,如果需要的话,这些文件是否会“按需”重新创建?

我什么也没找到...

任何线索将不胜感激!

I got a Nexus OOS instance with the following settings:

Everything is ok and my Nexus instance works fine... but I notice the number of inodes grows a lot.
After a little check, I can tell every inodes come from the proxy/attributes/ directory.
According to the documentation:

Stores data about the files contained in a remote repository. Each
proxy repository has a subdirectory in the proxy/attributes/ directory
and every file that Nexus has interacted with in the remote repository
has an XML file which captures such data as the: last requested
timestamp, the remote URL for a particular file, the length of the
file, and the digests for a particular file among other things. If you
need to backup the local cached contents of a proxy repository, you
should also back up the contents of the proxy repository's directory
under proxy/attributes/.

Ok I understand why there is a lot of little files in this location but I have a dummy question: to avoid to reach my inode limit, could I periodically clean up the content of proxy/attributes/, without breaking anything and does these files will be recreated 'on demand' if needed?

I find nothing about it...

Any clue will be greatly appreciated!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

旧城空念 2024-12-15 17:18:18

您可以在此处找到有关工作文件夹内容的详细信息:https:// docs.sonatype.com/display/SPRTNXOSS/Nexus+Workspace+Directories+Analysis

您特别感兴趣的部分是:

/Proxy:此文件夹包含一个“attributes”子文件夹,其中包含
您拥有的存储库数量与子文件夹数量相同(repoId 是
这些)。这是“物品属性”被大量保存的地方
非常小的文件。这些文件包含有关过期的信息
状态并在代理期间进行咨询。因此,它们具有影响力
如果存储在慢速磁盘上,则会影响代理和组查找速度。这些文件
如果丢失或损坏,将根据需要重新创建,因此
不需要备份。

希望对您有所帮助,如果您需要更多实时帮助,请随时跳转到用户列表或 irc:http ://nexus.sonatype.org/project-information.html

You can find details on the contents of the working folder here: https://docs.sonatype.com/display/SPRTNXOSS/Nexus+Workspace+Directories+Analysis

The part you're specifically interested in is this:

/Proxy: This folder contains an "attributes" subfolder, that holds as
many subfolders as many repos you have (repoId is the name of
these). This is the place where "item attributes" are persisted as lots
of very small files. These files contain information about expiration
status and are consulted during proxying. Therefore, they have impact
on proxy and group lookup speed if stored on a slow disk. These files
are recreated on demand if they are missing or corrupted and thus
don't need to be backed up.

Hope that helps, if you need more realtime assistance, feel free top hop onto the user list or irc: http://nexus.sonatype.org/project-information.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文