Magento – Magento media folder and multiple web servers

mediaserver-setup

For all the Magento people running multiple web servers, how do you handle media folder?

  • NFS
  • each server has its own media folder and keep it in sync (lsyncd?)
  • other "smarter" fs (glusterfs)
  • other

Best Answer

NFS and nothing else for all our servers. Writes and reads are so very, very limited that there is no reason to use anything else. Varnish caches almost everything so activity over NFS is negligible.

Performance is quick, reliable and secure. No reason at all to use anything else.

In the past we've used deviations based around rsync - but only in odd circumstances where we felt NFS wasn't appropriate (geographically diverse servers).

There is absolutely no use case for Gluster or any other complex distributed file system. It shouldn't even be considered.

Related Topic