[squid-users] Squid 6.6 cache_dir rock questions

Alex Rousskov rousskov at measurement-factory.com
Thu Jul 18 13:24:28 UTC 2024


On 2024-07-18 00:33, Jonathan Lee wrote:

> What would be the correct way to convert cache_dir disks to rock?

One cannot convert a cache_dir of another type to rock cache_dir. You 
will need to start from scratch, using a rock-dedicated cache_dir path 
(initialized by running "squid -z" after updating squid.conf). If you 
want to reuse the same path, then move or remove the old/diskd contents 
first.


> cache_dir diskd /var/squid/cache 64000 256 256
> 
> Would it be as simple as..
> 
> cache_dir rock /var/squid/cache 64000 256 256?

See cache_dir directive in squid.conf.documented; diskd and rock 
cache_dirs have _different_ configuration syntax because rock cache_dirs 
do not have/need L1 and L2 parameters required for diskd cache_dirs:

     cache_dir diskd Directory-Name Mbytes L1 L2 [options]
     cache_dir rock Directory-Name Mbytes [options]

HTH,

Alex.



More information about the squid-users mailing list