Setting up a NFS
I posted on a different website asking about how to "share" files across servers. Basically what I want to do is have one server be the upload server for the public and then, once uploaded, the uploaded file will be sent to the storage server.
My first idea was to have a scp command which would send the file over, but then someone posted that by setting up a NFS (Network File System) across the two servers, the file can be placed in the remote server in a much more efficient fashion (since this process will occur very often).
Alright, so is there anything I should watch out for? Does a network filesystem pose any danger? And does it drain the performance of the host server?
Basically what I want to do is have the remote (storage) server be the host (meaning that a specific section or so will be the shared to the upload server). Then once the file is uploaded, my php script will simply copy the uploaded file into the /mounted section (which is the network directory). Is this how it works?
I find this method of having the network setup very useful since: I do not have to setup apache or litehttp on the storage server, I do not have to setup PHP and any extensions (GD), and I do not have to worry about users being sent to the storage server's upload page. Also I can have all the image processing and resizing occur on the upload server and then once the final image is complete, it will be placed in the storage server.
Am I on the right track?
|