I’m running a community with 38k users on a 24-core and 64GB VM. I set DISCOURSE_UNICORN_WORKERS
to 48.
Recently the site seems to response slow after the UV reaches 20k one day and PV reaches 500k. User will receive their notification several hours after it actually happens.
The CPU workload is around 15%. So I believe this is due to too few Sidekiq workers and set DISCOURSE_UNICORN_SIDEKIQS
to 10 and DISCOURSE_DB_POOL
to 13. But this causes many 500 errors in many pages. And I think it’s too large to PostgreSQL.
So, I wonder whether Discourse is auto-scaling to a 24-core server without manual setting? Or how to set proper concurrent parameters for a large site like mine?