Monitoring using mmpmon
You can use mmpmon to monitor AFM to cloud object storage.
Complete the following steps to enable the Performance Monitoring tool and query data.
- To reset some statistics on a gateway
node.
# echo "afm_s reset" | mmpmon # echo "afm_s fset all" | mmpmon
- Reset all statistics.
# mmfsadm afm resetall
- Check the
statistics.
# echo afm_s | mmpmon -s -r 0 -d 2000
This command shows statistics from the time the gateway is functioning. Every gateway recycle resets the statistics.
The following example is from a gateway node. The example shows how many operations of each type
were run on the gateway
node.
~# echo afm_s | mmpmon
mmpmon> mmpmon node 192.168.2.20 name c2m3n10 afm_s s OK
Name Queued Inflight Completed Errors Filtered ENOENT
lookup 0 0 1 0 0 0
create 0 0 20 0 10 0
remove 0 0 0 0 10 0
open 0 0 2 0 0 0
read 0 0 0 0 1 0
write 0 0 20 0 650 0
BytesWritten = 53320860 (50.85 MB) (26035.58 KB/s) BytesToWrite = 0 (0.00 KB)
Queue Delay (s) (min:0 max:19 avg:18)
Async Msgs (expire:50 force:0 sync:4 revoke:0)
NumMsgExecuted = 715
NumHomeconn = 292
NumHomedisc = 292
NumRPOMisses = 1
Where:- BytesWritten
- The amount of data that is synchronized to the home.
- BytesToWrite
- The amount of data in the queue.
- QueueDelay
- The maximum delay that is experienced by operations before sync to the home.
- NumMsgExecuted
- The number of operations that were run on the home.
- NumHomeconn
- The number of times when the home was reconnected after disconnection.
- NumHomedisc
- The number of times home disconnected.