Cita de: firecold en Marzo 28, 2013, 08:13:53 PM
yo la tengo de esta manera, de la misma manera que tu tengo 15 megas, casi lo mismo de clientes que usted y una core2duo 2.93GHz (2 cores), 8 de ram, disco para el sistema 320 y 1tb para el cache de raptor, en lo particular prefiero squid3, tiene muchas ventajas que no goza squid2.7, pero cada quien tiene su propia opinion, mi configuracion es esta:Código [Seleccionar]#=========================== Squid3 Conf =============================#
# -----------------------------------------------------------------------------
# ACCESS CONTROLS
# -----------------------------------------------------------------------------
# Recommended minimum configuration:
acl manager proto cache_object
acl localhost src 127.0.0.1/32 ::1
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1
# -----------------------------------------------------------------------------
acl SSL_ports port 443 5222
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl Safe_ports port 631 # Cups
acl CONNECT method CONNECT
#----------------------------------------------------------------------
acl accesototal src "/etc/squid3/accesototal.txt"
acl mired src "/etc/squid3/mired.txt"
acl webloqueadas url_regex -i "/etc/squid3/sitiosdenegados.txt"
acl magic_words1 url_regex -i 192.168.1
acl magic_words2 url_regex -i .exe .mp3 .zip .rar .avi .mpeg .mpe .mpg .wav .mov .3gp .mov .flv .mp2 .mp5 .aac .wma .ogg .mka .asf .iff .amv
#----------------------------------------------------------------------
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow manager localhost
http_access deny manager all
#----------------------------------------------------------------------
http_access deny localhost
http_access allow accesototal
http_access allow mired !webloqueadas
http_access deny all
htcp_access deny all
#----------------------------------------------------------------------
# Sitios que se les niega el cache
#----------------------------------------------------------------------
acl nocache dstdomain .4shared.com .youtube.com .windowsupdate.com .gl$ .jw.org
no_cache deny nocache
# -----------------------------------------------------------------------------
# NETWORK OPTIONS
# -----------------------------------------------------------------------------
# Squid normally listens to port 3128
http_port 3128 intercept
# htcp_port 0
#ignore_expect_100 on
# We recommend you to use at least the following line.
# hierarchy_stoplist cgi-bin ?
# -----------------------------------------------------------------------------
# MEMORY CACHE OPTIONS
# -----------------------------------------------------------------------------
cache_mem 2048 MB
maximum_object_size_in_memory 80 MB
cache_replacement_policy heap LFUDA
memory_replacement_policy heap LFUDA
hosts_file /etc/hosts
# -----------------------------------------------------------------------------
# DISK CACHE OPTIONS
# -----------------------------------------------------------------------------
cache_dir aufs /var/spool/squid3/cache 10000 16 256
cache_dir aufs /var/spool/squid3/cache1 10000 16 256
minimum_object_size 0 KB
maximum_object_size 200 MB
cache_swap_low 92
cache_swap_high 96
# -----------------------------------------------------------------------------
# LOGFILE OPTIONS
# -----------------------------------------------------------------------------
access_log /var/log/squid3/access.log squid
cache_store_log none
cache_log /var/log/squid3/cache.log
# client_netmask 255.255.255.0
# -----------------------------------------------------------------------------
# OPTIONS FOR TROUBLESHOOTING
# -----------------------------------------------------------------------------
coredump_dir /var/spool/squid3
# -----------------------------------------------------------------------------
# OPTIONS FOR TUNING THE CACHE
# -----------------------------------------------------------------------------
# Imagenes
refresh_pattern -i \.gif 2880 80% 4320 reload-into-ims
refresh_pattern -i \.tiff 2880 80% 4320 reload-into-ims
refresh_pattern -i \.bmp 2880 80% 4320 reload-into-ims
refresh_pattern -i \.jpeg 2880 80% 4320 reload-into-ims
refresh_pattern -i \.png 2880 80% 4320 reload-into-ims
refresh_pattern -i \.pict 1440 80% 4320 reload-into-ims
# Movies
refresh_pattern -i \.mov 14400 80% 43200
refresh_pattern -i \.mpeg 14400 80% 43200
refresh_pattern -i \.swf 2888 80% 5764 reload-into-ims
refresh_pattern -i \.flv 2888 80% 5764 reload-into-ims
# Sounds
refresh_pattern -i \.wav 14400 80% 43200
refresh_pattern -i \.mp3 28880 80% 57640
# Archives
refresh_pattern -i \.zip 14400 80% 43200
refresh_pattern -i \.hqx 14400 80% 43200
refresh_pattern -i \.exe 14400 80% 43200
refresh_pattern -i \.rar 14400 80% 43200
refresh_pattern -i \.tar 14400 80% 43200
refresh_pattern -i \.gz 14400 80% 43200
refresh_pattern -i \.z 14400 80% 43200
refresh_pattern -i \.a[0-9][0-9] 14400 80% 43200
refresh_pattern -i \.r[0-9][0-9] 14400 80% 43200
# Data files
refresh_pattern -i \.txt 14400 80% 43200
refresh_pattern -i \.pdf 14400 80% 43200
refresh_pattern -i \.doc 14400 80% 43200
refresh_pattern -i \.rtf 14400 80% 43200
refresh_pattern -i \.latex 14400 80% 43200
# Java-type objects
refresh_pattern -i \.class 14400 80% 43200
refresh_pattern -i \.js 14400 80% 43200
refresh_pattern -i \.class 14400 80% 43200
# Para evitar problemas con scripts .do
refresh_pattern -i \.do 0 0% 1440
refresh_pattern -i ^http://.*\.(css|htm|html|ico|js|jsp|xml) 1440 80% 43200 reload-into-ims
refresh_pattern -i ^http://.*\.(bmp|gif|jpeg|jpg|png) 1440 80% 43200 reload-into-ims
#Fin
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320
# -----------------------------------------------------------------------------
# HTTP OPTIONS
# -----------------------------------------------------------------------------
request_header_max_size 256 KB
ie_refresh on
quick_abort_min 0 KB
quick_abort_max 0 KB
quick_abort_pct 100
read_ahead_gap 16384 KB
negative_ttl 0 seconds
positive_dns_ttl 86400 seconds
negative_dns_ttl 1 seconds
fqdncache_size 16384
max_filedescriptors 65536
# -----------------------------------------------------------------------------
# TIMEOUTS
# -----------------------------------------------------------------------------
forward_timeout 240 seconds
connect_timeout 60 seconds
peer_connect_timeout 30 seconds
read_timeout 900 seconds
request_timeout 120 seconds
persistent_request_timeout 60 seconds
client_lifetime 60 minutes
half_closed_clients off
pconn_timeout 60 seconds
shutdown_lifetime 20 seconds
forwarded_for off
pipeline_prefetch off
# -----------------------------------------------------------------------------
# ADMINISTRATIVE PARAMETERS
# -----------------------------------------------------------------------------
# TAG: cache_mgr
cache_mgr Firecold
cache_effective_user proxy
cache_effective_group proxy
ftp_user anonymous@anonymous.com
visible_hostname proxy.os.com
dns_nameservers 127.0.0.1
dns_retransmit_interval 5 seconds
dns_timeout 2 minutes
ipcache_size 40960
ipcache_low 98
ipcache_high 99
memory_pools off
offline_mode on
reload_into_ims on
store_dir_select_algorithm round-robin
#esi_parser custom
# -----------------------------------------------------------------------------
# Qos
# -----------------------------------------------------------------------------
qos_flows local-hit=0x30
qos_flows parent-hit=0x32
qos_flows disable-preserve-miss
# -----------------------------------------------------------------------------
# DELAY POOL PARAMETERS
# -----------------------------------------------------------------------------
delay_pools 3
delay_class 1 2
delay_parameters 1 -1/-1 -1/-1
delay_access 1 allow accesototal
# -----------------------------------------------------------------------------
delay_class 2 2
#-1/-1 significa que no hay limites.
delay_parameters 2 -1/-1 -1/-1
delay_access 2 allow magic_words1
# -----------------------------------------------------------------------------
delay_class 3 2
delay_parameters 3 60000/60000 60000/60000
delay_access 3 allow magic_words2
#----------------------------------------------------------------------
acl raptor_lst url_regex -i "/etc/raptor/raptor.lst"
cache deny raptor_lst
cache_peer 192.168.1.1 parent 8080 0 proxy-only no-digest
dead_peer_timeout 2 seconds
cache_peer_access 192.168.1.1 allow raptor_lst
cache_peer_access 192.168.1.1 deny all
#----------------------------------------------------------------------
Cualquier duda con la configuración, o con algún parámetro de la configuración, házmelo saber especificamente el que te cause duda, no tendre ningun problema en explicartelo, Saludos
porque tienes configurado de esta forma:
cache_dir aufs /var/spool/squid3/cache 10000 16 256
cache_dir aufs /var/spool/squid3/cache1 10000 16 256
no tendrias que poner el tamaño del disco total que tienes para cache?? no entiendo la relacion entre cache_dir y el tamaño de disco total asignado a cache que tienes (1tb)...