ache squid
Post on 06-Apr-2018
220 Views
Preview:
TRANSCRIPT
-
8/3/2019 Ache Squid
1/4
Segue abaixo um modelo dos arquivos de configurao.squid1.conf
http_port 33127snmp_port 3400pid_filename /var/run/squid0.pidcache_log /var/log/squid/cache0.logvisible_hostname cache.aloo.com.brhierarchy_stoplist cgi-bin ?acl QUERY urlpath_regex cgi-bin \?no_cache deny QUERYcache_mem 225 MBmaximum_object_size 20480 KBminimum_object_size 0 KBmaximum_object_size_in_memory 8 KBipcache_size 4096fqdncache_size 4096# opcoes de cachecache_replacement_policy heap LFUDAmemory_replacement_policy lru
cache_dir diskd /var/cache1 8192 16 256# logscache_access_log nonecache_store_log none#emulate_httpd_log onftp_user anonymoushosts_file /etc/hostsrequest_header_max_size 20 KBrefresh_pattern ^ftp: 1440 20% 10080refresh_pattern ^gopher: 1440 0% 1440refresh_pattern . 0 20% 4320half_closed_clients off# configuracoes de aclacl all src 0.0.0.0/0.0.0.0acl public_aloo snmp_community publicacl hotmail_domains dstdomain .hotmail.msn.comacl ie6 browser MSIE[[:space:]]6http_access allow allmiss_access allow allsnmp_access allow public_aloo allheader_access Accept-Encoding deny ie6 hotmail_domainscache_mgr japaeye4u@hotmail.comcache_effective_user squidcache_effective_group squid
httpd_accel_host virtualhttpd_accel_port 80httpd_accel_single_host offhttpd_accel_with_proxy onhttpd_accel_uses_host_header onlogfile_rotate 10memory_pools offmemory_pools_limit 0coredump_dir /var/spool/squid# opcoes de dnsdns_retransmit_interval 5 secondsdns_timeout 2 minutes# negacao miss accessacl irmaos src 127.0.0.0/255.0.0.0miss_access deny irmaos# opcoes de hierarquia
-
8/3/2019 Ache Squid
2/4
icp_port 3129icp_access allow all# cache irmaoscache_peer 127.0.0.1 sibling 33128 3130 proxy-onlycache_peer 127.0.0.1 sibling 33129 3131 proxy-only
squid2.confhttp_port 33128snmp_port 3401pid_filename /var/run/squid1.pidcache_log /var/log/squid/cache1.logvisible_hostname cache.aloo.com.brhierarchy_stoplist cgi-bin ?acl QUERY urlpath_regex cgi-bin \?no_cache deny QUERYcache_mem 225 MBmaximum_object_size 20480 KBminimum_object_size 0 KBmaximum_object_size_in_memory 8 KBipcache_size 4096
fqdncache_size 4096# opcoes de cachecache_replacement_policy heap LFUDAmemory_replacement_policy lrucache_dir diskd /var/cache2 8192 16 256cache_dir diskd /var/cache3 8192 16 256# logscache_access_log nonecache_store_log none#emulate_httpd_log onftp_user anonymoushosts_file /etc/hostsrequest_header_max_size 20 KBrefresh_pattern ^ftp: 1440 20% 10080refresh_pattern ^gopher: 1440 0% 1440refresh_pattern . 0 20% 4320half_closed_clients off# configuracoes de aclacl all src 0.0.0.0/0.0.0.0acl public_aloo snmp_community publicacl hotmail_domains dstdomain .hotmail.msn.comacl ie6 browser MSIE[[:space:]]6http_access allow allmiss_access allow allsnmp_access allow public_aloo allheader_access Accept-Encoding deny ie6 hotmail_domainscache_mgr japaeye4u@hotmail.comcache_effective_user squidcache_effective_group squidhttpd_accel_host virtualhttpd_accel_port 80httpd_accel_single_host offhttpd_accel_with_proxy onhttpd_accel_uses_host_header onlogfile_rotate 10memory_pools offmemory_pools_limit 0coredump_dir /var/spool/squid# opcoes de dnsdns_retransmit_interval 5 seconds
-
8/3/2019 Ache Squid
3/4
dns_timeout 2 minutes# negacao miss accessacl irmaos src 127.0.0.0/255.0.0.0miss_access deny irmaos# opcoes de hierarquiaicp_port 3130icp_access allow all# cache irmaoscache_peer 127.0.0.1 sibling 33127 3129 proxy-onlycache_peer 127.0.0.1 sibling 33129 3131 proxy-only
squid3.confhttp_port 33129snmp_port 3402pid_filename /var/run/squid2.pidcache_log /var/log/squid/cache2.logvisible_hostname cache.aloo.com.brhierarchy_stoplist cgi-bin ?acl QUERY urlpath_regex cgi-bin \?no_cache deny QUERY
cache_mem 150 MBmaximum_object_size 20480 KBminimum_object_size 0 KBmaximum_object_size_in_memory 8 KBipcache_size 4096fqdncache_size 4096# opcoes de cachecache_replacement_policy heap LFUDAmemory_replacement_policy lrucache_dir diskd /var/cache4 8192 16 256cache_dir diskd /var/cache5 8192 16 256# logscache_access_log nonecache_store_log none#emulate_httpd_log onftp_user anonymoushosts_file /etc/hostsrequest_header_max_size 20 KBrefresh_pattern ^ftp: 1440 20% 10080refresh_pattern ^gopher: 1440 0% 1440refresh_pattern . 0 20% 4320half_closed_clients off# configuracoes de aclacl all src 0.0.0.0/0.0.0.0acl public_aloo snmp_community publicacl hotmail_domains dstdomain .hotmail.msn.comacl ie6 browser MSIE[[:space:]]6http_access allow allmiss_access allow allsnmp_access allow public_aloo allheader_access Accept-Encoding deny ie6 hotmail_domainscache_mgr japaeye4u@hotmail.comcache_effective_user squidcache_effective_group squidhttpd_accel_host virtualhttpd_accel_port 80httpd_accel_single_host offhttpd_accel_with_proxy onhttpd_accel_uses_host_header onlogfile_rotate 10
-
8/3/2019 Ache Squid
4/4
memory_pools offmemory_pools_limit 0coredump_dir /var/spool/squid# opcoes de dnsdns_retransmit_interval 5 secondsdns_timeout 2 minutes# negacao miss accessacl irmaos src 127.0.0.0/255.0.0.0miss_access deny irmaos# opcoes de hierarquiaicp_port 3131icp_access allow all# cache irmaoscache_peer 127.0.0.1 sibling 33127 3129 proxy-onlycache_peer 127.0.0.1 sibling 33128 3130 proxy-only
Ainda pode melhorar o desempenho do squid, instalando um dns local, fazendo cache dns tambm. Para um servio como esse de alto desempenho, altamente recomendado.Fora isso, tem aqueles ajustes finos no kernel e um firewall ajustado para o servidor.
Estou fazendo varios ajustes para acertar um bom desempenho. J que no posso ter varias maquinas, vamos ver at onde esta vai aguentar.Assim que tiver mais informaes vou adicionar aqui.
top related