Luis Daniel Lucio Quiroz wrote:
HI squids,
We have 2 squid server, one with load other with minimal (1-2 users). After
doing a -k reconfigure, the loaded server delays 40 seconds, but unloaded 2
seconds. Look:
Unloaded:
2009/11/03 19:01:14| Processing Configuration File: /etc/squid/squid.conf
(depth 0)
2009/11/03 19:01:14| Processing Configuration File: /etc/squid/squid.acl (depth
1)
2009/11/03 19:01:14| WARNING: HTTP requires the use of Via
2009/11/03 19:01:14| Initializing https proxy context
2009/11/03 19:01:14| Store logging disabled
2009/11/03 19:01:14| User-Agent logging is disabled.
2009/11/03 19:01:14| Referer logging is disabled.
2009/11/03 19:01:14| DNS Socket created at 0.0.0.0, port 49328, FD 8
2009/11/03 19:01:14| Adding nameserver 127.0.0.1 from /etc/resolv.conf
2009/11/03 19:01:14| Adding domain sat.gob.mx from /etc/resolv.conf
2009/11/03 19:01:14| Adding domain insys-corp.com.mx from /etc/resolv.conf
2009/11/03 19:01:14| helperOpenServers: Starting 32/32 'squidGuard' processes
2009/11/03 19:01:15| helperOpenServers: Starting 16/16 'digest_ldap_auth'
processes
2009/11/03 19:01:15| helperOpenServers: Starting 32/32 'squid_ldap_group'
processes
2009/11/03 19:01:15| helperOpenServers: Starting 32/32 'ip-user-helper.pl'
processes
Wow! thats a LOT of helper processes for 2 users.
They start fast enough though.
2009/11/03 19:01:16| Accepting HTTP connections at 0.0.0.0, port 3128, FD 57.
2009/11/03 19:01:16| Accepting ICP messages at 0.0.0.0, port 3130, FD 122.
2009/11/03 19:01:16| Accepting HTCP messages on port 4827, FD 123.
2009/11/03 19:01:16| Accepting SNMP messages on port 3401, FD 124.
Loaded:
2009/11/03 18:59:05| Processing Configuration File: /etc/squid/squid.conf
(depth 0)
2009/11/03 18:59:05| Processing Configuration File: /etc/squid/squid.acl (depth
1)
2009/11/03 18:59:05| WARNING: HTTP requires the use of Via
2009/11/03 18:59:05| Initializing https proxy context
2009/11/03 18:59:05| Store logging disabled
2009/11/03 18:59:05| User-Agent logging is disabled.
2009/11/03 18:59:05| Referer logging is disabled.
2009/11/03 18:59:05| DNS Socket created at 0.0.0.0, port 35507, FD 8
2009/11/03 18:59:05| Warning: Could not find any nameservers. Trying to use
localhost
2009/11/03 18:59:05| Please check your /etc/resolv.conf file
2009/11/03 18:59:05| or use the 'dns_nameservers' option in squid.conf.
Oops! major problem with DNS on this server.
2009/11/03 18:59:05| helperOpenServers: Starting 32/32 'squidGuard' processes
2009/11/03 18:59:17| helperOpenServers: Starting 16/16 'digest_ldap_auth'
processes
2009/11/03 18:59:23| helperOpenServers: Starting 32/32 'squid_ldap_group'
processes
2009/11/03 18:59:34| helperOpenServers: Starting 32/32 'ip-user-helper.pl'
processes
2009/11/03 18:59:47| Accepting HTTP connections at 0.0.0.0, port 3128, FD 57.
2009/11/03 18:59:47| Accepting ICP messages at 0.0.0.0, port 3130, FD 122.
2009/11/03 18:59:47| Accepting HTCP messages on port 4827, FD 123.
2009/11/03 18:59:47| Accepting SNMP messages on port 3401, FD 124.
2009/11/03 18:59:47| Pinger socket opened on FD 126
2009/11/03 18:59:47| Configuring Parent 127.0.0.1/8080/7
2009/11/03 18:59:47| Configuring Parent 10.10.50.232/8080/7
I wonder to know if there is a way i can speed this up.
An old rule-of-thumb in computing is to start with the first reported
problem and see how many of the following disappearr
For you that is as Squid suggests "Please check your /etc/resolv.conf file".
The slow server seems to have no DNS servers available. This could be
causing any kind of problems for the helpers later on. All of the extra
delay is during the startup process of the helpers.
Amos
--
Please be using
Current Stable Squid 2.7.STABLE7 or 3.0.STABLE20
Current Beta Squid 3.1.0.14