LINUX.ORG.RU
ФорумAdmin

SQUID - срок жизни объектов


0

0

Подскажите, где тут устанавливается срок жизни объектов, а то каждый раз при перезагруке удаляет по несколько тысяч объектов, а в логах пишет TCP_REFRESH_HIT. И можно еще что нить прописать что бы побольше кэшировал? # http_port 3128 icp_port 0

# htcp_port 4827

# tcp_outgoing_address 255.255.255.255

# udp_incoming_address 0.0.0.0

# udp_outgoing_address 255.255.255.255

# icp_query_timeout 0

# maximum_icp_query_timeout 2000

# mcast_icp_query_timeout 2000

# dead_peer_timeout 10 seconds hierarchy_stoplist cgi-bin ?

acl QUERY urlpath_regex cgi-bin \?

no_cache deny QUERY cache_mem 64 MB

# cache_swap_low 90

# cache_swap_high 95 maximum_object_size 32768 KB

# minimum_object_size 0 KB

# maximum_object_size_in_memory 16384 KB

# ipcache_size 1024

# ipcache_low 90

# ipcache_high 95

# fqdncache_size 1024

# replacement_policy GDSF

# memory_replacement_policy lru

cache_dir ufs /squid/var/cache 30000 32 256

cache_access_log /squid/var/logs/access.log

cache_log /squid/var/logs/cache.log

cache_store_log /squid/var/logs/store.log

# cache_swap_log.00

# cache_swap_log.01

# cache_swap_log.02

# emulate_httpd_log off

# log_ip_on_direct on

# mime_table /etc/squid/mime.conf

# log_mime_hdrs off

pid_filename /squid/var/logs/squid.pid

# debug_options ALL,1

# log_fqdn off

# client_netmask 255.255.255.255 ftp_user anonymous@

# ftp_list_width 32 ftp_passive on

# ftp_sanitycheck on

# cache_dns_program /squid/libexec/

# dns_children 5

# dns_retransmit_interval 5 seconds

# dns_timeout 5 minutes

# dns_defnames off

# diskd_program /squid/libexec/diskd

# unlinkd_program /squid/libexec/unlinkd

# pinger_program /squid/libexec/

# redirect_children 5 redirect_rewrites_host_header off

# authenticate_children 5

# authenticate_ttl 1 hour

# authenticate_ip_ttl 0 seconds

# authenticate_ip_ttl_is_strict on

# wais_relay_port 0

# request_header_max_size 1638400 KB

# request_body_max_size 100 MB

# reply_body_max_size 0

refresh_pattern ^ftp: 1440 20% 10080

refresh_pattern ^gopher: 1440 0% 1440

refresh_pattern . 0 20% 4320

# reference_age 1 year

# quick_abort_min 1024 KB

# quick_abort_max 16 KB

# quick_abort_pct 95

negative_ttl 5 minutes

positive_dns_ttl 720 hours

# negative_dns_ttl 5 minutes

range_offset_limit 2 KB

connect_timeout 2 minutes

peer_connect_timeout 120 seconds

# siteselect_timeout 4 seconds

read_timeout 15 minutes request_timeout 120 seconds

client_lifetime 1 day

# half_closed_clients on

# pconn_timeout 120 seconds

# ident_timeout 10 seconds

# shutdown_lifetime 30 seconds

# acl myexample dst_as 1241

# acl password proxy_auth REQUIRED

# acl fileupload req_mime_type -i ^multipart/form-data$

acl all src 0.0.0.0/0.0.0.0 acl set src 192.168.0.1-192.168.0.128

acl manager proto cache_object acl localhost src 127.0.0.1/255.255.255.255

acl SSL_ports port 443 563 5190 15100 15101 1090 1080

acl Safe_ports port 80 acl Safe_ports port 21 acl Safe_ports port 443 563 acl Safe_ports port 70 acl Safe_ports port 210 acl Safe_ports port 1025-65535 acl Safe_ports port 280 acl Safe_ports port 488 acl Safe_ports port 591 acl Safe_ports port 777 acl CONNECT method CONNECT http_access allow all

