What defines the upper limit max of simultaneous connections?

Hello,

Im asking this here because i’m writing the code with Elixir but I don’t exactly know if this is an OS issue or whatnot, or if it can be tuned inside Erlang.

I’ve heard people talk about a maximum limit to number of outbound connections to 3rd party services. Lets say I need to make 20,000 requests/minute of 400/second.

If I’m using gun straight out of the box with no special config on just your average ubuntu machine… what actually defines the upper limit max of simultaneous connections? Is that somewhere in the OS or somewhere else?

In Linux everything is a file, even socket connections. The ulimit command is what you want to use to allow more connections.

2 Likes

Ok, this makes sense… thank you