<p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">Hello, </span></p><p class="p2" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;min-height:20.3px;color:rgb(0,0,0)"><span class="s1"></span><br></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">I am trying to run a Squid proxy Server witth about 5000 cache peers. I am running a dedicated server with 6 cores and 32GB RAM on Ubuntu 16. </span></p><p class="p2" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;min-height:20.3px;color:rgb(0,0,0)"><span class="s1"></span><br></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">Could you tell me what else is needed / not needed in my squid.config? I am encountering a high CPU usage and would like to create a very efficient proxy server. </span></p><p class="p2" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;min-height:20.3px;color:rgb(0,0,0)"><span class="s1"></span><br></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">Down below you can find my squid.config(I deleted the other cache_peer lines):</span></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">-----------</span></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">http_port 3128</span></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">dns_v4_first on</span></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">acl SSL_ports port 1-65535</span></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">acl Safe_ports port 1-65535</span></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">acl CONNECT method CONNECT</span></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">http_access deny !Safe_ports</span></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">http_access deny CONNECT !SSL_ports</span></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">auth_param basic program /usr/lib/squid/basic_ncsa_auth /etc/squid/.htpasswd</span></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">auth_param basic children 5</span></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">auth_param basic realm Squid Basic Authentication</span></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">auth_param basic credentialsttl 5 hours</span></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">acl password proxy_auth REQUIRED</span></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">http_access allow password</span></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">#http_access deny all</span></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">cache allow all</span></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">never_direct allow all</span></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">ident_access deny all</span></p><p class="p2" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;min-height:20.3px;color:rgb(0,0,0)"><span class="s1"></span><br></p><p class="p2" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;min-height:20.3px;color:rgb(0,0,0)"><span class="s1"></span><br></p><p class="p2" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;min-height:20.3px;color:rgb(0,0,0)"><span class="s1"></span><br></p><p class="p2" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;min-height:20.3px;color:rgb(0,0,0)"><span class="s1"></span><br></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">cache_mem 1 GB</span></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">maximum_object_size_in_memory 16 MB</span></p><p class="p2" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;min-height:20.3px;color:rgb(0,0,0)"><span class="s1"></span><br></p><p class="p2" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;min-height:20.3px;color:rgb(0,0,0)"><span class="s1"></span><br></p><p class="p2" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;min-height:20.3px;color:rgb(0,0,0)"><span class="s1"></span><br></p><p class="p2" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;min-height:20.3px;color:rgb(0,0,0)"><span class="s1"></span><br></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1"># Leave coredumps in the first cache dir</span></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">coredump_dir /var/spool/squid</span></p><p class="p2" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;min-height:20.3px;color:rgb(0,0,0)"><span class="s1"></span><br></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">#Rules to anonymize http headers</span></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">forwarded_for off</span></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">request_header_access Allow allow all</span></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">request_header_access Authorization allow all</span></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">request_header_access WWW-Authenticate allow all</span></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">request_header_access Proxy-Authorization allow all</span></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">request_header_access Proxy-Authenticate allow all</span></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">request_header_access Cache-Control allow all</span></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">request_header_access Content-Encoding allow all</span></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">request_header_access Content-Length allow all</span></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">request_header_access Content-Type allow all</span></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">request_header_access Date allow all</span></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">request_header_access Expires allow all</span></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">request_header_access Host allow all</span></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">request_header_access If-Modified-Since allow all</span></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">request_header_access Last-Modified allow all</span></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">request_header_access Location allow all</span></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">request_header_access Pragma allow all</span></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">request_header_access Accept allow all</span></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">request_header_access Accept-Charset allow all</span></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">request_header_access Accept-Encoding allow all</span></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">request_header_access Accept-Language allow all</span></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">request_header_access Content-Language allow all</span></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">request_header_access Mime-Version allow all</span></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">request_header_access Retry-After allow all</span></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">request_header_access Title allow all</span></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">request_header_access Connection allow all</span></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">request_header_access Proxy-Connection allow all</span></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">request_header_access User-Agent allow all</span></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">request_header_access Cookie allow all</span></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">request_header_access All deny all</span></p><p class="p2" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;min-height:20.3px;color:rgb(0,0,0)"><span class="s1"></span><br></p><p class="p2" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;min-height:20.3px;color:rgb(0,0,0)"><span class="s1"></span><br></p><p class="p2" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;min-height:20.3px;color:rgb(0,0,0)"><span class="s1"></span><br></p><p class="p2" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;min-height:20.3px;color:rgb(0,0,0)"><span class="s1"></span><br></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">#</span></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1"># Add any of your own refresh_pattern entries above these.</span></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">#</span></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">#refresh_pattern ^ftp:           1440    20%     10080</span></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">#refresh_pattern ^gopher:        1440    0%      1440</span></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">#refresh_pattern -i (/cgi-bin/|\?) 0     0%      0</span></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">#refresh_pattern (Release|Packages(.gz)*)$      0       20%     2880</span></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">#refresh_pattern .               0       20%     4320</span></p><p class="p2" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;min-height:20.3px;color:rgb(0,0,0)"><span class="s1"></span><br></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">################################</span></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">acl me proxy_auth ye-1</span></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">cache_peer <a href="http://my.proxy.com/"><span class="s2">my.proxy.com</span></a> parent 31280 login=user1:password1 no-query name=a1</span></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">cache_peer_access a1 allow me</span></p><p class="p1" style="margin:0px;font-stretch:normal;font-size:17px;line-height:normal;color:rgb(0,0,0)"><span class="s1">cache_peer_access a1 deny all</span></p>