Dear Hans,
Thanks for your reply, in first place.
On Tue, May 8, 2012 at 12:53 AM, H <
h...@hm.net.br> wrote:
> Eduardo Meyer wrote:
>> Hello dear gents,
>>
>> I have changed my strategy recently, deploying Lusca for filtering and
>> something else for caching, what I would like to have is the following
>> behavior:
>>
>> - Lusca does it best and caches everything it can
>> - Non-cacheable objects should be redirected to a cache peer
>>
>
> man ... makes not so much sense to me
>
> you can not redirect objects, but if you meant to say trying to fetch
> none-cacheable objects from peer, what sense does it make fetching
> none-cacheable objects from a cache server?
Non cacheable objects from the Lusca perspective. Possibly cacheable
from the upper peer which is not Lusca. In fact I am using Lusca to do
some filtering, user auth and primary caching, and peering it with
something else to do other kind of caching which Lusca can't handle by
itself.
>
> anyway ... :) not anything makes sense in life, so look if it helps
>
>
>>
>> My current cache_peer config is:
>>
>> cache_peer 10.10.2.10 parent 8080 0 proxy-only no-digest no-query
>> dead_peer_timeout 2 seconds
>>
>
> this should be enough:
>
> cache_peer 10.10.2.10 parent 8080 0
>
> this way you get it from whom serves first, direct or cache_peer
>
> in your case, proxy-only may not make sense since your cache can not
> know if the something-else-cache serves from cache or not, whatsoever,
> it makes no sense since you are already fetching none-cacheable objects,
> so why do you care?
I have tried, and still, Lusca goes to upper peer for everything,
including the objects it *can* handle. I want to say "Hey Lusca, do
your best and cache everything you can, the objects you can't handle,
use the upper cache peer instead of going direct".
I want the upper peer to decide to go direct, not Lusca.
> setting icp port to 0 already implies no-query
>
> in order not to query cache_peer for everything you need to define your
> "none-cacheable" objects/taregts and write your acl, then
>
> cache_peer_access cache_peer_IP deny ! ACL_NAME
OK, it's the desired approach, but I need to figure out which ones are
Lusca's cacheable objects. Which ones are they? It's not something
that I have in mind, that I have decided, it's something Lusca can or
cannot handle which I don't know how an ACL can match that.
>
> this is pretty much what you need for trying to fetch your
> none-cacheable objects from a cache peer :)
>
> Hans
>
>
>> I dont have a cache_peer_access directive in place.
>>
>> I would love to be able to use something like:
>>
>> cache_peer_access 10.10.2.10 <a fallback match acl for DIRECT>
>>
>> For example shouldn't it work:
>>
>> cache_peer 10.10.2.10 parent 8080 0 proxy-only no-digest no-query
>> dead_peer_timeout 2 seconds
>> acl test hier_code DIRECT
>> cache_peer_access 10.10.2.10 allow test
>>
>> Should it work? because it didnt :-( Everything goes DIRECT without
>> going to cache peer...
>>
>> Any suggestions are very, very welcome :-)
>>
>> Now to the hackers: if I need to directly change it in source code,
>> where should I? I mean where, which source code file/line the
>> go-DIRECT decision takes place? Thank you :-)
>>
>
>
> --
> H
>
+55 11 4249.2222
>