LWN.net Logo

RPM: IntelligentMirror

RPM: IntelligentMirror

Posted Dec 24, 2010 13:43 UTC (Fri) by lbt (subscriber, #29672)
In reply to: RPM: IntelligentMirror by skvidal
Parent article: A look at package repository proxies

Thanks for the article :)

For those that google brings here:

FYI : Later versions of Intelligentmirror are just a trivial 2-3 line regexp substitution with about 30k of cut'n'paste code and quite a few python libraries (including yum) as dependencies that it uses to parse a 4-line config file.

This is actually the meat of it:
http://www.squid-cache.org/Doc/config/storeurl_rewrite_pr...

For the record I found my squid2.7 config needed:
798c1798
< # cache_replacement_policy lru
---
> cache_replacement_policy heap LFUDA
1988c1988
< # maximum_object_size 20480 KB
---
> maximum_object_size 80480 KB
2749a2751
> refresh_pattern -i \.(deb|rpm|zip|tar|gz|bz2)$ 259200 90% 259200 override-expire ignore-no-cache ignore-private reload-into-ims ignore-reload
2784c2786
< # quick_abort_min 16 KB
---
> quick_abort_min -1 KB
4948a4951,4958
> #### BEGIN Add to squid.conf ####
> storeurl_rewrite_program /usr/bin/python /etc/squid/intelligentmirror/intelligentmirror.py
> storeurl_rewrite_children 3
> acl store_rewrite_list urlpath_regex -i .rpm$
> acl store_rewrite_list urlpath_regex -i .deb$
> storeurl_access allow store_rewrite_list
> storeurl_access deny all
> #### END Add to squid.conf ####


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds