Re: [squid-users] What is a reasonable size for squid.conf?

From: Kinkie <gkinkie_at_gmail.com>
Date: Sat, 28 Jun 2014 22:50:00 +0200

On Fri, Jun 27, 2014 at 9:51 PM, Owen Crow <owen.crow_at_gmail.com> wrote:
> I am running a non-caching reverse proxy using version 3.3.10.
>
> My squid.conf is currently clocking in 60k lines (not including
> comments or blank lines). Combined with the conf files in my conf.d
> directory, I have a total of 89k lines in configuration.

Hi Owen,
  I suspect you have embedded in your squid.conf some very long ACL,
haven't you?
If so, what type is it, and how many lines?
As a general advice, you may want to consider moving these ACLs to
external files and reference them from the config-file.

> I have definitely noticed "-k reconfigure" calls taking on the order
> of 20 seconds to run when it used to be less than a couple seconds.
> (Same results with "-k test").

20 seconds is quite a bit. What has changed in the configuration file
since then?

> I've tried searching for anything related to max lines and similar,
> but it usually talks about squid.conf configuration options and not
> the file itself.
> If this is not documented per se, are there any anecdotal examples
> that have this many lines or more? I only see this growing over time.

There is no hard limit to the configuration file that I know of. Are
you experiencing any performance issues other than during
reconfiguration?

-- 
    Kinkie
Received on Sat Jun 28 2014 - 20:50:11 MDT

This archive was generated by hypermail 2.2.0 : Sun Jun 29 2014 - 12:00:05 MDT