AFAIK, ATS requires disks to cache. So a solution for RAM only caching
would be RAMFS.

- Masaori

2016年2月16日(火) 15:28 Hiroaki Nakamura <[email protected]>:

> Hi All,
>
> I would like to set up hierarchical caches with RAM only children and
> disk only parents.
>
> Here is my setup as docker containers.
>
> https://github.com/hnakamur/ats-hierarchical-cache-experiment-docker/tree/ram_only_first_and_disk_only_second
>
> For the child server, I created the empty storage.config and set
> proxy.config.cache.ram_cache.size to 1048576 (1MB).
> However I got the following warning in the diags.log of the child cache.
>
> [Feb 16 05:55:25.535] Server {0x2ac07a601e40} WARNING: <Cache.cc:747
> (start_internal)> unable to open cache disk(s): Cache Disabled
>
>
> For the parent server, I set proxy.config.cache.ram_cache.size to 0.
>
> However, I got the following via response header for the 4th request.
>
> https://github.com/hnakamur/ats-hierarchical-cache-experiment-docker/blob/ram_only_first_and_disk_only_second/README.md
>
> Via: http/1.1 copr-builder-883070330.novalocal
> (ApacheTrafficServer/6.1.1 [uScRs f p eN:t cCHi p s ]), http/1.1
> copr-builder-883070330.novalocal (ApacheTrafficServer/6.1.1 [uScMsSf
> pSeN:t cCMi pSs ])
>
> The left value (the parent cache) before the comma has c
> (cache-lookup) value "R", which is RAM hit.
> I don't know why a RAM hit occurs when I set
> proxy.config.cache.ram_cache.size to 0.
>
>
> How can I set up RAM only children and disk only parents?
> Is it possible?
>
> Best regards,
> Hioraki
>

Reply via email to