Re: [squid-users] logformat odd values

2021-09-17 Thread Moti Berger
are the most is the extra time my ICAPs add to the user latency and this is what I would like to measure. Thanks On Wed, Sep 15, 2021, 20:47 Alex Rousskov wrote: > On 9/14/21 3:04 PM, Moti Berger wrote: > > > I have the followings in squid.conf: > > > > logformat m

[squid-users] logformat odd values

2021-09-14 Thread Moti Berger
Hi I have the followings in squid.conf: > logformat metrics %icap::tt %adapt::all_trs %adapt::sum_trs > %{service_req_a}adapt::sum_trs %{service_resp_a}adapt::sum_trs > %{service_req_b}adapt::sum_trs %{service_resp_b}adapt::sum_trs > access_log daemon:/var/log/squid/metrics.log metrics > > icap

Re: [squid-users] New line in logformat

2021-09-05 Thread Moti Berger
org/Doc/config/logfile_daemon/ > You'd just ignore everything but lines starting with L. > > чт, 2 сент. 2021 г. в 16:49, Amos Jeffries : > > > > On 3/09/21 12:07 am, Moti Berger wrote: > > > Hi > > > > > > I want to send metrics to statsd, so I

[squid-users] New line in logformat

2021-09-02 Thread Moti Berger
Hi I want to send metrics to statsd, so I tried doing the following: > logformat metrics_statsd > my_service_latency:%{my_service}adapt::sum_trs|ms\nicap_total:%icap::tt|ms > access_log tcp://1.2.3.4:8125 logformat=metrics_statsd In statsd daemon I see only the first (it supports multiple metri

[squid-users] Log to statsd

2021-08-11 Thread Moti Berger
Hi Is there a way to configure Squid to output the logs to statsd rather than a file? Today I have this: > +logformat my_metrics %icap::tt % +access_log daemon:/var/log/squid/my_metrics.log my_metrics > However I would like to avoid the overhead in parsing the log file by using statsd or so

[squid-users] Sharing info from eCAP adapter with other adapters

2021-07-14 Thread Moti Berger
Hi I have an env with Squid 4 with several ICAPs. In this env, I set in squid.conf the following: adaptation_masterx_shared_names X-My-Header > and I add an ICAP header X-My-Header with some data in one ICAP and next ICAPs can use it (I also see it in tcpdump output). Now I'm writing an eCAP an

[squid-users] Refrain from Cache Manager API requests to reach ICAPs

2021-07-04 Thread Moti Berger
Hi I established an environment with Squid and Datadog. It periodically calls the endpoint: /squid-internal-mgr/counters > Those requests are also sent to the ICAPs. Is there a way to make Squid not to pass those requests to the ICAPs? Thanks, Moti __

[squid-users] HTTP requests queue

2021-06-30 Thread Moti Berger
Hi, I'm using Squid with ICAPs and ECAPs. Some of them are faster than others. Does squid hold one queue for each chain (REQMOD/RESPMOD) or per ICAP/ECAP? Meaning, if I have one ECAP and one ICAP in a chain where the faster ECAP is first. Will the ECAP keep getting new HTTP requests to adapt even

[squid-users] cacheProtoClientHttpRequests OID

2021-06-21 Thread Moti Berger
Hi, If I have the cache disabled: > cache deny all Can we be sure the OID cacheProtoClientHttpRequests really counts the HTTP requests received by Squid (v4.15)? https://wiki.squid-cache.org/Features/Snmp Thanks, Moti ___ squid-users mailing list sq

[squid-users] Sporadic FATAL on squid 4.14

