Search squid archive

SMP mode, workers, cache_dir with conditional

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,
Sorry if this question has already been posted ( I can't check as the "Search Function" is currently not working )
I'm running squid-3.5.20 on Amazon Linux 2018.03. 2 cores with 8 GB
My squid is currently working but only on 1 core.
I which to use the 2 cores. I understood that I have to use workers in squid.conf with separate cache directory. 
So I modified default  squid.conf  with :
---
[root@JujuServerTest2 ~]# egrep -v "^#|^$" /etc/squid/squid.conf
acl localnet src 10.0.0.0/8     # RFC1918 possible internal network
acl localnet src 172.16.0.0/12  # RFC1918 possible internal network
acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
acl localnet src fc00::/7       # RFC 4193 local private network range
acl localnet src fe80::/10      # RFC 4291 link-local (directly plugged) machines
acl SSL_ports port 443
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 CONNECT method CONNECT
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost manager
http_access deny manager
http_access allow localnet
http_access allow localhost
http_access deny all
http_port 3128
workers 2
if ${process_number} = 1
cache_dir rock /var/spool/squid1 1024
endif
if ${process_number} = 2
cache_dir rock /var/spool/squid2 1024
endif
coredump_dir /var/spool/squid
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
[root@JujuServerTest2 ~]#

---
but
/var/log/squid/squid.out :
[...]
2018/10/10 13:52:15 kid2| Set Current Directory to /var/spool/squid
2018/10/10 13:52:15 kid2| Creating missing swap directories
2018/10/10 13:52:15 kid1| Set Current Directory to /var/spool/squid
2018/10/10 13:52:15 kid1| Creating missing swap directories
2018/10/10 13:52:15 kid3| Set Current Directory to /var/spool/squid
2018/10/10 13:52:15 kid3| Creating missing swap directories
2018/10/10 13:52:15 kid3| No cache_dir stores are configured.
2018/10/10 13:52:15 kid3| Set Current Directory to /var/spool/squid
2018/10/10 13:52:15 kid2| Set Current Directory to /var/spool/squid
2018/10/10 13:52:15 kid1| Set Current Directory to /var/spool/squid
2018/10/10 13:52:15 kid2| Creating missing swap directories
2018/10/10 13:52:15 kid1| Creating missing swap directories
2018/10/10 13:52:15 kid3| Creating missing swap directories
2018/10/10 13:52:15 kid3| No cache_dir stores are configured    <------
---
ps faux |grep squid
root      4172  0.0  0.1 110512  2012 pts/1    S+   14:00   0:00                          \_ grep --color=auto squid
root      4133  0.0  0.6 346844  6848 ?        Ss   13:52   0:00 squid -f /etc/squid/squid.conf
squid     4136  0.0  2.1 359828 21292 ?        S    13:52   0:00  \_ (squid-coord-3) -f /etc/squid/squid.conf
squid     4140  0.0  0.1  28004  1892 ?        S    13:52   0:00      \_ (logfile-daemon) /var/log/squid/access.log



Looks like, my configuration is not good because "No cache_dir stores are configured"
Coud you tell me where is my mistake ? 

Thank you very much.
_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux