The patch commit to trunk with 1-2 minor changes:
- Some required changes in src/mgr/Inquirer.[cc,h]
- fix constness of QueryParams::get and QueryParams::find methods in
src/mgr/QueryParams.[cc,h] files
Compiles cleanly and works well in my ubuntu system
Regards,
Christos
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 Wed Mar 02 2011 - 19:00:16 MST
This archive was generated by hypermail 2.2.0 : Thu Mar 03 2011 - 12:00:05 MST