-
Notifications
You must be signed in to change notification settings - Fork 97
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Description
During the execution of load testing, I'm trying to send many messages through the web-socket connection and some node participating in the route closes the session. Not sure if it's the entry-node, the relayer or the exit-node in a 1-hop message.
Steps to Reproduce
- Clone hoprd-test repo
- Checkout branch
ausias/weboscket-bidirectional
- Follow instructions on K6 folder about how to install k6 binary
- Start local-cluster
- Set the execution parameters for the test
- Run the test
npm run test:local
Execution parameters
export HOPRD_API_TOKEN=^^LOCAL-testing-123^^
export K6_TEST_DURATION=10
export K6_REQUESTS_PER_SECOND_PER_VU=20
export K6_VU_PER_ROUTE=1
export K6_WORKLOAD_NAME=constant
npm run test:local
These parameters will open a total of 1 (vu) * 5(senders) * 4(relayers) * 3(receivers) = 60 web socket connections on all local nodes. As there are 5 nodes, that implies to open 12 web-socket connections per node. As the requests per second is set to 20, it implies to open 12 web-socket connection per node and send through them 20 messages per second. That is 240 messages per node (12 routes * 20 req/s)
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working