Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

insight: count client connections and set max to 16384 #1481

Merged
merged 1 commit into from
Jul 26, 2019

Conversation

chappjc
Copy link
Member

@chappjc chappjc commented Jul 26, 2019

By default, the socket.io server is limited to 1000 connections. This increases it to 16384. Note that scaling higher may be achieved by adding more backends. This limit may be made configurable in future work, but it is hard coded for a patch release to dcrdata 5.0.

These edits also supplement the socket.io log messages to give the current connected user count on each connect and disconnect event.

@chappjc chappjc added this to the 5.0.3 milestone Jul 26, 2019
@chappjc
Copy link
Member Author

chappjc commented Jul 26, 2019

Ran well in testing and now running well in production.

@chappjc chappjc merged commit e0da640 into decred:master Jul 26, 2019
@chappjc chappjc deleted the socket.io-count branch July 26, 2019 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant