Posts by evanphx@ruby.social
 (DIR) Post #AP6ATvouRXNNce80si by evanphx@ruby.social
       2022-10-30T16:30:21Z
       
       0 likes, 1 repeats
       
       Hellllooooooooo! 👋
       
 (DIR) Post #AP6AeDm8XaFMCnjo8W by evanphx@ruby.social
       2022-10-30T16:32:48Z
       
       0 likes, 0 repeats
       
       @james Thanks! How’s it been running ruby.social? Is mastodon still using puma?
       
 (DIR) Post #AP6CRyYZUvUDRFgJTk by evanphx@ruby.social
       2022-10-30T16:53:01Z
       
       0 likes, 0 repeats
       
       @james Nice!Post-RC going well, one fewer background priority. Work (HashiCorp) is busy but not too busy, kids (11 and 7) doing great.
       
 (DIR) Post #APL21NuauMtnKJhQpc by evanphx@ruby.social
       2022-11-06T18:09:43Z
       
       0 likes, 1 repeats
       
       Doing research on type checking systems in dynamic langs and love to hear folks opinions of RBS, mypy, typescript and other such systems. What’s annoying? What’s helpful?
       
 (DIR) Post #APP50uX8bZQASeMaq8 by evanphx@ruby.social
       2022-11-08T19:11:28Z
       
       0 likes, 1 repeats
       
       If folks neee help scaling mastodons, as the primary puma author I’m happy to help! A quick rule of thumb is using workers (-w) increases parallel requests at the cost of RAM, and threads (-t) increase concurrency. If it’s struggling, I usually tell folks to just add one more worker and see what happens.
       
 (DIR) Post #APU5A2vRrdpyPFMLCa by evanphx@ruby.social
       2022-11-11T05:24:26Z
       
       0 likes, 0 repeats
       
       @seb @nova Would you mind sharing your puma settings? Trying to put together a tuning guide and wanna try help folks correlate active users with cpu/mem/settings. Thanks!
       
 (DIR) Post #APU7MC2227b822MHrs by evanphx@ruby.social
       2022-11-11T05:49:02Z
       
       0 likes, 0 repeats
       
       @seb @nova 1 worker and 20 threads? So WEB_CONCURRENCY=1 and MAX_THREADS=20?
       
 (DIR) Post #APV4Q6BLcR3YLKqYAC by evanphx@ruby.social
       2022-11-11T16:50:43Z
       
       0 likes, 0 repeats
       
       @seb @nova Ah! So that’s 8 processes, each running 20 threads.
       
 (DIR) Post #APVAklpr3tpb2s29jc by evanphx@ruby.social
       2022-11-11T17:01:55Z
       
       0 likes, 0 repeats
       
       @seb @nova One more quick question: how many users does your instance have? (I dunno if mastodon has this metric, but active users would be useful too I think?)
       
 (DIR) Post #APVD5SvMlfeQNobjJQ by evanphx@ruby.social
       2022-11-11T18:27:57Z
       
       0 likes, 0 repeats
       
       @seb @nova Thank you!
       
 (DIR) Post #APVaBPe2Aiu4tYIzgm by evanphx@ruby.social
       2022-11-11T22:46:44Z
       
       0 likes, 0 repeats
       
       @james @baweaver bigger than RailsConf! Most there was a shade under 2k.
       
 (DIR) Post #APjafbCWUTmldXGome by evanphx@ruby.social
       2022-11-18T16:54:32Z
       
       7 likes, 32 repeats
       
       To all mastodon admins:Hi! I’m Evan Phoenix, the primary author of puma, the ruby webserver that powers mastodon!Please reply or DM me if you need tuning help! I’ve got no officiation with the mastodon, just want to see you succeed!(Quick Tip: set WEB_CONCURRENCY to core count * 1.5 and then tune MAX_THREADS. High thread values will see diminishing returns!)
       
 (DIR) Post #APjftJ3bFHtHBnS5I0 by evanphx@ruby.social
       2022-11-18T17:29:31Z
       
       0 likes, 1 repeats
       
       @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.
       
 (DIR) Post #APl7sEjOpptVMGF2vY by evanphx@ruby.social
       2022-11-18T22:55:12Z
       
       0 likes, 0 repeats
       
       @nealr @ruud now that's some growth! How's it holding up? How much hardware are you using (cpu cores, memory)?
       
 (DIR) Post #APybtOynhlSK2JE3IO by evanphx@ruby.social
       2022-11-18T17:04:21Z
       
       0 likes, 0 repeats
       
       @jolvera I’ll have to check!
       
 (DIR) Post #APybtPQo1drDRAKPwm by evanphx@ruby.social
       2022-11-18T17:13:13Z
       
       0 likes, 0 repeats
       
       @jolvera So the official tips don't give concrete suggestions about how to tune puma. So it's still correct, just not specific enough!
       
 (DIR) Post #APybtQHypwOM65CspU by evanphx@ruby.social
       2022-11-18T17:17:17Z
       
       0 likes, 0 repeats
       
       @jolvera Yeah, probably! I want to figure out a way to gather some usage data from installations to provide even better info as well.Also considering releasing a special puma-mastodon gem that will tweak these settings automatically.