In my opinion you are better off waiting for the eventual Raspberry Pi 5, which – if you graph forward the progress in Pi performance from 2, to 3, to 4 – should have enough oomph to run Discourse.
I’m not sure the x86 (x64?) dependencies are surmountable at the moment, either, but not a bad idea to look at that for longer term.
A cluster of Pi 4 with the 64-bit quad core 1,5Ghz and possibly USB3 disks for storage (~300MB/s) or external blob store (S3 or GCP) and a CDN in front of those anonymous users must be a possible platform alternative Future will tell!
You didn’t specify which microSD card that was, but it’s in the same order of magnitude as a Lexar Professional 1800x, which can sustain sequential read speeds of ~300MB/s and writes approaching 250MB/s. Sequential reads and writes aren’t the problem with microSD though, you need to look at random reads/writes to get a real feel for what’s going to be happening with multiple users hitting the database and local assets.
Modern SSDs usually fall in the region of 500MB/s+ sequential reads and 475Mb/s+ sequential writes - which isn’t too far off the numbers above. The performance delta on random reads/write though is huge - the same SSD will pull up too 400MB/s on a 4KiBQ8T8 while the Lexar drops to low double-digits, at 15MB/s or thereabouts. Random writes are even worse, with SSD still sustaining as much as 300MB/s while a microSD gets nailed well into low single digits (2MB/s).
I’m a big fan of rPi, and use them in a bunch of places, but they’re still a long way from where we need them to be.
It’s a USD $20 (in Sweden) sandisk 64GB card, rated A2 I believe. Just wanted to prove the pure sequential speed is not as bad as you made it sound
If it doesn’t work on the rPi even with external SSD on the USB3 ports, I’d assume running the database externally would fix that particular bottleneck. But I’m biased as I like the idea of getting an arm cluster up and running with the now real 1GBit/s NICs on Pi 4. I also like to challenge “it doesn’t work” mentality in general
If you throw enough time, money and resources at anything you can make it work.
Requests to run Discourse on a Raspberry Pi over the past few years typically originate from users who have a Pi, and don’t want to spend anything beyond that. That’s effectively what we’re exploring here.
The moment you start bolting on external SSDs and offloading the database to a different system you aren’t really talking about hosting Discourse on a Raspberry Pi at all.
take a Raspberry PI 4 ram4 or ram8 then take one MicroSD (INDUSTRIAL) up Amazzon… Ebay…
write on Docker dal sito: https://blog.hypriot.com/ precisely to the section: Download, latest version.
once the image is written to SD, insert in the Raspberry PI and connect away SSH (Username Password for Docker SSH I’m: “pirate” “hypriot” --> (User: pirate) (Pass: hypriot).) obviously after connecting SSH change the credentials to your liking from --> sudo raspi-config, restart Raspberry.
once restarted, connect with SSH and install “Discourse” following this guide: https://linoxide.com/how-tos/install-discourse-docker-container/ obviously you will start from the point 2) because Docker you installed it right from the start.
I followed your instructions, installed hypriot, etc., but got the following error:
$ ./launcher bootstrap app
standard_init_linux.go:211: exec user process caused "exec format error"
Your Docker installation is not working correctly
See: https://meta.discourse.org/t/docker-error-on-bootstrap/13657/18?u=sam
Apparently I was mistaken in inferring that Massym successfully got Discourse running on a Raspberry Pi 4 as rereading his post, he doesn’t specifically assert that. Big waste of time on my end, but at least a learning exercise.
What specific component within Discourse is not supported? I and I’m sure many others would be eager to get it working.
I’m looking forward to see that working. One of my forums, running on discourse, is the last item I have pending while moving into a rpi4 cluster, which consumes infinitely less power than the intel based server.
Bump, were there any advances on the v8 gem for ARM?, I tried to compile the images, but always got stuck at that gem, it’s a little bit intricate , it fails mostly because the scripts will try to download X86_64 tools (for the build) and run them in ARM…
Soon to be seen, I have been running other rails applications on rpi4 and I was happy about the performance, but I must admit they were much simpler than discourse.