[ SlackList ] [ WkikiSlack ]




Squid problem

From: Tomasz W. <tomekwin_malpka_gazeta.pl>
Date: Sun Feb 01 2004 - 20:43:38 CET

Moj squid.conf wyglada tak:
###########################################
icp_port 0
http_port 8080
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
httpd_accel_single_host off
hierarchy_stoplist cgi-bin ?
#ACLs
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
acl localnet1 src 10.00.0.0/255.255.255.0
acl localhost src 127.0.0.1/255.255.255.255
acl Safe_ports port 80 443 210 21 1025-65535
acl CONNECT method CONNECT
acl snmp_server src 10.0.0.3/255.255.255.255
acl public_snmp snmp_community stats
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
#end ACLs

#SNMP ACCESS
snmp_access allow localhost
snmp_access allow snmp_server
snmp_access deny !snmp_server
#end SNMP ACCESS

no_cache deny QUERY
cache_mem 100 MB
cache_replacement_policy heap LFUDA
memory_replacement_policy heap GDSF

#CACHE DIRS
cache_dir ufs /squid1 5000 16 256
cache_dir ufs /squid2 5000 16 256
#end CACHE DIRS

#HTTP ACCESS
http_access allow localnet1
http_access allow localhost
http_access deny !Safe_ports
http_access deny CONNECT
http_access deny all
#HTTP ACCESS

#CACHE
cache_mgr webmaster
cache_effective_user squid
cache_effective_group squid
#opcje logowania:
cache_access_log /dysk_3/squid/access.log
cache_log /dysk_3/squid/cache.log
cache_store_log /dysk_3/squid/store.log
cache_swap_log /dysk_3/squid/cache_swap.log
cache_swap_low 80
cache_swap_high 100
emulate_httpd_log on

#cache_store_log none
cachemgr_passwd tajne_haslo all
#

#LOG
logfile_rotate 1
log_icp_queries off
buffered_logs on
visible_hostname moja.nazwa.pl
maximum_object_size 8192 KB
minimum_object_size 5 KB
request_header_max_size 20 KB
connect_timeout 100 seconds
half_closed_clients off
error_directory /usr/local/squid/share/errors/Polish/
#############################

Ponadto zwiekszylem ilosc mozliwych otwartych plikow do 16000, wysztko
wydaje sie dzialac oki, ale niestety co jakis czas squid zawiesza sie (takie
mam wrazenie) - rosnie wykorzystanie cpu, zajecosc pamieci przez squida jest
na poziomie ok. 40 MB . Nie sa mozliwe polaczenia http przez proxy i bez
niego (nie wszyscy uzytkownicy sa przechwytywani przez iptables). Wszystko
ustepuje po wylaczeniu squida i ponownym uruchomieniu.
Jakies uwagi?
btw. uzywam squida 2.5.STABLE4-20040121

Received on Wed Feb 11 01:01:35 2004

This archive was generated by hypermail 2.1.8. Wyprawa Shackleton 2014