mrdiagnostics

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.

Syntax

/opt/mapr/server/mrdiagnostics start (or) stop (or) restart

Parameters

Parameter Description
start Starts the utility
stop Stops the utility
restart Restarts the utility

Output

The 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

Configuration Parameters

The /opt/mapr/conf/mrdiagnostics.conf file contains the configuration for the mrdiagnostics utility. The parameters are as follows:
stats.log.path
Path in which the output files (*.out) files are placed. The default path is /opt/mapr/logs/stats.
stats.log.interval
Frequency at which the metrics are collected. The value is in seconds. The default value is 1 second.
stats.log.size
The size at which the output files are rotated. The value is in KB. The default value is 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.