Less known Solaris Features: CacheFS - Part 6: A usecase for CacheFS
Let´s take an example: Let´s assume you have 50 webservers that serve static content or that serves and executes
.php files. You may have used scp or rsync to syncronize all this servers.
With CacheFS the workflow is a little bit different: You simply put all you files on a fileserver. But you have noticed, that there was a large load on this system. To reduce load to the fileserver you use your new knowledge to create a cache on every server. After this you saw a lot of requests for directory and file metadata for the documents directory. You know that this directory is provisioned with the changes only at 3 o´clock in the morning. Thus you write a little script, that checks for the file
please_check_me and starts
cfsadmin -s all on the client in the case of it´s existence and it will check at the next access to the files if there´s a newer version.