Details
-
Technical task
-
Resolution: Done
-
Minor
-
None
-
None
-
None
-
1
Description
Overview
Post 6.6.x cbbackupmgr creates stats files in the archive directory for useful debugging metrics:
- CPU utilization
- Memory
- Network
- Disk utilization
These will be created in ${ARCHIVE_PATH}/logs/stats under logical directory names (e.g. net/cpu). Each time you run a
command that collects stats, it generates a unix timestamp, and uses this in the filename for the stats file.
- That timestamp is logged ((Stats) Starting stat gathering - stat timestamp: %d)
- The same timestamp is used across different stats files, so can be used to group the stats for a given operation
As it stands, we don't have anything official which parses these files and converts them into a format that we can use
when debugging CBSEs.
Task
- Write front-end (in cmd/<name>/main.go) Go binary that uses the package created in
MB-53836to processes the stats information - Dump averages and other useful info