You are RIGHT!!!
This problem really came from node version I installed in my laptop. To make "npm link" without sudo I was using nvm to install NodeJS and I forgot to select version 12.17.0.
Great teams. Thanks a lot!
Tested NodeBB on an RPi this morning -- cold load reduced to 2s. I did some more optimizing today that should reduce it further, hopefully.
For reference, desktop browsing of NodeBB usually loads in 1.6-1.9 seconds depending on connection/ping/etc. Thanks to the refactoring done by @psychobunny, we are now able to report that NodeBB runs fairly well on the Pi!
NodeBB works wonders on an Rpi in my opinion.
I haven't tested any workload though. Would be interesting to do some benchmarking.
@psychobunny what is the hardware specs on this installation? And how much load does it have with this userbase?
This server is a potato. 512MB RAM... and the three of us run our dev on this server, and run quite a few other sites (ex. our NodeBB blog, my blog, etc). If this site ever hangs, it's because one of us (likely me) nibbed out and tried to run code that resulted in infinite loops We're thinking of upgrading maybe, and putting this forum on its own... we're pretty proud of how fast NodeBB runs but really aren't showcasing that as much as we can atm
@julian What OS did you use on the Pi to get nodebb running, as I'm seeing reports that ubuntu ist not supported, I've never bothered trying to install a proper distro, I always used Raspbmc for movies and the like.
Edit, found on github you used Raspbian, so got that pon the download. Also, the new B+, looks great. However not sure 4 USBs will work off the 5v power.
Writing a guide as I do this for the documentation.
@a_5mith Any version you can install node.js on should be fine.
@Scuzz Grand, 4 minutes left on the Raspbian download, just hope that it recognises my Wireless USB like Raspbmc did.
@a_5mith I was looking at running Node.js on my RPi but i didnt want a full blown gui taking up ram and processing power.
Arch might be useful as it's extremely light weight and only CLI unless you install a GUI.
@Scuzz Hit a mild stumbling block on raspbian, need a keyboard. May try something different.
@a_5mith isnt SSH enabled by default?
@Scuzz I use a wireless Dongle for my Pi, which needs connecting to the network. I could probably do it headlessly by plugging it in next to the router though.
@a_5mith It would probably be worth it, they are small enough to just took away and not be noticed. You'll have access to it from anywhere if you forward ports etc..
I'm running a couple of NodeBB instances on a basic 512 MB, 1 core droplet over at DigitalOcean, thanks to @a_5mith's suggestion. Easy to set up and lets me play around with Debian and get away from my evil CentOS production server for small periods of time.
CentOS either needs more love or needs to be brought out back and shot.
I am running 2 nodebb installs on a 256 MB ramnode vps it is surprisingly smooth as you would guess from my sig