start_tra_cluster.py

The start_tra_cluster.py script starts both Traffic Routing Agent software stacks in an HA pair. Run this script as the tra user on a server hosting one of the Traffic Routing Agent nodes in any TRA HA cluster.

Syntax

start_tra_cluster.py [-h] [-v] [-u username][-w seconds]

Options

The start_tra_cluster.py script has the following options:

-h, --help
Help about the script options.
-v, --verbose
Verbose output.
-u username, --as_user=username
When this option is set, run the script as the specified user. The default is the current logged in user.
-w seconds
Wait the specified number of seconds before validating the start-up status of all nodes in the cluster.

Start and Wait Five Seconds

Start the local Traffic Routing Agent and wait five seconds before returning a confirmation that the software stack has started, for example:
start_tra_cluster.py -w 5
INFO:  starting node 1...
INFO:  node 1 is started
INFO:  starting node 2...
INFO:  node 2 is started
INFO:  verifying node run statuses (5 s)...
INFO:  node 1 is running ("mtx_process_ctrl (pid 10666) is running...")
INFO:  node 2 is running ("mtx_process_ctrl (pid 26495) is running...")