Try increasing the size of file descriptor
Roy M. wrote:
I am using Squid as HTTP accelerator, occasally my Squid3 (stable6)
will have error in cache.log, e.g.
Failed to select source for http://www.example.com
But I am sure that the URL is reachable in backend web server, and
sometimes
Hi,
On 6/24/08, Pritam <[EMAIL PROTECTED]> wrote:
>
> Try increasing the size of file descriptor
>
>
Are there any reference links?
Thanks.
Check out this
http://www.onlamp.com/pub/a/onlamp/2004/02/12/squid.html
Amir
-Original Message-
From: Roy M. [mailto:[EMAIL PROTECTED]
Sent: Monday, June 23, 2008 10:26 PM
To: Pritam
Cc: squid-users
Subject: Re: [squid-users] Failed to select source for ...assert failure...
Hi,
On 6
Roy M. wrote:
Hi,
On 6/24/08, Pritam <[EMAIL PROTECTED]> wrote:
Try increasing the size of file descriptor
Are there any reference links?
Thanks.
If squid binary is install from source then following steps should work.
~ Stop the squid process.
~ Use ulimit to increase the fil
Hi Roy,
Roy M. wrote:
I am using Squid as HTTP accelerator, occasally my Squid3 (stable6)
will have error in cache.log, e.g.
Failed to select source for http://www.example.com
But I am sure that the URL is reachable in backend web server, and
sometimes it will immediately followed by an a
On mån, 2008-06-23 at 23:26 +0800, Roy M. wrote:
> I am using Squid as HTTP accelerator, occasally my Squid3 (stable6)
> will have error in cache.log, e.g.
>
> Failed to select source for http://www.example.com
>
> But I am sure that the URL is reachable in backend web server
Anything else
Hi,
On 6/24/08, Henrik Nordstrom <[EMAIL PROTECTED]> wrote:
>
> http://www.squid-cache.org/Versions/v2/2.7/cfgman/max_filedescriptors.html
>
> http://wiki.squid-cache.org/SquidFaq/TroubleShooting#head-eb3240fe8e61368056af86138a2b5dcbc9781a54
But I am using 3.0, seems no this directive...
A
Roy M. wrote:
Hi,
On 6/24/08, Henrik Nordstrom <[EMAIL PROTECTED]> wrote:
http://www.squid-cache.org/Versions/v2/2.7/cfgman/max_filedescriptors.html
http://wiki.squid-cache.org/SquidFaq/TroubleShooting#head-eb3240fe8e61368056af86138a2b5dcbc9781a54
But I am using 3.0, seems no this direct
On tis, 2008-06-24 at 12:46 +0800, Roy M. wrote:
> Hi,
>
> On 6/24/08, Henrik Nordstrom <[EMAIL PROTECTED]> wrote:
> >
> > http://www.squid-cache.org/Versions/v2/2.7/cfgman/max_filedescriptors.html
> >
> > http://wiki.squid-cache.org/SquidFaq/TroubleShooting#head-eb3240fe8e61368056af86138a2b5d
Hi
On 6/24/08, Amos Jeffries <[EMAIL PROTECTED]> wrote:
> Roy M. wrote:
> If you are compiling there is the ./configure --with-filedescriptors=NUMBER
> option in 3.0 for this.
>
I am using "--with-filedescriptors=6400", but it said too large during
"make", so what value I should use?
Thanks.
Roy M. wrote:
Hi
On 6/24/08, Amos Jeffries <[EMAIL PROTECTED]> wrote:
Roy M. wrote:
If you are compiling there is the ./configure --with-filedescriptors=NUMBER
option in 3.0 for this.
I am using "--with-filedescriptors=6400", but it said too large during
"make", so what value I should use?
Roy M. wrote:
Hi
On 6/24/08, Amos Jeffries <[EMAIL PROTECTED]> wrote:
Roy M. wrote:
If you are compiling there is the ./configure --with-filedescriptors=NUMBER
option in 3.0 for this.
try using --with-maxfd=N
I am using "--with-filedescriptors=6400", but it said too large during
"
pritam wrote:
Roy M. wrote:
Hi
On 6/24/08, Amos Jeffries <[EMAIL PROTECTED]> wrote:
Roy M. wrote:
If you are compiling there is the ./configure
--with-filedescriptors=NUMBER
option in 3.0 for this.
try using --with-maxfd=N
--with-maxfd is the Squid 2.x equivalent. He is buildin
Hi
>> On 6/24/08, Amos Jeffries <[EMAIL PROTECTED]> wrote:
>> ...
The fd problem solved now.
Still one question not cleared, why sometimes the log said "Failed to
select source" ?
I am pretty sure the backend is reachable...
Any config. I might be missed?
Thanks.
On tis, 2008-06-24 at 19:45 +1200, Amos Jeffries wrote:
> pritam wrote:
> >
> > Roy M. wrote:
> >> Hi
> >>
> >> On 6/24/08, Amos Jeffries <[EMAIL PROTECTED]> wrote:
> >>
> >>> Roy M. wrote:
> >>> If you are compiling there is the ./configure
> >>> --with-filedescriptors=NUMBER
> >>> option in
On tis, 2008-06-24 at 16:06 +0800, Roy M. wrote:
> Still one question not cleared, why sometimes the log said "Failed to
> select source" ?
Again, what is said in cache.log before this?
Anything in /var/log/messages?
Regards
Henrik
signature.asc
Description: This is a digitally signed mes
Hi
On 6/24/08, Henrik Nordstrom <[EMAIL PROTECTED]> wrote:
>
> Again, what is said in cache.log before this?
>
> Anything in /var/log/messages?
It just randomly failed to select source:
Not always happen, but sometimes
2008/06/24 16:10:19| Failed to select source for 'http://example.com/admi
Follow up:
On 6/24/08, Roy M. <[EMAIL PROTECTED]> wrote:
> 2008/06/24 16:10:19| always_direct = 0
> 2008/06/24 16:10:19|never_direct = 0
> 2008/06/24 16:10:19|timedout = 0
> 2008/06/24 16:19:45| Failed to select source for
> 'http://www.example.com/images/1/21.gif'
> 2008/06/2
On tis, 2008-06-24 at 17:13 +0800, Roy M. wrote:
> it seems that by disabling the maxconn config, problem solved, e.g.
>
> acl maxconn_testmaxconn 20
> cache_peer_access 192.168.22.1 deny all maxconn_blog
>
>
> A little bit strange since so many client hit mo
On 6/24/08, Henrik Nordstrom <[EMAIL PROTECTED]> wrote:
> Could be many users behind a proxy or NAT gateway...
>
> It's not that uncommon to see 1 corporate users behind a single IP..
>
In this case, if I am using squid as reverse proxy, should I ajust
client_lifetime 10 minute
So client
Henrik Nordstrom wrote:
On tis, 2008-06-24 at 12:46 +0800, Roy M. wrote:
Hi,
On 6/24/08, Henrik Nordstrom <[EMAIL PROTECTED]> wrote:
http://www.squid-cache.org/Versions/v2/2.7/cfgman/max_filedescriptors.html
http://wiki.squid-cache.org/SquidFaq/TroubleShooting#head-eb3240fe8e61368056af8613
On tis, 2008-06-24 at 17:39 +0800, Roy M. wrote:
> In this case, if I am using squid as reverse proxy, should I ajust
>
> client_lifetime 10 minute
>
> So client behind their NAT can free up the connection as soon as possible?
No, it's the wrong directive for this. The idle timeout for connection
On 6/24/08, Henrik Nordstrom <[EMAIL PROTECTED]> wrote:
> On tis, 2008-06-24 at 17:39 +0800, Roy M. wrote:
> > In this case, if I am using squid as reverse proxy, should I ajust
> >
> > client_lifetime 10 minute
> >
> > So client behind their NAT can free up the connection as soon as possible?
tis 2008-06-24 klockan 21:49 +0800 skrev Roy M.:
> But as a reverse proxy, a client shouldn't expect to connect to
> reverse proxy for a long time,
Depends on the kind of site you have. If it's a site people are
interested in and continue browsing then they hopefully stay for more
than 10 minutes
Henrik Nordstrom wrote:
On tis, 2008-06-24 at 19:45 +1200, Amos Jeffries wrote:
pritam wrote:
Roy M. wrote:
Hi
On 6/24/08, Amos Jeffries <[EMAIL PROTECTED]> wrote:
Roy M. wrote:
If you are compiling there is the ./configure
--with-filedescriptors=NUMBER
option in 3.0 for this.
tr
On ons, 2008-06-25 at 16:59 +1200, Amos Jeffries wrote:
> Henrik Nordstrom wrote:
> > On tis, 2008-06-24 at 19:45 +1200, Amos Jeffries wrote:
> >> pritam wrote:
> >>> Roy M. wrote:
> Hi
>
> On 6/24/08, Amos Jeffries <[EMAIL PROTECTED]> wrote:
>
> > Roy M. wrote:
> > I
Hi
On 6/25/08, Henrik Nordstrom <[EMAIL PROTECTED]> wrote:
> I would disagree.
>
> If it's a site people browse around on then you'll want to have
> persistent connections enabled, and then the connection lifetime can be
> as long as they are visiting the site plus some..
>
> Additionally, if
On tor, 2008-06-26 at 00:03 +0800, Roy M. wrote:
> Btw, are there any limit that Squid can handle how many concurrent
> clients at the same time?
Mainly OS limits on the number of filedescriptors and sockets the OS can
handle in a single process.
> So far didn't notice a variable for this.
In 2
Hi,
On 6/26/08, Henrik Nordstrom <[EMAIL PROTECTED]> wrote:
> In 2.7 there is a squid.conf option for the number of filedescriptors.
> For 3.0 you need a configure flag and set ulimit when Squid is started..
>
> Regards
>
If I set the number of fd to 65535, that's mean I can have 65535
concurre
On tor, 2008-06-26 at 10:32 +0800, Roy M. wrote:
> If I set the number of fd to 65535, that's mean I can have 65535
> concurrent client (in theory) ?
That means the total number of connetions (both client and server) plus
disk files Squid can keep open at any given time is up to 65535.
A cacheab
30 matches
Mail list logo