On 22 Feb 2017, at 20:53, Jonathan Perkin wrote:
* On 2017-02-22 at 19:47 GMT, Paul Sture wrote:
On 22 Feb 2017, at 20:08, Rob Seastrom wrote:
Moreover, if you are goofing around with where you get your packages
from by modifying /opt/local/etc/pkgin/repositories.conf as I do (I
have
an nginx cache running so as to be nice to Joyent and get somewhat
faster transfers internally on the Nth time that I'm installing a
particular package), you need to do the cache freshening *after* you
change the source location.
I could really really use a caching solution for pkgin, and I am sure
many
others could too.
gcc49-4.9.4.tgz for example is 324MB which on my home broadband takes
12-15
minutes. It's senseless to repeat that unnecessarily.
Are you in a position to share your nginx caching config setup?
One option that I deploy in the pkgbuild image by default is Dave
Eddy's fs-caching-server:
https://github.com/bahamas10/node-fs-caching-server
In the pkgbuild image it's used to cache downloads into the local
build chroots, but it can be used as a general purpose cache for
remote clients too.
Thanks, I had come across that already but wasn't sure whether it
could handle https, now that pkgin uses that.
For other readers, here's Dave Eddy's article which fleshes out
how to use node-fs-caching-server:
http://www.daveeddy.com/2015/07/19/smartos-pkgsrc-caching-proxy/:
-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription:
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com