Erros 504 Gateway Time-out com 2 milhões de posts migrados no fórum vBulletin

Tenho uma instalação nova do Discourse, na qual importei um fórum vBulletin com cerca de 2 milhões de posts e entre 200 e 1000 usuários ativos (concorrentes) diários.

Lançamos hoje em um droplet da Digital Ocean com 6 vCPUs, e navegar no site estava bastante ruim no início… muito lento, erros 504, etc. Redimensionei para 16 vCPUs e está funcionando melhor, mas ainda estou recebendo timeouts 504 com bastante frequência.

Existe algum guia sobre o que pode ser configurado no nginx para ajudar a utilizar melhor os recursos disponíveis?

A média de carga ainda está bastante alta.

Alguma sugestão?

Obrigado!

EDIT: Percebi que não reconstruí após o redimensionamento, e talvez isso leve em conta os novos recursos?

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.

3 curtidas

Awesome, thanks for the quick reply.

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

2 curtidas