Skip to content
This repository has been archived by the owner on Nov 18, 2019. It is now read-only.

Use a LOT of worker threads to fake concurrency #30

Merged
merged 1 commit into from
Jun 20, 2017

Conversation

randomPoison
Copy link
Owner

I'm configuring Rocket to use a whole lot of worker threads (128, to be precise) in order to work around an issue that we're seeing in production. The short description is that when there are very few worker threads (on the production instance there are only 2) the loading the host or client page can cause the entire server to lock up. You can see a discussion of there error here: rwf2/Rocket#243 (comment).

Using a lot of worker threads is a quick solution, but a better solution would be to setup NGINX as a reverse-proxy to handle the requests. That said, I think using a bunch of worker threads may also help with the issues we were seeing with only 2 player being able to really play at once, so I'm going to push this fix through and we can see what impact it has in production.

@randomPoison randomPoison added this to the Version 0.2 milestone Jun 20, 2017
@randomPoison randomPoison merged commit 09a9562 into master Jun 20, 2017
@randomPoison randomPoison deleted the lots-of-workers branch June 20, 2017 23:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant