I am setting up a PHP application in 2 nodes and one DB server. Also setting cluster (with HaProxy) which will route traffic on least connections algorithm between both nodes.
The thing I am confused between is, how will I sync data of my applications? I do upload images on my applications daily, they are uploaded in local server only. (Please dont suggest to use CDN or something, strictly need to stick with local server)
Secondly, what about PHP sessions sync? How will that gonna work?
All this sync needs to be done in real time.
Questions is noob type, but I am new to all this cluster and nodes stuffs, your help will be appreciated.
Thanks