Returns a new IOStatWatcher object.
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.
Sets the coderef called for the on_stats callback.
on_stats
Called each time device use statistics are collected. The host argument is the value passed in to the set_hosts method. The stats object is a hashref of mogile device numbers (without leading "dev") to their corresponding utilization percentages.
host
set_hosts
stats
To install MogileFS::Server, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MogileFS::Server
CPAN shell
perl -MCPAN -e shell install MogileFS::Server
For more information on module installation, please visit the detailed CPAN module installation guide.