This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

HTTP Proxie Size Limit

Does the Size of the cache get limited so that old data is pushed out at a uper size limit? Is there a way to set the upper limit of how big the cache can grow? What is the default size limit (If there is one) out of the box?


This thread was automatically locked due to age.
Parents
  • jzkkn5,

    as far as I know there is no general fixed limit - it depends on the partition size.

    Mine is set to 1,858 GB - open /var/chroot-squid/etc/squid.conf and search for 'cache_dir', refer also to the squid documentation, it states:

    [ QUOTE ]
    Where to Store Cached Data

    Cached Data has to be kept somewhere. In the section on hardware sizing, we discussed the size and number of drives to use for caching. Squid cannot autodetect where to store this data, though, so you need to let Squid know which directories it can use for data storage.

    The cache_dir operator in the squid.conf file is used to configure specific storage areas. If you use more than one disk for cached data, you may need more than one mount point (for example /usr/local/squid/cache1 for the first disk, /usr/local/squid/cache2 for the second). Squid allows you to have more than one cache_dir option in your config file.

    Let's consider only one cache_dir entry in the meantime. Here I am using the default values from the standard squid.conf.

        cache_dir /usr/local/squid/cache/ 100 16 256 

    The first option to the cache_dir tag sets the directory where data will be stored. The prefix value simply has /cache/ tagged onto the end and it's used as the default directory. This directory is also made by the make install command that we used earlier.

    The next option to cache_dir is straight forward: it's a size value. Squid will store up to that amount of data in that directory. The value is in megabytes, so of the cache store. The default is 100 megabytes.

    The other two options are more complex: they set the number of subdirectories (first and second tier) to create in this directory. Squid makes lots of directories and stores a few files in each of them in an attempt to speed up disk access (finding the correct entry in a directory with one million files in it is not efficient: it's better to split the files up into lots of smaller sets of files... don't worry too much about this for the moment). I suggest that you use the default values for these options in the mean time: if you have a very large cache store you may want to increase these values, but this is covered in the section on 

    [/ QUOTE ]

    Greetings
    cyclops
Reply
  • jzkkn5,

    as far as I know there is no general fixed limit - it depends on the partition size.

    Mine is set to 1,858 GB - open /var/chroot-squid/etc/squid.conf and search for 'cache_dir', refer also to the squid documentation, it states:

    [ QUOTE ]
    Where to Store Cached Data

    Cached Data has to be kept somewhere. In the section on hardware sizing, we discussed the size and number of drives to use for caching. Squid cannot autodetect where to store this data, though, so you need to let Squid know which directories it can use for data storage.

    The cache_dir operator in the squid.conf file is used to configure specific storage areas. If you use more than one disk for cached data, you may need more than one mount point (for example /usr/local/squid/cache1 for the first disk, /usr/local/squid/cache2 for the second). Squid allows you to have more than one cache_dir option in your config file.

    Let's consider only one cache_dir entry in the meantime. Here I am using the default values from the standard squid.conf.

        cache_dir /usr/local/squid/cache/ 100 16 256 

    The first option to the cache_dir tag sets the directory where data will be stored. The prefix value simply has /cache/ tagged onto the end and it's used as the default directory. This directory is also made by the make install command that we used earlier.

    The next option to cache_dir is straight forward: it's a size value. Squid will store up to that amount of data in that directory. The value is in megabytes, so of the cache store. The default is 100 megabytes.

    The other two options are more complex: they set the number of subdirectories (first and second tier) to create in this directory. Squid makes lots of directories and stores a few files in each of them in an attempt to speed up disk access (finding the correct entry in a directory with one million files in it is not efficient: it's better to split the files up into lots of smaller sets of files... don't worry too much about this for the moment). I suggest that you use the default values for these options in the mean time: if you have a very large cache store you may want to increase these values, but this is covered in the section on 

    [/ QUOTE ]

    Greetings
    cyclops
Children
No Data