23 Mar 2011 20:19:25 UTC
- Distribution: IPC-ConcurrencyLimit-Lock-NFS
- Module version: 0.01
- Source (raw)
- Browse (raw)
- How to Contribute
- Testers (830 / 0 / 0)
- KwaliteeBus factor: 0
- 92.21% Coverage
- License: unknown
- Activity24 month
- Download (3.71KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionSMUELLER Steffen Müller
IPC::ConcurrencyLimit::Lock::NFS - Locking via NFS
This locking strategy uses File::SharedNFSLock to implement locking on NFS shares across multiple hosts. The locking technique employed by
File::SharedNFSLockshould work on other, local file systems as well. If in doubt, do your own testing.
Beware: If processes are killed harshly without being able to clean up, stale lock files may remain that are not recoverable. In principle,
File::SharedNFSLockcan reclaim them after a timeout, but that feature does not seem to make a lot of sense in this context. All
Given a hash ref with options, attempts to obtain a lock in the pool. On success, returns the lock object, otherwise undef.
The directory that will hold the lock files. Created if it does not exist. It is suggested not to use a directory that may hold other data.
The maximum no. of locks (and thus usually processes) to allow at one time.
Returns the full path and name of the lock file.
Returns the directory in which the lock files resides.
(C) 2011 Steffen Mueller. All rights reserved. This code is available under the same license as Perl version 5.8.1 or higher. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Module Install Instructions
To install IPC::ConcurrencyLimit::Lock::NFS, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install IPC::ConcurrencyLimit::Lock::NFS
For more information on module installation, please visit the detailed CPAN module installation guide.