Max open files

View: New views
5 Messages — Rating Filter:   Alert me  

Max open files

by John Doe-44 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

what max open files should I set for an "average" squid reverse-proxy config?
By default it is 1024 on my linux distrib and I was wondering if it would be enough...
I did set FD=64000.

Thx,
JD


     


Re: Max open files

by Amos Jeffries-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

John Doe wrote:
> Hi,
>
> what max open files should I set for an "average" squid reverse-proxy config?
> By default it is 1024 on my linux distrib and I was wondering if it would be enough...
> I did set FD=64000.
>

How many req/sec are you expecting? multiply by 3, then multiply by the
time in seconds you expect an 'average' connection to stay open (I'd
expect 1-5 seconds on a fast system).

Does the number you come up with seem reasonable to use? if not how
close can you get.

Amos
--
Please use Squid 2.7.STABLE4 or 3.0.STABLE8

visible_hostname resolution problem

by Gustavo Lazarte :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hello,
We are testing Squid 2.6 stable 21 for the first time and we are getting the following error when we are trying to start the Squid service.

2008/09/03 11:02:20| parseConfigFile: line 3028 unrecognized: 'localhost'
FATAL: Could not determine fully qualified hostname.  Please set 'visible_hostname' (same error with serversname.company.com)

Squid Cache (Version 2.6.STABLE21): Terminated abnormally.

I added a value on the host file and on the DNS server trying to resolve the localhost value and the servername.company.com. Should I define the DNS server inside Squid?

Thanks


Parent Message unknown Re: Max open files

by John Doe-44 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> > what max open files should I set for an "average" squid reverse-proxy config?
> > By default it is 1024 on my linux distrib and I was wondering if it would be
> enough...
> > I did set FD=64000.
> >
>
> How many req/sec are you expecting? multiply by 3, then multiply by the
> time in seconds you expect an 'average' connection to stay open (I'd
> expect 1-5 seconds on a fast system).
>
> Does the number you come up with seem reasonable to use? if not how
> close can you get.

Let's say 100r/s, with 1s average requests => 300, which seems reasonable.
But, I might have from times to times a wave of people (with potentialy slow connections) requesting big videos at the same time.
So the connections are going to stay open for many seconds, maybe even minutes...
So, to stay on the safe side, I guess I will raise it to 4096.

Thx,
JD


     


Re: visible_hostname resolution problem

by Amos Jeffries-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>
> Hello,
> We are testing Squid 2.6 stable 21 for the first time and we are getting
> the following error when we are trying to start the Squid service.
>
> 2008/09/03 11:02:20| parseConfigFile: line 3028 unrecognized: 'localhost'
> FATAL: Could not determine fully qualified hostname.  Please set
> 'visible_hostname' (same error with serversname.company.com)
>
> Squid Cache (Version 2.6.STABLE21): Terminated abnormally.
>
> I added a value on the host file and on the DNS server trying to resolve
> the localhost value and the servername.company.com. Should I define the
> DNS server inside Squid?
>
> Thanks
>

Your host name configuration is severely broken.

check /etc/resolve.conf is configured properly (it should contain
'nameserver' and 'search' or 'domain' lines)
check /etc/hostname is configured properly

What you should do is give your machine a valid name ie 'guber'. Which can
be combined with your company name ie guber.example.com  to create a
globally unique FQDN. That name is how you and other administrators are
expected to track the machine back to report and/or solve any problems.
The FQDN + its rDNS lookup is what Squid uses to identify itself, and its
own official public IP address.

Amos


LightInTheBox - Buy quality products at wholesale price!