Gathers node metrics.
The mrdiagnostics utility collects
metrics on the node on which it is run. Metrics include IO statistics, network
throughput, CPU performance, memory consumption, swap space usage, disk usage, disk latency,
and MFS throughput for the node.
/opt/mapr/server/mrdiagnostics start (or) stop (or) restart
| Parameter | Description |
|---|---|
start |
Starts the utility |
stop |
Stops the utility |
restart |
Restarts the utility |
mrdiagnostics utility logs the collected metrics as a set of log files
in the /opt/mapr/logs/stats/ directory. A sample collection is as
follows:ls /opt/mapr/logs/stats/
guts.m2-mapreng-vm167212.out sar.dev.m2-mapreng-vm167212.out
gutsmfs.m2-mapreng-vm167212.out sar.error.dev.m2-mapreng-vm167212.out
iostat.m2-mapreng-vm167212.out topmfsparent.m2-mapreng-vm167212.out
mpstat.m2-mapreng-vm167212.out topmfsthreads.m2-mapreng-vm167212.out
mrconfig_dbinfo.m2-mapreng-vm167212.out top.processes.m2-mapreng-vm167212.out
mrconfig_info.m2-mapreng-vm167212.out top.threads.m2-mapreng-vm167212.out
netstat.pan.m2-mapreng-vm167212.out vmstat.m2-mapreng-vm167212.out
psOutput.m2-mapreng-vm167212.out/opt/mapr/conf/mrdiagnostics.conf file contains the configuration for
the mrdiagnostics utility. The parameters are as follows:/opt/mapr/logs/stats.1 second.1000000 KB (1 GB). If the total size of all the output files
inside the /opt/mapr/logs/stats folder exceeds this value, the output
files are compressed to a single tar file and stored in the
/opt/mapr/logs folder.