Eugen is a user on mastodon.social. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.

Yo yo yo! Remember I promised to write about scaling mastodon.social to 43k users? I did it! medium.com/@Gargron/scaling-ma

@Gargron 8 workers with 2 threads ? Wow, seems like a serious problem :(

Eugen @Gargron

@TouitTouit What do you mean?

· Web · 0 · 0

@Gargron I mean Ruby is poor with multithreading (understand system threading). Puma was designed to combine multiple processes and multiple threads (Ruby threads). If you have more processes than (Ruby) threads, you're obviously do it wrong.

@TouitTouit MRI is not the only Ruby out there. There's Rubinius and JRuby. Puma's threads might work better there.

@Gargron especially when system threads for Puma are shared with Sidekiq

@TouitTouit Threads are not shared between Puma and Sidekiq in any way, what do you mean?

@Gargron system threads, sure they are ! How many admins understand what's the difference between Puma and Sidekiq ?

@Gargron system threads. Puma needs CPU to answer requests, while Sidekiq wants some. Processes are racing

@Gargron I have to sleep, I'll be glad to chat and explain why (in my opinion) your paper is misleading