Skip to content

The nodes saturates and closes the session with high throughput #6677

@ausias-armesto

Description

@ausias-armesto

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

  1. Clone hoprd-test repo
  2. Checkout branch ausias/weboscket-bidirectional
  3. Follow instructions on K6 folder about how to install k6 binary
  4. Start local-cluster
  5. Set the execution parameters for the test
  6. 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

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions