<html><head></head><body><div class="ydp2aa78d3fyahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><span><div style="font-size: small; color: rgb(34, 34, 34); font-family: Arial, Helvetica, sans-serif;">Hello,</div><div style="font-size: small; color: rgb(34, 34, 34); font-family: Arial, Helvetica, sans-serif;">Sorry if this question has already been posted ( I can't check as the "Search Function" is currently not working )</div><div style="font-size: small; color: rgb(34, 34, 34); font-family: Arial, Helvetica, sans-serif;">I'm running squid-3.5.20 on Amazon Linux 2018.03. 2 cores with 8 GB</div><div style="font-size: small; color: rgb(34, 34, 34); font-family: Arial, Helvetica, sans-serif;">My squid is currently working but only on 1 core.</div><div style="font-size: small; color: rgb(34, 34, 34); font-family: Arial, Helvetica, sans-serif;">I which to use the 2 cores. I understood that I have to use workers in squid.conf with separate cache directory. </div><div style="font-size: small; color: rgb(34, 34, 34); font-family: Arial, Helvetica, sans-serif;">So I modified default squid.conf with :</div><div style="font-size: small; color: rgb(34, 34, 34); font-family: Arial, Helvetica, sans-serif;">---</div><div style="font-size: small; color: rgb(34, 34, 34); font-family: Arial, Helvetica, sans-serif;"><div> <span><div>[root@JujuServerTest2 ~]# egrep -v "^#|^$" /etc/squid/squid.conf</div><div>acl localnet src 10.0.0.0/8 # RFC1918 possible internal network</div><div>acl localnet src 172.16.0.0/12 # RFC1918 possible internal network</div><div>acl localnet src 192.168.0.0/16 # RFC1918 possible internal network</div><div>acl localnet src fc00::/7 # RFC 4193 local private network range</div><div>acl localnet src fe80::/10 # RFC 4291 link-local (directly plugged) machines</div><div>acl SSL_ports port 443</div><div>acl Safe_ports port 80 # http</div><div>acl Safe_ports port 21 # ftp</div><div>acl Safe_ports port 443 # https</div><div>acl Safe_ports port 70 # gopher</div><div>acl Safe_ports port 210 # wais</div><div>acl Safe_ports port 1025-65535 # unregistered ports</div><div>acl Safe_ports port 280 # http-mgmt</div><div>acl Safe_ports port 488 # gss-http</div><div>acl Safe_ports port 591 # filemaker</div><div>acl Safe_ports port 777 # multiling http</div><div>acl CONNECT method CONNECT</div><div>http_access deny !Safe_ports</div><div>http_access deny CONNECT !SSL_ports</div><div>http_access allow localhost manager</div><div>http_access deny manager</div><div>http_access allow localnet</div><div>http_access allow localhost</div><div>http_access deny all</div><div>http_port 3128</div><div>workers 2</div><div>if ${process_number} = 1</div><div>cache_dir rock /var/spool/squid1 1024</div><div>endif</div><div>if ${process_number} = 2</div><div>cache_dir rock /var/spool/squid2 1024</div><div>endif</div><div>coredump_dir /var/spool/squid</div><div>refresh_pattern ^ftp: 1440 20% 10080</div><div>refresh_pattern ^gopher: 1440 0% 1440</div><div>refresh_pattern -i (/cgi-bin/|\?) 0 0% 0</div><div>refresh_pattern . 0 20% 4320</div><div>[root@JujuServerTest2 ~]#</div></span><br></div><div>---</div><div>but</div><div>/var/log/squid/squid.out :<br></div><div>[...]</div><div><span><div>2018/10/10 13:52:15 kid2| Set Current Directory to /var/spool/squid</div><div>2018/10/10 13:52:15 kid2| Creating missing swap directories</div><div>2018/10/10 13:52:15 kid1| Set Current Directory to /var/spool/squid</div><div>2018/10/10 13:52:15 kid1| Creating missing swap directories</div><div>2018/10/10 13:52:15 kid3| Set Current Directory to /var/spool/squid</div><div>2018/10/10 13:52:15 kid3| Creating missing swap directories</div><div>2018/10/10 13:52:15 kid3| No cache_dir stores are configured.</div><div><span><div>2018/10/10 13:52:15 kid3| Set Current Directory to /var/spool/squid</div><div>2018/10/10 13:52:15 kid2| Set Current Directory to /var/spool/squid</div><div>2018/10/10 13:52:15 kid1| Set Current Directory to /var/spool/squid</div><div>2018/10/10 13:52:15 kid2| Creating missing swap directories</div><div>2018/10/10 13:52:15 kid1| Creating missing swap directories</div><div>2018/10/10 13:52:15 kid3| Creating missing swap directories</div><div>2018/10/10 13:52:15 kid3| No cache_dir stores are configured <span><span style="color: rgb(34, 34, 34); font-family: Arial, Helvetica, sans-serif; font-size: small;"> <------</span></span></div><div>---</div><div><span><div>ps faux |grep squid</div><div>root 4172 0.0 0.1 110512 2012 pts/1 S+ 14:00 0:00 \_ grep --color=auto squid</div><div>root 4133 0.0 0.6 346844 6848 ? Ss 13:52 0:00 squid -f /etc/squid/squid.conf</div><div>squid 4136 0.0 2.1 359828 21292 ? S 13:52 0:00 \_ (squid-coord-3) -f /etc/squid/squid.conf</div><div>squid 4140 0.0 0.1 28004 1892 ? S 13:52 0:00 \_ (logfile-daemon) /var/log/squid/access.log</div><div><br></div></span><br></div></span></div></span></div><div><br></div><div>Looks like, my configuration is not good because "No cache_dir stores are configured"</div><div>Coud you tell me where is my mistake ? </div><div><br></div><div>Thank you very much.</div></div></span></div></body></html>