504 Gateway Time-out-Fehler bei migriertem vBulletin-Forum mit 2 Millionen Beiträgen

Ich habe eine neue Installation von Discourse, in die ich ein vBulletin-Forum mit etwa 2 Millionen Beiträgen und täglich zwischen 200 und 1000 aktiven (gleichzeitigen) Nutzern importiert habe.

Heute habe ich es auf einem Digital Ocean Droplet mit 6 vCPUs gestartet, und das Durchsuchen der Seite war anfangs ziemlich holprig – sehr langsam, 504-Fehler usw. Ich habe die Größe auf 16 vCPUs erhöht, und es funktioniert zwar besser, aber ich bekomme immer noch recht häufig 504-Timeouts.

Gibt es irgendwo eine Anleitung dazu, was in nginx konfiguriert werden kann, um die verfügbaren Ressourcen besser auszunutzen?

Die Lastdurchschnittswerte sind immer noch ziemlich hoch.

Irgendwelche Vorschläge?

Danke!

EDIT: Mir ist aufgefallen, dass ich nach der Größenänderung nicht neu aufgebaut habe. Vielleicht berücksichtigt das dann die neuen Ressourcen?

I believe @pfaffman may have some advice.

You should be on an “optimized” droplet. Cpu speed will be important for your level of traffic.

After you resize you should run

./discourse-setup

Again. It’ll adjust the memory settings. You can control-c after its first message and then

./launcher destroy app
./launcher start app

Rather than letting it rebuild. (a two container installation will reduce downtime during rebuilds)

Things are likely slow due to lots of sidekiq jobs.

If you’d like hands on help tuning your installation my contact information is in my profile.

Awesome, thanks for the quick reply.

I’ll give this a shot and contact you if I run into any more trouble.