We have multiple web heads running our Magento instance and previously have used NFS to share directories such as pub/media var/log var/report etc. We have an NFS mount on a shared server to a single NFS mount point on each web head with pub and var. For each deployment we symlink the newly deployed directories of var/log and var/report to the shared directory var/log and var/report which works fine however:
I have noticed that there are files in the application root var directory such as *.pid files and .lock files which makes me think that we should be sharing the entire var directory via NFS not just var/log and var/report. Sure this is easy to do to change my nfs mount and symlinks but as soon as I do var/view_preprocessed stops working unless the Magento setting of "Allow Symlinks" is enabled. If I enable this setting everything works as intended and the var directory is shared without issues however the "Allow Symlinks" setting is not a production recommended setting for security reasons.
So in short my question is should these .pid files be shared across web heads and if so what is the best approach to doing so so that all web heads can be in sync while not compromising security by enabling "Allow Symlinks"?
from Active questions tagged magento-enterprise - Magento Stack Exchange