Tomasz wrote:
Hello,
I have problem with latest squid versions.
Which "latest"?
'tis very flexible.
Problem is high latency through squid. Numion.com surfspeed give 2x better
results without squid ( I tested squid with and without cache_dir option)
Server config:
8GB of RAM,
Intel(R) Core(TM)2 Duo CPU E6850 @ 3.00GHz
3x 40GB WD Raptor
My SQUID config:
access_log /var/log/squid/access.log squid
acl bad url_regex "/etc/squid/bad.url
acl baza_danych src xx.xx.xx.xx/32
acl CONNECT method CONNECT
acl localhost src 127.0.0.1/32 xx.xx.xx.xx/32
acl manager proto cache_object
acl our_networks src xx.xx.xx.xx/24 xx.xx.xx.xx/24 xx.xx.xx.xx/24
xx.xx.xx.xx/24 10.0.0.0/8
acl purge method PURGE
acl QUERY urlpath_regex cgi-bin \?
acl QUERY urlpath_regex cgi-bin \?
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 21 # ftp
acl Safe_ports port 210 # wais
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 443 # https
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 70 # gopher
acl Safe_ports port 777 # multiling http
acl Safe_ports port 80 # http
acl Safe_ports port 901 # SWAT
acl SSL_ports port 443
acl to_localhost dst 127.0.0.0/8
acl zabronione dstdomain www.pogodynka.pl www.google.pl www.google.com
buffered_logs on
cache deny QUERY
cache deny QUERY
cache deny zabronione
cache_dir aufs /var/cache/squid/dysk1 8000 16 256
cache_dir aufs /var/cache/squid/dysk2 8000 16 256
cache_dir aufs /var/cache/squid/dysk3 8000 16 256
cache_log /var/log/squid/cache.log
cache_mem 3500 MB
cache_mgr admin@xxxxxx
cache_replacement_policy lru
cache_store_log none
cache_swap_high 97
cache_swap_low 92
client_db off
coredump_dir none
error_directory /usr/share/squid/errors/pl
forwarded_for on
half_closed_clients on
hierarchy_stoplist cgi-bin ?
http_access allow manager our_networks
http_access allow our_networks
http_access allow purge localhost
http_access deny all
http_access deny bad
http_access deny CONNECT !SSL_ports
http_access deny localhost
http_access deny manager localhost
http_access deny purge
http_access deny !Safe_ports
http_port 82.160.202.14:3128 transparent
icp_access allow all
logfile_rotate 30
maximum_object_size 30000 KB
maximum_object_size_in_memory 128 KB
max_open_disk_fds 32768
memory_pools off
memory_replacement_policy lru
pid_filename /var/run/squid.pid
quick_abort_min 0 KB
redirector_bypass on
refresh_pattern . 0 30% 7200
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
request_body_max_size 0 KB
snmp_access allow baza_danych
snmp_access deny all
snmp_port 3405
tcp_outgoing_address xx.xx.xx.xx
via on
visible_hostname xx.xx.xx.xx
Regards,
--
Please be using
Current Stable Squid 2.7.STABLE9 or 3.1.3