The user wishl reports that their Discourse Docker instance frequently goes down and experiences 502 Bad Gateway errors, with logs showing worker timeouts. After troubleshooting, it’s revealed that the server was using a 2TB SATA spinning disk, which is not recommended for Discourse. Stephen and pfaffman confirm that SSD is required for optimal performance, and wishl resolves the issue by switching to an SSD. Falco suggests checking PostgreSQL logs, while robbie.morrison notes similar issues on a different server, though cosoc asks about using high-performance HDDs, which pfaffman advises against due to performance limitations.
system is working normally
information
Cpu: 50% i3 4 core
Disk Usage of /: 7.9% of 1.79TB
Memory usage: 61% 8g
Swap usage: 19% 4g
I rebuild app done
new_subscriber_thread'"]
I, [2020-07-15T19:56:10.094624 #72] INFO -- : Refreshing Gem list
I, [2020-07-15T19:56:41.824138 #72] INFO -- : listening on addr=127.0.0.1:3000 fd=9
I, [2020-07-15T19:57:06.077895 #72] INFO -- : master process ready
I, [2020-07-15T19:57:17.979526 #229] INFO -- : worker=2 ready
I, [2020-07-15T19:57:17.979509 #218] INFO -- : worker=1 ready
I, [2020-07-15T19:57:17.979637 #241] INFO -- : worker=3 ready
I, [2020-07-15T19:57:17.979868 #211] INFO -- : worker=0 ready
If it helps, the discourse server I help administer has started picking up 502 bad gateway error messages for about a month now. Both the server and myself are located in Germany. It cannot be a recent discourse regression because we haven’t upgraded in months. We run from a really basic hosted platform contract. The server is also now really slow when it does successfully connect. I don’t have a good explanation for this degraded service but imagined it was simply our cheap plan. On reading this thread, there could perhaps be other explanations? R.
SSD is much faster than spinning magnetic plates. It’s widely recognized that SSD is required, though I’m aware of one largish site that used magnetic disks. It resulted in at least one change to core to support it. It took weeks to get configured. If you do use magnetic disks you’ll need more ram to provide more cache. It’s really not recommended.