Moonshine
Moonshine copied to clipboard
Server using only one core
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 ?
It's because currently Crystal's HTTP::Server is not capable of using all the CPUs
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 ?
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.