Elektrine lite

← Feed

@evanphx@ruby.social

2022-11-18 17:29 UTC

@getajobmike@ruby.social 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.

Replies (3)

  • @mwp@nodots.xyz 2022-11-18 18:15

    @evanphx@ruby.social @getajobmike@ruby.social 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".

    Open ##3139508

  • @rstockm@chaos.social 2022-11-18 18:28

    @evanphx@ruby.social @getajobmike@ruby.social 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. 🙏

    Open ##3139511

  • @santiago@mastodon.uy 2022-11-19 13:21

    @evanphx@ruby.social @getajobmike@ruby.social where is this setting? i can't remember

    Open ##3139515