LOKI LogoLOKIv1.10.0

Infrastructure Chaos

Kill or pause local processes and Docker containers, or saturate CPU and memory with loki infra.

Subcommands

FlagTypeDefaultDescription
loki infra listcommand—List local processes with open listening ports (Port, PID, Process name).
loki infra kill--pid | --port | --name | --container—Kill a local process (by PID, listening port, or name substring) or a local Docker container outright.
loki infra pause--pid | --port | --name | --container [-d 5.0]5.0sSuspend a local process or Docker container for --duration / -d seconds, then automatically resume it.
loki infra cpu-stress[-d 5.0] [--workers, -w N]5.0sSaturate CPU cores for --duration / -d seconds (defaults to 1 busy-loop worker per CPU core).
loki infra memory-stress[-d 5.0] [--mb 512]5.0s / 512 MBAllocate and hold --mb megabytes resident in RAM for --duration / -d seconds.
loki infra cleanupcommand—Kill any leftover cpu-stress or memory-stress workers if a previous run was forcibly terminated.

Examples

bash
loki infra list
loki infra kill --port 5432
loki infra kill --container redis
loki infra pause --port 5432 -d 10
loki infra cpu-stress -d 5
loki infra memory-stress -d 5 --mb 1024
loki infra cleanup

Local-only scope

loki infra operates strictly on the local machine (local OS processes and local Docker containers). It has no remote, SSH, or cloud execution backend.