Report this

What is the reason for this report?

unison or Rsync for session files between servers in php app

Posted on July 26, 2015

In my cheap config I am using 2x app servers and 1x DB server.

My question now is what I should use in order to sync session files between the servers for my php app?

Is unison or Rsync good here, or is there something more light?

All systems are running Ubuntu.

Thanks in advance,



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

You could also use Glusterfs or another shared filesystem like an NFS. Unison or Rsync are great, but might be a bit slower.

Don’t use GlusterFS, Ceph , XtreemFS or anything similar if you do any writes to your file system. Data latency is a big issue with all of these solutions.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.