http_access allow set http_access allow manager localhost

http_access deny manager http_access deny !Safe_ports

http_access deny CONNECT !SSL_ports http_access deny all

# icp_access deny all

# icp_access allow all

# miss_access allow all

# proxy_auth_realm Squid proxy-caching web server

# ident_lookup_access deny all cache_mgr root

# cache_effective_user nobody

# cache_effective_group nogroup visible_hostname stream

# announce_period 0

# announce_host tracker.ircache.net

# announce_port 3131 httpd_accel_host 213.59.235.78

httpd_accel_port 80

# httpd_accel_single_host off httpd_accel_with_proxy on httpd_accel_uses_host_header on

# logfile_rotate 10

# append_domain .yourdomain.com

# tcp_recv_bufsize 0 bytes

# memory_pools on forwarded_for on

# log_icp_queries on

# icp_hit_stale off

# minimum_direct_hops 4

# minimum_direct_rtt 400

# cachemgr_passwd secret shutdown

# cachemgr_passwd lesssssssecret info stats/objects

# cachemgr_passwd disable all store_avg_object_size 65535 KB

# store_objects_per_bucket 20

# client_db on

# netdb_low 900

# netdb_high 1000

# netdb_ping_period 5 minutes

# query_icmp off

# test_reachability off

# buffered_logs off

# reload_into_ims off

# acl local-servers dstdomain xxx.xxx.xxx.xxx

# always_direct allow local-servers

# acl local-servers1 dstdomain www.xxxxxx.ru

# always_direct allow local-servers1

icon_directory /squid/share/ icons error_directory /squid/share/errors/Russian-koi8-r

# minimum_retry_timeout 5 seconds

# maximum_single_addr_tries 3

# snmp_port 3401

# snmp_access allow snmppublic localhost

# snmp_access deny all

# snmp_access deny all

# snmp_incoming_address 0.0.0.0

# snmp_outgoing_address 255.255.255.255

# as_whois_server whois.ra.net

# as_whois_server whois.ra.net

# wccp_router 0.0.0.0

# wccp_version 4

# wccp_incoming_address 0.0.0.0

# wccp_outgoing_address 255.255.255.255

# delay_pools 3

# delay_pools 2 # 2 delay pools

# delay_class 1 2 # pool 1 is a class 2 pool

# delay_class 2 3 # pool 2 is a class 3 pool

# delay_access 1 allow some_big_clients

# delay_access 1 deny all

# delay_access 2 allow lotsa_little_clients

# delay_access 2 deny all

# delay_parameters pool aggregate

# delay_parameters pool aggregate individual

# delay_parameters pool aggregate network individual

# delay_parameters 1 -1/-1 8000/8000

# delay_parameters 2 32000/32000 8000/8000 600/64000

# delay_initial_bucket_level 50

# incoming_icp_average 6

# incoming_http_average 4

# incoming_dns_average 4

# min_icp_poll_cnt 8

# min_dns_poll_cnt 8

# min_http_poll_cnt 8

# max_open_disk_fds 0 offline_mode off

# uri_whitespace strip

# acl buggy_server url_regex ^http://....

# broken_posts allow buggy_server

# mcast_miss_addr 255.255.255.255

# mcast_miss_ttl 16

# mcast_miss_port 3135

# mcast_miss_encode_key XXXXXXXXXXXXXXXX

# nonhierarchical_direct on

# prefer_direct off

# strip_query_terms on

# redirector_bypass off

# ignore_unknown_nameservers on

# digest_generation on

# digest_bits_per_entry 5

# digest_rebuild_period 1 hour

# digest_rewrite_period 1 hour

# digest_swapout_chunk_size 4096 bytes

# digest_rebuild_chunk_percentage 10

# client_persistent_connections on

# server_persistent_connections on

# pipeline_prefetch on

# high_response_time_warning 0

# high_page_fault_warning 0

# high_memory_warning 0

# store_dir_select_algorithm least-load

# ie_refresh off

anonymous

Обрати взор на refresh_pattern.

anonymous
()

А что с ним не так? И чего написать туда надобно?

anonymous
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.