Skip to content

Commit

Permalink
Update network monitor entrypoint (#4893)
Browse files Browse the repository at this point in the history
* Update entrypoint

* Update CI action

* Rollback ci changes
  • Loading branch information
durch committed Sep 20, 2024
1 parent 0d2418e commit 2f267cf
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions nym-network-monitor/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,18 @@

set -ex

private_key=${1}
network=${2:-mainnet}
timeout=${3:-600}
users=${4:-10}
_private_key=${PRIVATE_KEY}
network=${NYM_NETWORK:-mainnet}
timeout=${LOCUST_TIMEOUT:-600}
users=${LOCUST_USERS:-10}
processes=${LOCUST_PROCESSES:-4}

RUST_LOG=info nym-network-monitor --env envs/"${network}".env --host 127.0.0.1 --port 8080 --private-key "${private_key}" &
RUST_LOG=info nym-network-monitor --env envs/"${network}".env --private-key "${_private_key}" &
nnm_pid=$!

sleep 10

python -m locust -H http://127.0.0.1:8080 --processes 4 --autostart --autoquit 60 -u "${users}" -t "${timeout}"s &
python -m locust -H http://127.0.0.1:8080 --processes "${processes}" --autostart --autoquit 60 -u "${users}" -t "${timeout}"s &
locust_pid=$!

wait $locust_pid
Expand Down

0 comments on commit 2f267cf

Please sign in to comment.