icap adaptation chains with adaptation sets

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

icap adaptation chains with adaptation sets

Klaus Brandl
Hi,

is there a way to use more adaptation sets(for redundancy) combined in
an adaptation chain?
What we need is something like this:

icap_service b1 reqmod_precache ...
icap_service b2 reqmod_precache ...
icap_service b3 reqmod_precache ...
icap_service b4 reqmod_precache ...

icap_service m1 reqmod_precache ...
icap_service m2 reqmod_precache ...
icap_service m3 reqmod_precache ...
icap_service m4 reqmod_precache ...

#blacklist
adaptation_service_set pool1 b1 b2 b3 b4
#malware scanner
adaptation_service_set pool2 m1 m2 m3 m4

adaptation_service_chain checks pool1 pool2

adaptation_access checks allow all

Regards

Klaus

_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: icap adaptation chains with adaptation sets

Amos Jeffries
Administrator
On 1/04/21 3:02 am, Klaus Brandl wrote:
> Hi,
>
> is there a way to use more adaptation sets(for redundancy) combined in
> an adaptation chain?
> What we need is something like this:
>

Have you tried configuring something like exactly what you posted?


Amos
_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: icap adaptation chains with adaptation sets

Klaus Brandl
yes, then i get:

2021/04/01 10:23:53 kid1| Adaptation support is on
2021/04/01 10:23:53.421 kid3| ERROR: ERROR: Unknown adaptation name
pool1 in adaptation chain 'checks'
2021/04/01 10:23:53.421 kid4| 93,2| src/adaptation/Config.cc(224)
FinalizeEach: Initialized 14 message adaptation services
2021/04/01 10:23:53 kid2| Adaptation support is on
2021/04/01 10:23:53.421 kid3| ERROR: ERROR: Unknown adaptation name
pool2 in adaptation chain 'checks'

(and so on...)

Klaus

Am Donnerstag, den 01.04.2021, 20:22 +1300 schrieb Amos Jeffries:

> On 1/04/21 3:02 am, Klaus Brandl wrote:
> > Hi,
> >
> > is there a way to use more adaptation sets(for redundancy) combined
> > in
> > an adaptation chain?
> > What we need is something like this:
> >
>
> Have you tried configuring something like exactly what you posted?
>
>
> Amos
> _______________________________________________
> squid-users mailing list
> [hidden email]
> http://lists.squid-cache.org/listinfo/squid-users
_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: icap adaptation chains with adaptation sets

Klaus Brandl
it only works, if i use icap services directly, like:

icap_service b1 reqmod_precache ...
icap_service m1 reqmod_precache ...

adaptation_service_chain checks b1 m1
adaptation_access checks allow all

But then we have no redundancy...

Klaus

Am Donnerstag, den 01.04.2021, 08:27 +0000 schrieb Klaus Brandl:

> yes, then i get:
>
> 2021/04/01 10:23:53 kid1| Adaptation support is on
> 2021/04/01 10:23:53.421 kid3| ERROR: ERROR: Unknown adaptation name
> pool1 in adaptation chain 'checks'
> 2021/04/01 10:23:53.421 kid4| 93,2| src/adaptation/Config.cc(224)
> FinalizeEach: Initialized 14 message adaptation services
> 2021/04/01 10:23:53 kid2| Adaptation support is on
> 2021/04/01 10:23:53.421 kid3| ERROR: ERROR: Unknown adaptation name
> pool2 in adaptation chain 'checks'
>
> (and so on...)
>
> Klaus
>
> Am Donnerstag, den 01.04.2021, 20:22 +1300 schrieb Amos Jeffries:
> > On 1/04/21 3:02 am, Klaus Brandl wrote:
> > > Hi,
> > >
> > > is there a way to use more adaptation sets(for redundancy)
> > > combined
> > > in
> > > an adaptation chain?
> > > What we need is something like this:
> > >
> >
> > Have you tried configuring something like exactly what you posted?
> >
> >
> > Amos
> > _______________________________________________
> > squid-users mailing list
> > [hidden email]
> > http://lists.squid-cache.org/listinfo/squid-users
> _______________________________________________
> squid-users mailing list
> [hidden email]
> http://lists.squid-cache.org/listinfo/squid-users
_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: icap adaptation chains with adaptation sets

Alex Rousskov
In reply to this post by Klaus Brandl
On 3/31/21 10:02 AM, Klaus Brandl wrote:

> is there a way to use more adaptation sets(for redundancy) combined in
> an adaptation chain?

Squid only supports chains of services and sets of services. There is
currently no support for nesting (e.g., chains of sets). Such support
would be generally useful IMO.

https://wiki.squid-cache.org/SquidFaq/AboutSquid#How_to_add_a_new_Squid_feature.2C_enhance.2C_of_fix_something.3F

Alex.


> What we need is something like this:
>
> icap_service b1 reqmod_precache ...
> icap_service b2 reqmod_precache ...
> icap_service b3 reqmod_precache ...
> icap_service b4 reqmod_precache ...
>
> icap_service m1 reqmod_precache ...
> icap_service m2 reqmod_precache ...
> icap_service m3 reqmod_precache ...
> icap_service m4 reqmod_precache ...
>
> #blacklist
> adaptation_service_set pool1 b1 b2 b3 b4
> #malware scanner
> adaptation_service_set pool2 m1 m2 m3 m4
>
> adaptation_service_chain checks pool1 pool2
>
> adaptation_access checks allow all
>
> Regards
>
> Klaus

_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: icap adaptation chains with adaptation sets

Klaus Brandl
Thanks!

An other, maybe easier way were to support more then one
adaptation_access lines, so we could do something like this:

adaptation_access pool1 allow all
adaptation_access pool2 allow all

But this is currently not working, only the first line takes effect,
the second is ignored. The config reference says here:

It is currently not possible to apply more than one adaptation
service at the same vectoring point to the same HTTP transaction.

What a shame :)

Klaus

Am Sonntag, den 04.04.2021, 23:29 -0400 schrieb Alex Rousskov:

> On 3/31/21 10:02 AM, Klaus Brandl wrote:
>
> > is there a way to use more adaptation sets(for redundancy) combined
> > in
> > an adaptation chain?
>
> Squid only supports chains of services and sets of services. There is
> currently no support for nesting (e.g., chains of sets). Such support
> would be generally useful IMO.
>
> https://wiki.squid-cache.org/SquidFaq/AboutSquid#How_to_add_a_new_Squid_feature.2C_enhance.2C_of_fix_something.3F
>
> Alex.
>
>
> > What we need is something like this:
> >
> > icap_service b1 reqmod_precache ...
> > icap_service b2 reqmod_precache ...
> > icap_service b3 reqmod_precache ...
> > icap_service b4 reqmod_precache ...
> >
> > icap_service m1 reqmod_precache ...
> > icap_service m2 reqmod_precache ...
> > icap_service m3 reqmod_precache ...
> > icap_service m4 reqmod_precache ...
> >
> > #blacklist
> > adaptation_service_set pool1 b1 b2 b3 b4
> > #malware scanner
> > adaptation_service_set pool2 m1 m2 m3 m4
> >
> > adaptation_service_chain checks pool1 pool2
> >
> > adaptation_access checks allow all
> >
> > Regards
> >
> > Klaus
_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users