docker run -it --rm -e LOADMILL_AGENT_TOKEN=<your-api-token> loadmill/agent
npm i @loadmill/agent -g
npm i @loadmill/agent
// in case you can't install it globally.yarn add @loadmill/agent -g
-g
option while installing run it like this:loadmill-agent start -t INSERT_TOKEN_HERE
-g
flag) run it like this:./node_modules/@loadmill/agent/bin/loadmill-agent start -t INSERT_TOKEN_HERE
--loads-capacity
- (default = 50). Optionally you can supply the number of users this agent can simulate. It can be 0 in order not to run load tests.--pool
- can be supplied in order to set the agent pool (the limit is 256 characters). When using multiple Loadmill Agents, this parameter helps you distinguish between running agents. Then, use our npm module with supplying the --pool <pool>
parameter to assign test runs to a specific agent.--config
- alternatively, you can supply a path to a yaml file that will contain all the options above.loadmill-agent start -t INSERT_TOKEN_HERE --no-api --loads-capacity 80
loadmill-agent start -t INSERT_TOKEN_HERE --pool myPoolID
loadmill-agent start --config /path/to/config.yml
NODE_TLS_REJECT_UNAUTHORIZED=0
at the beginning of the start command to run your tests via the Loadmill Agent. It should look like this: NODE_TLS_REJECT_UNAUTHORIZED=0 loadmill-agent start -t INSERT_TOKEN_HERE
IMPORTANT: The Loadmill agent wonβt be able to verify that it is talking to the right website in this case.