Skip to content

Running out of local connections in reqstatsrv example #3

Description

@dhontecillas

For the reqstatsrv example: lotsofconnection , the test running out of local sockets to create connections against the backend server:

error proxying the request: Get "http://192.168.1.20:9876/endpoint_9": dial tcp 192.168.1.20:9876: connect: cannot assign requested address
error proxying the request: Get "http://192.168.1.20:9876/endpoint_39": dial tcp 192.168.1.20:9876: connect: cannot assign requested address
error proxying the request: Get "http://192.168.1.20:9876/endpoint_39": dial tcp 192.168.1.20:9876: connect: cannot assign 

The dummy reqstatsrv does not support the keep-alive options, so connections cannot be reused, and we hit a number of maximum parallel requests. Also , the loadimpact/k6 script is also using local connections, so when running the test in a local machine we can only handle half of the requests.

Profiling the code, it was found that it was the actual cpu bottleneck:

2021-03-17-194502_652x403_scrot

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions