1MogileFS::IOStatWatcherU(s3e)r Contributed Perl DocumentaMtoigoinleFS::IOStatWatcher(3)
2
3
4
6 $iow = MogileFS::IOStatWatcher->new()
7 Returns a new IOStatWatcher object.
8
9 $iow->set_hosts( host1 [, host2 [, ...] ] )
10 Sets the list of hosts to connect to for collecting IOStat information.
11 This call can block if you pass it hostnames instead of ip addresses.
12
13 Upon successful connection, the on_stats callback will be called each
14 time the statistics are collected. Error states (failed connections,
15 etc.) will trigger retries on 60 second intervals, and disconnects will
16 trigger an immediate reconnect.
17
18 $iow->on_stats( coderef )
19 Sets the coderef called for the "on_stats" callback.
20
22 on_stats->( host, stats )
23 Called each time device use statistics are collected. The "host"
24 argument is the value passed in to the "set_hosts" method. The "stats"
25 object is a hashref of mogile device numbers (without leading "dev") to
26 their corresponding utilization percentages.
27
28
29
30perl v5.30.0 2019-07-26 MogileFS::IOStatWatcher(3)