mirror of
https://github.com/optim-enterprises-bv/openlan-cgw.git
synced 2025-10-29 17:32:21 +00:00
Force redis, PSQL, kafka clients to have a strict timeout value for any requests. It's done to ensure our tests do not hang for an unknown period of time in case if something goes wrong. Signed-off-by: Oleksandr Mazur <oleksandr.mazur@plvision.eu>
Run client simulation
# run 10 concurrent client simulations
$ ./main.py -s wss://localhost:50001 -n 10
# use only specified MAC addrs
$ ./main.py -s wss://localhost:15002 -N 10 -M AA:XX:XX:XX:XX:XX
# run 10 concurrent simulations with MAC AA:* and 10 concurrent simulations with MAC BB:*
# AA:* and BB:* simulations are run in separate processes
$ ./main.py -s wss://localhost:15002 -N 10 -M AA:XX:XX:XX:XX:XX -M BB:XX:XX:XX:XX:XX
To stop the simulation use Ctrl+C.
Run simulation in docker
$ make
$ make spawn
$ make start
$ make stop
# specify mac addr range
$ make spawn MAC=11:22:AA:BB:XX:XX
# specify number of client connections (default is 1000)
$ make spawn COUNT=100
# specify server url
$ make spawn URL=wss://localhost:15002
# tell all running containers to start connecting to the server
$ make start
# stop all containers
$ make stop