chargelink network
Apply or disable network impairments such as delay, jitter, and packet loss.
Reference syntax
usage: chargelink network [-h] {simulate} ...
positional arguments:
{simulate}
options:
-h, --help show this help message and exit
Subcommands
Subcommand |
Purpose |
|---|---|
|
Apply network impairment settings to the runtime. |
simulate
Apply network impairment settings to the runtime.
CLI help
usage: chargelink network simulate [-h] [--runtime-root RUNTIME_ROOT]
[--delay-ms DELAY_MS]
[--budget-ms BUDGET_MS]
[--packet-loss-pct PACKET_LOSS_PCT]
[--jitter-ms JITTER_MS] [--disable]
[--output OUTPUT]
options:
-h, --help show this help message and exit
--runtime-root RUNTIME_ROOT
--delay-ms DELAY_MS
--budget-ms BUDGET_MS
--packet-loss-pct PACKET_LOSS_PCT
--jitter-ms JITTER_MS
--disable
--output OUTPUT
Production examples
Apply moderate delay and jitter to a runtime root.
chargelink network simulate --runtime-root '.tmp/runtime' --delay-ms 50 --budget-ms 25 --jitter-ms 10 --output 'artifacts/network_impairment.json'
Apply packet loss and then export the resulting impairment profile.
chargelink network simulate --runtime-root '.tmp/runtime' --delay-ms 100 --budget-ms 50 --packet-loss-pct 1.5 --jitter-ms 20 --output 'artifacts/network_impairment_lossy.json'