On Fri, 20 Aug 2004, Matt Sergeant wrote:
As far as linux -> nfs access goes it all depends on the quality of the NFS implementation, and the kernel drivers you're using. It's not easy to create a stable NFS locking system. We've had lots of problems with it. If you can, go with local disk.
i cannot - the system is a priority queue system where the queue db is accessed via around 30 nodes. i am wrapping any code that will grab a write lock with an nfs safe lockfile creation to ensure only one process on the system will even ask for write locks at a time. this, suprisingly, also gives a massive performance boost as my timeout algorithim seems to be much better than the one in lockd. if you are interested check out
http://raa.ruby-lang.org/project/lockfile/
it includes both an ruby api and a command line tool to it useful even from other programs. (download site is down at the moment however - should be up tomorrow). it has been tested very extensively and no bugs have yet been found.
anyhow, i'm very interested to hear what sort of locking issues you've had - our system has been working fine for months but it does make me nervous. any information you could provide regarding issues would be most apprecicated!
kind regards.
-a
--
===============================================================================
| EMAIL :: Ara [dot] T [dot] Howard [at] noaa [dot] gov
| PHONE :: 303.497.6469
| A flower falls, even though we love it;
| and a weed grows, even though we do not love it. | --Dogen
===============================================================================