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

Server using only one core #19

Open
teodor-pripoae opened this issue Sep 18, 2015 · 3 comments
Open

Server using only one core #19

teodor-pripoae opened this issue Sep 18, 2015 · 3 comments

Comments

@teodor-pripoae
Copy link
Contributor

Hi,

My laptop has 4 cores, and doing an apache benchmark shows only one core is used. Is there any setting available to make it work on multiple cores ?

@sdogruyol
Copy link

It's because currently Crystal's HTTP::Server is not capable of using all the CPUs

@teodor-pripoae
Copy link
Contributor Author

I know that Crystal made the switch from threads to evented IO a few months ago, but is there any option to make moonshine server run on multiple cores ? Maybe something similar with node cluster ?

@dhruvrajvanshi
Copy link
Owner

I tried switching the HTTP::Server's listen method to listen_fork but it seems that it's not forking any threads. Will have to investigate.

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

No branches or pull requests

3 participants