Re: [PATCH] SMP Cache manager: add support for parameterized Cache Manager queries

From: Tsantilas Christos <chtsanti_at_users.sourceforge.net>
Date: Tue, 01 Mar 2011 20:29:30 +0200

Any comment on this forgotten patch?

On 01/28/2011 09:11 PM, Tsantilas Christos wrote:
> The attached patch add support for parameterized Cache Manager queries.
>
> Currently, one sends mgr queries to the "whole" Squid. Kids responses
> may get aggregated by Coordinator, and we, in general, want to aggregate
> all responses that can be aggregated.
>
> This patch allow us to aggregate stats for a subset of kids. For
> example, the following query aggregates stats for just the first and the
> third workers:
>
> mgr:info?workers=1,3
>
> When query response information cannot be aggregated (or at least is not
> aggregated right now), then a parameterized query will result in several
> matching "byKid { ..." blocks.
>
> This patch support the following scope variants:
>
> * raw interface with access to any kid process or groups of kids;
> similar to ${process_number} macro we already support in squid.conf:
> mgr:foo?processes=id,id,id...
> * higher-level interface to isolate workers by their numbers, starting
> with 1 for the first worker:
> mgr:foo?workers=num,num,num...
>
>
> Currently, all kids except Coordinator are workers, but that will change
> in the future as we get more kinds of kids.Currently, one sends mgr
> queries to the "whole" Squid. Kids responses may get aggregated by
> Coordinator, and we, in general want to aggregate all responses that can
> be aggregated.
>
Received on Tue Mar 01 2011 - 18:29:37 MST

This archive was generated by hypermail 2.2.0 : Thu Mar 03 2011 - 12:00:05 MST