Hello,
We are having multiple servers serving our PHP based application in our production environment. We are using a load balancer to route the requests according the the server load.
The session stickiness options provided by the load balancer did not work properly for us. Hence we thought of using one of the following methods to share the PHP session info across servers:
NFS oriented : In this method we plan to mount (NFS mount) one of the folders of one system onto other servers. The shared file system will serve as session data repository for all the servers.
Database oriented : In this method the session repository is a table in a database. The session data is logged into the common table and all the servers would use the common table for storing the session. Hence the request can be routed to any system serving the application.
I would like to know which one of the above approaches would give us better performance.
Thanks in advance,
Vishwa