Test Framework should provide an option to run monitoring scripts along with the tests.
Links
- Link to discussion on Developer Forum: http://community.pbspro.org/t/test-framework-should-provide-an-option-to-run-monitoring-scripts-along-with-the-tests/1566
Overview
We should be able to run python monitoring scripts periodically which will write output to ptl_test_results.json along with the tests, So that there will be no need of changing framework whenever we want to monitor a new value.
Synopsis:
The monitoring scripts will be stored under fw/ptl/utils/tools directory.
At the time of running tests we can provide input to benchpress to use these monitoring scripts to run periodically at a specific interval.
The monitoring script will be run in separate threads.
The script should use PBSTestSuite.add_additional_data_to_report(dict{}) to write the output to ptl_test_results.json
Example:
We can add a few monitoring scripts for disk monitoring , network monitoring etc.
Interface:
pbs_benchpress -t TestSuite --monitor=<monitoring script filenames> --monitor-freq=300
--monitor : will accept monitoring script filenames in comma separated way.
--monitor-freq: Default value will be 60 secs , input can be given in secs.
Example:
pbs_benchpress -t TestSuite --monitor=disk_monitor.py,network_monitor.py --montior-freq=600
Project Documentation Main Page