-
-
19 Jan 2018 21:43:02 UTC
- Distribution: MogileFS-Server
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues
- Testers (316 / 515 / 0)
- Kwalitee
Bus factor: 0- 19.50% Coverage
- License: unknown
- Activity
24 month- Tools
- Download (197.54KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- DBI
- Danga::Socket
- Getopt::Long
- IO::AIO
- MogileFS::Client
- Net::Netmask
- Perlbal
- Symbol
- Sys::Syscall
- Sys::Syslog
- Test::More
- fields
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
Methods
$iow = MogileFS::IOStatWatcher->new()
Returns a new IOStatWatcher object.
$iow->set_hosts( host1 [, host2 [, ...] ] )
Sets the list of hosts to connect to for collecting IOStat information. This call can block if you pass it hostnames instead of ip addresses.
Upon successful connection, the on_stats callback will be called each time the statistics are collected. Error states (failed connections, etc.) will trigger retries on 60 second intervals, and disconnects will trigger an immediate reconnect.
$iow->on_stats( coderef )
Sets the coderef called for the
on_stats
callback.Callbacks
on_stats->( host, stats )
Called each time device use statistics are collected. The
host
argument is the value passed in to theset_hosts
method. Thestats
object is a hashref of mogile device numbers (without leading "dev") to their corresponding utilization percentages.Module Install Instructions
To install MogileFS::Server, copy and paste the appropriate command in to your terminal.
cpanm MogileFS::Server
perl -MCPAN -e shell install MogileFS::Server
For more information on module installation, please visit the detailed CPAN module installation guide.