print_engine_stats.py

The print_engine_stats.py script calculates the number of transactions per second (TPS) for the servers on a MATRIXX Engine. Some statistics tables only calculate averages and totals for the processing servers, if the other server types are not handling transactions. The non-transacting servers still appear in the statistic output table but their statistics are not totaled or averaged to avoid misleading data. The processing-server-only statistics tables are marked with a footnote.

Syntax

print_engine_stats.py [-r wait_interval] [-e engine_id] [-h] [-d] 
[-debug_config_file_parsing [ 0 | 1 ]] [--debug_functaion_calls= [ 0 | 1 ]] 
[debug_output_formatting= [ 0 | 1 | 2 ]] [--debug_threading_code [ 0 | 1 ]] [--plain ] 
[--silent] [--skip_local] [--skip_publishing] [--ssh_debug] [-u username] [--nofsck] 
[-p [ 0 | 1 ]] 
-r repeat_seconds, --repeat_seconds=wait_interval
Specifies how long the script waits between running in seconds (float). The default is to run only once.
-e engine_id, --engine=engine_id
Specifies the engine to collect data for. The default value is the engine the script is run on, or the first engine.
-h, --help
Show these parameters and exit.
-d, --debug
Prints more verbose debugging messages.
--debug_config_file_parsing=[ 0 | 1 ]
0 specifies that no config file parsing debugging messages are printed. 1 specifies extra messages are printed to help debug config file parsing.
--debug_function_calls=[ 0 | 1 ]
0 specifies that no function call debugging messages are printed. 1 specifies extra messages are printed to help debug the process of function calling other functions.
--debug_output_formatting=[ 0 | 1 | 2 ]
0 specifies that no output formatting messages are printed. 1 specifies extra messages are printed to help debug output formatting. 2 specifies that the output formatting messages printed in hexidecimal format.
--debug_threading_code=[ 0 | 1 ]
0 specifies that no threading code debugging messages are printed. 1 specifies extra messages are printed to help debug threading code issues.
--plain
By default a prefix is added each line. If this option is specified, the prefix is omitted.
--silent
If specified the output is omitted. The default is to display the results.
--skip_local
If specified, this script is not run on the local logical server. The default runs on the logical server.
--skip_publishing
By default this script runs on all servers. If specified, this script is not run on the local logical server.
--ssh_debug
If specified, the -v option is added to all ssh commands.
-u username, --as_user=username
The default value is to run as the current user. Use this option to specify a different user to run as.
---no_fsck
If specified, no file system check is performed before mounting.
-p [ 0 | 1 ], --parallel==[ 0 | 1 ]
0 specifies that the servers are processed in serial mode, which waits for each logical server to complete before processing the next one. 1 processes all logical servers in parallel.

See the discussion about displaying server transactions per second.