Login
You're viewing the ruby.social public feed.
  • Nov 18, 2022, 5:29 PM

    @getajobmike For sure! Setting WEB_CONCURRENCY to cores * 1.5 can result in puma soaking up 100% of the cpu. So if you're running sidekiq on the same cores, use 1 * cores or even 0.8 * cores is prudent.

    💬 3🔄 6⭐ 7

Replies

  • Nov 18, 2022, 6:15 PM

    @evanphx @getajobmike In a fresh install of Mastodon following the guide, Puma doesn't read .env.production on boot, so if you want to change the number of workers you either need to edit config/puma.rb or the mastodon-web.service to set e.g. Environment="WEB_CONCURRENCY=3".

    💬 1🔄 0⭐ 0
  • Nov 18, 2022, 6:16 PM

    @evanphx @getajobmike Additionally, since y'all are giving formulas with floating point math, make sure to round up or down to an Integer value to keep Puma happy.

    If you're running a small VPS with e.g. one core for a small number of users, consider setting WEB_CONCURRENCY=0 to take Puma out of clustered mode.

    💬 1🔄 0⭐ 0
  • 💬 0🔄 0⭐ 1
  • Nov 18, 2022, 6:28 PM

    @evanphx @getajobmike see - this is where it gets tricky. We need some sort of „calculator“ that takes cores, RAM and dedicated servers into account and gives advise _where_ to set the values, how to restart etc. This would be super-helpful for our bunch of not-so-expert admins. And we need it fast, for numbers are rising fast. The official documentation is way to fuzzy regarding tuning. 🙏

    💬 1🔄 0⭐ 1
  • Nov 18, 2022, 11:06 PM

    @rstockm @getajobmike Yeah, totally agree. I'm going to setup a google form to start gathering data now, that we could use for a calculator.

    💬 2🔄 0⭐ 5
  • Nov 18, 2022, 11:11 PM

    @evanphx @getajobmike brilliant, and just for the record: it‘s beyond awesome that you get in touch with us. And the actual documentation was never meant to handle a situation like this: the basic setup was fine for several years. But now we are not facing a wave, but a brick wall of new users - and need to adapt. Thanks again for your effort! ❤️

    💬 0🔄 0⭐ 1
  • 💬 0🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0