LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Load Balance NFS possible? (https://www.linuxquestions.org/questions/linux-general-1/load-balance-nfs-possible-557342/)

Swakoo 05-29-2007 12:15 AM

Load Balance NFS possible?
 
Is it possible to have a load-balanced solution for NFS?

I currently have 1 server for storing files for webusers to access... but with impeding increase in traffic, I wonder if it is possible to adopt a load balance solution?

acid_kewpie 05-29-2007 02:08 AM

depends what you call load balancing i guess, and also how the users come into the equation. the simplest way for real web users would probably just be a DNS round robin solution. if you have enough individual users and can resolve the server they go to to two different boxes then that *may* fit in well. other than that, check out the lvs project which can perform the load balancing generically. as a technology it's absolutely possible. i've not done it myself, but for simplicity if nothign else, you'd probably want to restrict NFS to use dedicated ports rather than relying on portmapper to do it for you. this would certanily make any troubleshooting about session persistence etc much easier.

t35t0r 04-19-2011 07:41 AM

Quote:

Originally Posted by Swakoo (Post 2766322)
Is it possible to have a load-balanced solution for NFS?

I currently have 1 server for storing files for webusers to access... but with impeding increase in traffic, I wonder if it is possible to adopt a load balance solution?

I haven't tried this but you could try using balance + NFS (http://www.inlab.de/balance.html). It's available in most distro repos. Maybe something like this assuming you're using tcp only NFS:

/usr/sbin/balance -f 2049 nfsServer1:2049 nfsServer2:2049 ...

or you could try nfs4 with pnfs

acid_kewpie 04-19-2011 08:08 AM

Quote:

Originally Posted by t35t0r (Post 4329216)
I haven't tried this but you could try using balance + NFS (http://www.inlab.de/balance.html). It's available in most distro repos. Maybe something like this assuming you're using tcp only NFS:

/usr/sbin/balance -f 2049 nfsServer1:2049 nfsServer2:2049 ...

or you could try nfs4 with pnfs

please don't drag up dead threads, there was no need to resurrect this and it can get very messy and confusing when people don't notice the original times of the post.


All times are GMT -5. The time now is 10:03 PM.