Forum Moderators: bakedjake

Message Too Old, No Replies

Tweaking NFS on RedHat

I am going to distribute my content via NFS to my servers

         

pontifex

8:05 pm on Oct 11, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi there,

next week I am about to setup a new server configuration, using Red Hat and mounting a central server via NFS to 2 different webservers.

I got the basic exports, mount, portmap stuff under control (I guess), but I want to go for maximum performance on the clients.

Does anyone here know, how to config (and tune) the caching for NFS mounted devices? I basically got a lot of static files, which do not change often, but just really a lot of them (apprx. 450,000). The sizes vary from 4KB to 5MB. For the clients I would like to run a local cache to lower network usage.

Any comments, hints and tips are welcome! Searching for that on the net does not really help...

Thanks,
P!

DamonHD

8:23 pm on Nov 3, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi,

Just for a start export the filesystems (and mount them) read-only.

It is much more secure, and faster for client and server as no access timestamps need updating. And cacheing should improve to boot.

I have found RH to be fairly weak on NFS over the years, BTW.

Rgds

Damon

mack

7:11 pm on Nov 4, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



I'm no expert with this sort of thing but would rsync be an option as opposed to nfs?

If your content is mainly static and doesnt change often you could just run rsyc when you make changes and the changed will export as an incriment to the client servers. Using this method you could have one master server and two cient servers and in effect three way load ballencing.

Problem I see with using nfs for this is is the central server was to go down the nfs mount points would be missing and no content could be shown. With rsync the content is phsicaly located on all servers, as opposed to referenced.

Mack.

DamonHD

4:22 pm on Nov 5, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi,

Yes, indeed, you should have local copies of files you intend to serve, if at all possible, for speed and reliability.

Rsync is likely to be more secure and efficient than NFS.

Rgds

Damon