0

I have found that i need to add another server to my setup but my web application is designed with php. Basically, in my application, there is a mkdir command that makes a directory for the user. If i have a load balancer then the load balancer might not send the request to the server that originally created the directory. What is a solution to this? I want to use haproxy and apache. I was thinking that there could be some way to assign a request to a specific server that they would be directed to every time they access the application.

1 Answer 1

2

The "easiest" way is to have an additional server that acts as a file server. This way, both web servers can map the same directory and share the folder(s) required. Two file servers are recommended for redundancy purposes.

3
  • I thought about this, but what would i do when the file server reaches capacity? How could i make so that if i needed to, i could add space on the file server without effecting any information already on it? Jul 24, 2013 at 1:14
  • Bigger disks? You'd really need to think about capacity planning.
    – Nathan C
    Jul 24, 2013 at 1:21
  • or a distributed file system, like gluster.
    – pauska
    Jul 24, 2013 at 9:41

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .