tag:help.rubygems.org,2010-01-19:/discussions/problems/26317-local-rubygems-mirror-very-slow-for-gem-installRubyGems.org: Discussion 2017-05-31T01:01:47Ztag:help.rubygems.org,2010-01-19:Comment/426655062017-05-30T18:57:30Z2017-05-30T18:57:31ZLocal Rubygems mirror very slow for gem install<div><p>We have a paradigm within our environment to try and install all software from mirrors inside our own environment. We are using the rubygems-mirror gem to mirror all of rubygems.org once a day. We then have all of our machines point to the local mirror.</p>
<p>One thing that we have noticed is that gem install is almost 15x slower from our local mirror than from rubygems.org.</p>
<p>We have enabled the --debug option to gem install and it looks like the fetching of the gem takes a lot longer when served locally. I would image that there is a whole different code/index path that the official rubygems.org uses verses the one we use with a local mirror.</p>
<p>Is there any advice that you can provide for us. We would still like to use a local mirrior but al increase the speed at which gems are resolved from the local mirror.</p>
<p>All and any help is greatly appreciated</p>
<p>Fetching: json-pointer-0.0.1.gem (100%)<br>
Successfully installed json-pointer-0.0.1<br>
Parsing documentation for json-pointer-0.0.1<br>
Installing ri documentation for json-pointer-0.0.1<br>
Done installing documentation for json-pointer after 0 seconds<br>
1 gem installed</p>
<p>real 0m1.081s<br>
user 0m0.921s<br>
sys 0m0.036s</p>
<hr>
<p>Fetching: json-pointer-0.0.1.gem (100%)<br>
Successfully installed json-pointer-0.0.1<br>
Parsing documentation for json-pointer-0.0.1<br>
Installing ri documentation for json-pointer-0.0.1<br>
Done installing documentation for json-pointer after 0 seconds<br>
1 gem installed</p>
<p>real 0m15.694s<br>
user 0m15.407s<br>
sys 0m0.260s</p></div>Mark Selbytag:help.rubygems.org,2010-01-19:Comment/426655062017-05-31T01:01:45Z2017-05-31T01:01:45ZLocal Rubygems mirror very slow for gem install<div><p>Take a look at Gemstash. That's the only recommended mirror solution right now. <a href="https://github.com/bundler/gemstash">https://github.com/bundler/gemstash</a></p></div>David Radcliffe