Re: [squid-users] squid doesn't cache objects in memory when using SMP and shared memory cache

2018-01-16 Thread Alex Rousskov
On 01/16/2018 04:59 PM, Ivan Larionov wrote: > The difference between direct and non-direct (transcoded) response > for http://techslides.com/demos/samples/sample.mp3: > * No "Content-Length" header for non-direct. I suspect that "recent" Squid changes improved handling of responses with unknown

Re: [squid-users] Question with ACL and UrlRewrite ?

2018-01-16 Thread Yuri
May be, because of FB is some years ago under HTTPS? 17.01.2018 03:17, Aismel пишет: > > Hi, > >   > > I need allow  all my users navigate through internet but starting at > 14:00pm to 20:00pm to X pages only so before no one can access to that > X pages. > >   > > I need redirect when a user ask

[squid-users] Question with ACL and UrlRewrite ?

2018-01-16 Thread Aismel
Hi, I need allow all my users navigate through internet but starting at 14:00pm to 20:00pm to X pages only so before no one can access to that X pages. I need redirect when a user ask www.facebook.com to m.facebook.com I found this script but do not why don't

Re: [squid-users] squid doesn't cache objects in memory when using SMP and shared memory cache

2018-01-16 Thread Ivan Larionov
Yeah I meant Very in response to requests I tried. The fact that you can't reproduce it with this url and the fact that it affects mostly mp3/wav files gave me an idea. Our env specific is squid's cache_peer parent which transcodes audio files to ulaw (format which our backend supports). This exp

Re: [squid-users] squid doesn't cache objects in memory when using SMP and shared memory cache

2018-01-16 Thread Alex Rousskov
On 01/16/2018 02:40 PM, Ivan Larionov wrote: > So it's definitely not related to Vary, there's no such header in > requests I tried. Just to avoid misunderstanding, please note that Vary is a response header. > Also this issue affects squid even with 1 worker if > shared memory is forced to on.

Re: [squid-users] squid doesn't cache objects in memory when using SMP and shared memory cache

2018-01-16 Thread Ivan Larionov
So it's definitely not related to Vary, there's no such header in requests I tried. Also this issue affects squid even with 1 worker if shared memory is forced to on. Interesting thing I noticed is that according to log file a lot of images are actually cached in memory but sound files are not (mp

Re: [squid-users] SQUID with two authentications methods

2018-01-16 Thread Amos Jeffries
On 17/01/18 06:23, Colle Christophe wrote: Hello, I want to configure SQUID with two authentications methods: - Kerberos (to do SSO with posts in an ActiveDirectory domain) - Basic (Open LDAP directory) The LDAP directory contains all the "official" accounts of people, the AD directory contai

[squid-users] SQUID with two authentications methods

2018-01-16 Thread Colle Christophe
Hello, I want to configure SQUID with two authentications methods: - Kerberos (to do SSO with posts in an ActiveDirectory domain) - Basic (Open LDAP directory) The LDAP directory contains all the "official" accounts of people, the AD directory contains some accounts (same identifiers as on LDAP

Re: [squid-users] squid doesn't cache objects in memory when using SMP and shared memory cache

2018-01-16 Thread Amos Jeffries
On 16/01/18 17:18, Ivan Larionov wrote: I would like to use squid 4 in production and I probably will since looks like SMP/shared_cache is broken in 3, but the fact that you still haven't released it confuses me. IDK why it's still in beta/rc/whatever stage. FYI:

Re: [squid-users] squid doesn't cache objects in memory when using SMP and shared memory cache

2018-01-16 Thread Alex Rousskov
On 01/15/2018 09:25 PM, Ivan Larionov wrote: > My total hit ratio decreased in ~2 times from 40% to 20% > On 01/14/2018 10:53 PM, Ivan Larionov wrote: > > > After migrating squid from non-SMP/aufs to SMP/rock memory cache hit > > ratio dropped significantly. Like from 50-100% to 1-5%.

Re: [squid-users] TCP out of memory

2018-01-16 Thread Amos Jeffries
On 17/01/18 02:37, Vieri wrote: Hi, Just a quick follow-up on this. I dropped squidclamav so I could test c-icap-modules's clamd service instead. The only difference between the two is that squidclamav was using unix sockets while c-icap-modules is using clamd. At first, the results were good

Re: [squid-users] squid doesn't cache objects in memory when using SMP and shared memory cache

2018-01-16 Thread Alex Rousskov
On 01/15/2018 09:25 PM, Ivan Larionov wrote: > looks like caching works as expected in squid 4 so it'll be better > solution than messing up with headers probably. FYI: Vary caching in shared memory is not supported in any Squid version, including v4. Alex. > On Mon, Jan 15, 2018 at 10:26 AM,

Re: [squid-users] TCP out of memory

2018-01-16 Thread Vieri
Hi, Just a quick follow-up on this. I dropped squidclamav so I could test c-icap-modules's clamd service instead. The only difference between the two is that squidclamav was using unix sockets while c-icap-modules is using clamd. At first, the results were good. The open fd numbers were fluctua