Re: [squid-users] Failed to select source for ...assert failure...

2008-06-23 Thread Pritam
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

Re: [squid-users] Failed to select source for ...assert failure...

2008-06-23 Thread Roy M.
Hi, On 6/24/08, Pritam <[EMAIL PROTECTED]> wrote: > > Try increasing the size of file descriptor > > Are there any reference links? Thanks.

RE: [squid-users] Failed to select source for ...assert failure...

2008-06-23 Thread amir shrestha
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

Re: [squid-users] Failed to select source for ...assert failure...

2008-06-23 Thread Pritam
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

Re: [squid-users] Failed to select source for ...assert failure...

2008-06-23 Thread Christos Tsantilas
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

Re: [squid-users] Failed to select source for ...assert failure...

2008-06-23 Thread Henrik Nordstrom
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

Re: [squid-users] Failed to select source for ...assert failure...

2008-06-23 Thread Roy M.
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

Re: [squid-users] Failed to select source for ...assert failure...

2008-06-23 Thread Amos Jeffries
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

Re: [squid-users] Failed to select source for ...assert failure...

2008-06-23 Thread Henrik Nordstrom
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

Re: [squid-users] Failed to select source for ...assert failure...

2008-06-23 Thread Roy M.
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.

Re: [squid-users] Failed to select source for ...assert failure...

2008-06-24 Thread Amos Jeffries
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?

Re: [squid-users] Failed to select source for ...assert failure...

2008-06-24 Thread pritam
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 "

Re: [squid-users] Failed to select source for ...assert failure...

2008-06-24 Thread Amos Jeffries
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

Re: [squid-users] Failed to select source for ...assert failure...

2008-06-24 Thread Roy M.
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.

Re: [squid-users] Failed to select source for ...assert failure...

2008-06-24 Thread Henrik Nordstrom
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

Re: [squid-users] Failed to select source for ...assert failure...

2008-06-24 Thread Henrik Nordstrom
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

Re: [squid-users] Failed to select source for ...assert failure...

2008-06-24 Thread Roy M.
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

Re: [squid-users] Failed to select source for ...assert failure...

2008-06-24 Thread Roy M.
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

Re: [squid-users] Failed to select source for ...assert failure...

2008-06-24 Thread Henrik Nordstrom
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

Re: [squid-users] Failed to select source for ...assert failure...

2008-06-24 Thread Roy M.
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

Re: [squid-users] Failed to select source for ...assert failure...

2008-06-24 Thread Amos Jeffries
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

Re: [squid-users] Failed to select source for ...assert failure...

2008-06-24 Thread Henrik Nordstrom
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

Re: [squid-users] Failed to select source for ...assert failure...

2008-06-24 Thread Roy M.
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?

Re: [squid-users] Failed to select source for ...assert failure...

2008-06-24 Thread Henrik Nordstrom
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

Re: [squid-users] Failed to select source for ...assert failure...

2008-06-24 Thread Amos Jeffries
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

Re: [squid-users] Failed to select source for ...assert failure...

2008-06-25 Thread Henrik Nordstrom
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

Re: [squid-users] Failed to select source for ...assert failure...

2008-06-25 Thread Roy M.
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

Re: [squid-users] Failed to select source for ...assert failure...

2008-06-25 Thread Henrik Nordstrom
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

Re: [squid-users] Failed to select source for ...assert failure...

2008-06-25 Thread Roy M.
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

Re: [squid-users] Failed to select source for ...assert failure...

2008-06-25 Thread Henrik Nordstrom
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