2022-11-18 19:46 UTC
@evanphx@ruby.social what kind of calculations should we be doing for a vCPU situation?
Replies (1)
-
@evanphx@ruby.social 2022-11-18 22:58
@pieceofthepie@social.n8e.dev If puma is the only software running on the system, 1.5 * vCPU for WEB_CONCURRENCY is an easy place to start. If you're running sidekiq / nginx / postgres on the machine too, go for 0.8 * vCPU. Set MAX_THREADS to 16 and then see how it feels. You'll see a top end for the thread count, and then you'll know you need more WEB_CONCURRENCY or more raw cores.