2021-04-25 Thread Moti Berger
Hi I'm occasionally having the following error (entire compressed cache.log is 150K, I'll attach it if required). > 2021/04/25 09:42:36.226| 33,2| AsyncCallQueue.cc(55) fireNext: entering > clientListenerConnectionOpened(local=0.0.0.0:3128 remote=[::] flags=9, err=0, > HTTP Socket port=0x55ba5f

Re: [squid-users] Squid 5.0.4 crash

2021-04-06 Thread Moti Berger
sing the adaptation_masterx_shared_names conf. Maybe you can think of something related to above that might caused it? Thanks, Moti On Sun, Apr 4, 2021 at 4:14 PM Amos Jeffries wrote: > On 4/04/21 11:44 pm, Moti Berger wrote: > > Hi > > > > I noticed Squid sporadically crashes with the following er

[squid-users] Squid 5.0.4 crash

2021-04-04 Thread Moti Berger
Hi I noticed Squid sporadically crashes with the following error (taken from cache.log): > 2021/04/01 21:58:03| FATAL: check failed: !request->pinnedConnection() > > exception location: FwdState.cc(1055) connectStart > > current master transaction: master4104 > > 2021/04/01 21:58:03| Remo

[squid-users] X-Next-Services

2021-03-25 Thread Moti Berger
Hi I want to be able to skip all subsequent ICAP servers defined in squid based on some logic I have in one of my ICAP servers. I used the X-Next-Services and it seems to control only the current ICAP chain. I also saw it while configuring two ICAP servers to handle requests and one ICAP server to

Re: [squid-users] Adding headers in ICAP server with no preview

2021-01-19 Thread Moti Berger
Thank you very much, that really helped! On Mon, Jan 18, 2021 at 6:48 PM Alex Rousskov < rouss...@measurement-factory.com> wrote: > On 1/18/21 6:45 AM, Moti Berger wrote: > > > If the ICAP server sets 'Preview: 0' in the OPTIONS it means that when > > the ICAP

Re: [squid-users] Adding headers in ICAP server with no preview

2021-01-18 Thread Moti Berger
dy. I could not find any reference to this case in the RFC3507. The ICAP server has no way to encapsulate the HTTP request body if it didn't get it. I want to avoid sending the body because the adaptation is body agnostic. On Sun, Jan 17, 2021 at 11:34 PM Alex Rousskov < rouss...@measur

[squid-users] Making destination IP available in ICAP REQMOD request

2021-01-17 Thread Moti Berger
Hi My goal is to obtain the destination IP when sending an HTTP request for my ICAP server so it would be able to decide the kind of adaptation required based on it. Looking at squid (5.0.4) code I discovered the following: It seems that "everything" starts at ClientRequestContext. I've noticed

[squid-users] Adding headers in ICAP server with no preview

2021-01-17 Thread Moti Berger
Hi I have an environment with squid version 5.0.4 with ICAP server adapting requests by adding an header. When I'm trying to send a POST request with a body I'm having an issue of a stuck connection. What should the ICAP response look like? What I do is to reply like this: > (dI./M..ICAP/1.0 200

Re: [squid-users] Connection occasionally not ending after adapting response with ICAP

2020-12-31 Thread Moti Berger
x Rousskov < rouss...@measurement-factory.com> wrote: > On 12/30/20 10:40 AM, Moti Berger wrote: > > >>>> I don't see the "0 CR LF CR LF" at all, not only for those URLs that > > cause the curl to hang. > > I suspect that none of those ICAP respons

Re: [squid-users] Connection occasionally not ending after adapting response with ICAP

2020-12-30 Thread Moti Berger
On Wed, Dec 30, 2020 at 4:54 PM Alex Rousskov < rouss...@measurement-factory.com> wrote: > On 12/30/20 9:09 AM, Moti Berger wrote: > > I have a setup with squid 5.0.4 with ICAP server handling responses. > > FTR: This part seems to be about an ICAP RESPMOD service genera

[squid-users] Connection occasionally not ending after adapting response with ICAP

2020-12-30 Thread Moti Berger
I have a setup with squid 5.0.4 with ICAP server handling responses. The ICAP server redirects based on some parameters of the response. To test this setup, I use cURL like this: > curl -k -s --proxy localhost:8000 -o /dev/null -v Now, for some URLs, cURL hangs and for others it exits after re