Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: My CPAN Proxy Mirror

by hossman (Prior)
on May 06, 2008 at 00:08 UTC ( #684786=note: print w/ replies, xml ) Need Help??


in reply to My CPAN Proxy Mirror [CPAN::CachingProxy]

I'm a little confused ... did you actaully *want* a local mirror of the stuff you're installing, or did you just want to make you life easier when picking your CPAN mirror during CPAN.pm configuration?

If the later, then you don't seem to have made life any easier, since your mirror can only deal with one URL (for reasons that aren't clear). Picking one URL when configuring CPAN isn't really that hard.

You probably could have achieved the same thing (without needing any local disk, actaully using multiple mirrors) by configuring your DNS server to make "cpan-mirror.yourdomain.com" round robin through the mirrors you want to use.


Comment on Re: My CPAN Proxy Mirror
Re^2: My CPAN Proxy Mirror
by jettero (Monsignor) on May 06, 2008 at 02:13 UTC
    On one machine, no, it isn't hard to change it. Making the same change on 15 or 20 hosts starts to get irritating. Not difficult, just irritating. Which mirror am I using now again? Oh, right... Then 'o conf urllist blah blah..." I tend to only change when my selected mirror gets slow, stale, or disappears.

    It's while I was at it that I wanted to start mirroring CPAN (for speed as much as keeping the load off the mirror) to avoid downloading all the same modules over and over, but I didn't want to mirror the whole thing or even the mini-list. It takes up too much space it's it's even more load for the mirror, rather than less. What I really wanted was a cache.

    The reason I only pick one mirror at a time is that they don't always seem to be synced up with the same modules. I originally set it up to be able to pick randomly from a list of favorites, but it causes unexpected problems -- so I started just picking one.

    -Paul

      Hmmm... I'd probably just use something like squid configured as an accelerator cache.

      You'd get all the same benefits (local caching of only the stuff you've installed and a single place to configure the remote site you are mirroring) but you wouldn't have to write anything, and it would manage the disk usage.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://684786]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (8)
As of 2014-08-21 17:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (139 votes), past polls