introduce WebSocket Controller allowing real-time control of load test, optionally disable with --no-websocket, supports the following commands:
o exit (and quit) exit the WebSocket Controller
o stop stops the running load test (and exits the controller)
o hatchrate (and hatch_rate) FLOAT sets per-second rate users hatch
o config returns the current load test configuration in json format
o metrics (and stats) returns metrics for the current load test in json format
WebSocket Controller bind host defaults to 0.0.0.0, can be configured with --websocket-host
WebSocket Controller bind port defaults to 5117, can be configured with --websocket-port
WebSocket Controller defaults can be changed:
o default to not enabling WebSocket Controller: GooseDefault::NoWebSocket (bool)
o default host to bind WebSocket Controller to: GooseDefault::WebSocketHost (&str)
o default port to bind WebSocket Controller to: GooseDefault::WebSocketPort (usize)
renamed run time options --no-controller, --controller-host, --controller-port to --no-telnet, --telnet-host, --telnet-port to differentiate between controllers
renamed GooseDefault::NoController,GooseDefault::ConterllerHost, and GooseDefault::ControllerPort to GooseDefault::NoTelnet,GooseDefault::TelnetHost, and GooseDefault::TelnetPort to differentiate between controllers
requests to the WebSocket Controller must be in the following format:
{
`request`: String,
}
response from the WebSocket Controller are always in the following format:
--no-websocket
, supports the following commands: oexit
(andquit
) exit the WebSocket Controller ostop
stops the running load test (and exits the controller) ohatchrate
(andhatch_rate
) FLOAT sets per-second rate users hatch oconfig
returns the current load test configuration in json format ometrics
(andstats
) returns metrics for the current load test in json format0.0.0.0
, can be configured with--websocket-host
5117
, can be configured with--websocket-port
GooseDefault::NoWebSocket
(bool) o default host to bind WebSocket Controller to:GooseDefault::WebSocketHost
(&str) o default port to bind WebSocket Controller to:GooseDefault::WebSocketPort
(usize)--no-controller
,--controller-host
,--controller-port
to--no-telnet
,--telnet-host
,--telnet-port
to differentiate between controllersGooseDefault::NoController
,GooseDefault::ConterllerHost
, andGooseDefault::ControllerPort
toGooseDefault::NoTelnet
,GooseDefault::TelnetHost
, andGooseDefault::TelnetPort
to differentiate between controllersFor example: