简体   繁体   English

Artifactory:使用新的Pypi支持升级到新的神器5.10.3后,本地Pypi repos'缓慢'

[英]Artifactory: Local Pypi repos 'slow' after upgrade to new artifactory 5.10.3 with new Pypi support

we updated our artifactoy to the newest version 5.10.3 to support the pypi update. 我们将artifactoy更新到最新版本5.10.3以支持pypi更新。

after this update we experience some really slow pip install --upgrade times. 在此更新后,我们遇到了一些非常缓慢的pip install --upgrade时间。 pip install is running fine. pip install运行正常。

I was able to pinpoint this slower runs to the local pypi repositiory on the artifactory. 我能够将这种较慢的运行精确定位到神器上的本地pypi存储库中。

The official pypi and the cached remote pypi on the artifactory were fast. 关于神器的官方pypi和缓存的远程pypi很快。

But the virtual pypi (remote und local pypi) and if i only add the local pypi via --extra-index-url were both slow 但虚拟pypi(远程和本地pypi)和如果我只通过--extra-index-url添加本地pypi都很慢

Some versions, maybe we have some issues there: 有些版本,也许我们有一些问题:

  • python 2.7 and 3.5 python 2.7和3.5
  • pip 9.0.1 and 10.01 点9.0.1和10.01
  • artifactory 5.10.3 神器5.10.3

Run with official Pypi only: 仅与官方Pypi一起运行:

pip install -U -r requirements.txt 1.21s user 0.08s system 99% cpu 1.296 total

Run with local pypi as extra-index-url: 使用local pypi作为extra-index-url运行:

pip install -U -r requirements.txt 1.51s user 0.09s system 8% cpu 19.658 total

And with the virtual pypi: 并使用虚拟pypi:

pip install -U -r requirements.txt 1.57s user 0.10s system 4% cpu 38.573 total

Unfortunately i don't have and time before the update. 不幸的是,我没有和更新前的时间。

some ideas? 一些想法?

The issue was fixed in the Artifactory Release 5.10.4 该问题已在Artifactory Release 5.10.4中修复

The corresponding Ticket is https://www.jfrog.com/jira/browse/RTFACT-16513 相应的票证是https://www.jfrog.com/jira/browse/RTFACT-16513

Degradation happens on Derby DB in case node_props table has many entries, due to a changed DB query introduced at RTFACT-15433 如果由于在RTFACT-15433引入了更改的数据库查询,node_props表中包含许多条目,则会在Derby DB上发生降级

After the upgrade, the pypi repos will be fast again. 升级后,pypi repos将再次快速

Artifactory 5.10.4为我们纠正了这个问题 - 我们发现性能提高了8倍。

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

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