Nexus OOS - 清理代理/属性/
我得到了一个具有以下设置的 Nexus OOS 实例:
- http://repo1.maven.org/maven2/ 的代理
- 我用网络设备的路径覆盖“本地存储位置”
一切正常,我的 Nexus 实例工作正常......但我注意到 inode 的数量增加了很多。 经过一番检查,我可以看出每个 inode 都来自 proxy/attributes/ 目录。 根据文档:
存储有关远程存储库中包含的文件的数据。每个 代理存储库在 proxy/attributes/ 目录中有一个子目录 以及 Nexus 在远程存储库中与之交互的每个文件 有一个 XML 文件,它捕获以下数据: 最后请求的 时间戳、特定文件的远程 URL、文件的长度 文件,以及特定文件的摘要等。如果你 需要备份代理存储库的本地缓存内容,您 还应该备份代理存储库目录的内容 在代理/属性/下。
好的,我明白为什么这个位置有很多小文件,但我有一个虚拟问题:为了避免达到我的索引节点限制,我可以定期清理代理/属性/的内容吗?破坏任何东西,如果需要的话,这些文件是否会“按需”重新创建?
我什么也没找到...
任何线索将不胜感激!
I got a Nexus OOS instance with the following settings:
- proxy of the http://repo1.maven.org/maven2/
- I override the "local storage location" with a path to a network device
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以在此处找到有关工作文件夹内容的详细信息:https:// docs.sonatype.com/display/SPRTNXOSS/Nexus+Workspace+Directories+Analysis
您特别感兴趣的部分是:
希望对您有所帮助,如果您需要更多实时帮助,请随时跳转到用户列表或 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:
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