UnderFenex
Phoenix Channel Limit
Hi, I have a setup of websockets using Phoenix Channels. I setup this configuration in Ubuntu:
sysctl -w fs.file-max=12000500
sysctl -w fs.nr_open=20000500
ulimit -n 20000000
sysctl -w net.ipv4.tcp_mem='10000000 10000000 10000000'
sysctl -w net.ipv4.tcp_rmem='1024 4096 16384'
sysctl -w net.ipv4.tcp_wmem='1024 4096 16384'
sysctl -w net.core.rmem_max=16384
sysctl -w net.core.wmem_max=16384
When I check the ulimit -n, I get 65535
But When I’m load testing the websockets app with Tsung it always gets stuck at 993 socket connections. I’m thinking that the issue can be a limit in the OS?
Marked As Solved
axelson
Have you also checked the machine that is running Tsung? Perhaps the issue could be on that side.
Also Liked
UnderFenex
Thanx @axelson and @jakemorrison. The issue was that the parameters where to be set also in the Tsung server. I got confused because in my local setup Tsung didn’t have any problems.
UnderFenex
UnderFenex
I am running Tsung from my local machine, I have tested 5k concurrent users agains a vagrant machine, without issues, but when I test again a Cloud VM, it always get stuck a lower than 1k users.
I am targeting the direct IP of the cloud VM. I have used lightsail and azure, and the issue persists, seems like its a configuration on the cloud VM, but I have no way to debug what could it be.
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #elixirconf-us
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #metaprogramming
- #security
- #hex










