Post APT36k0jL2qvo9AMtM by schwa@mastodon.social
 (DIR) More posts by schwa@mastodon.social
 (DIR) Post #APT36hyAvZcXTdxIdE by buzz@andersen.social
       2022-11-10T16:29:09Z
       
       0 likes, 0 repeats
       
       Reading through stuff about Mastodon’s performance issues and pretty much stopped when I got to “Mastodon is a Ruby on Rails application.”Rustadon, anyone?
       
 (DIR) Post #APT36j9uVQbNAKSBYu by schwa@mastodon.social
       2022-11-10T16:33:07Z
       
       0 likes, 0 repeats
       
       @buzz I’m wondering if they can load balance single instances across multiple servers or not. Gargron keeps talking about getting bigger hardware. And at some point that’s not going to work
       
 (DIR) Post #APT36je2hOhkfmYFWq by bigzaphod@mastodon.social
       2022-11-10T17:02:30Z
       
       0 likes, 0 repeats
       
       @schwa @buzz mastodon.social is already several machines. I don't know exactly how it's all built, but there are a lot of queues that run jobs and those queues are spread over multiple machines. There's also a big database machine (which was upgraded last week) and I believe some read-only replicas of the db. I do suspect, though, that there's still a lot of low hanging fruit and it could be that using Ruby means needing more queues and more machines than might be necessary otherwise. 🤷‍♂️
       
 (DIR) Post #APT36k0jL2qvo9AMtM by schwa@mastodon.social
       2022-11-10T17:04:51Z
       
       0 likes, 0 repeats
       
       @bigzaphod @buzz Yeah but that sounds like pretty typical division of processing that may have a limit to how it can scale. Can you just add N more boxes and have the work be spread? Doesn't sound like it.
       
 (DIR) Post #APT36kVDVhEtKhQiPY by shadowfacts@social.shadowfacts.net
       2022-11-10T17:26:39.776172Z
       
       0 likes, 0 repeats
       
       @schwa @bigzaphod @buzz Architecturally, throwing more servers at it is possible. You can load balance across any number of web servers and you can have any number of separate Sidekiq servers for job processing. I don’t know if m.s is setup to auto-scale, but there is at least one instance that is (using knative).There are ways in which Mastodon is grossly architecturally inefficient (Sidekiq, mostly), but it is capable of scaling up
       
 (DIR) Post #APT36lXNf8Z2XhRxQG by schwa@mastodon.social
       2022-11-10T17:06:35Z
       
       0 likes, 0 repeats
       
       @bigzaphod @buzz I dont know enough though obviously - which is why I'm asking. I'm hoping mastodon instances can scale well as needed. Based on the issues we've seen though? Not so graceful so far.
       
 (DIR) Post #APT36nNsnQ9gGp1Otc by buzz@andersen.social
       2022-11-10T16:30:40Z
       
       0 likes, 0 repeats
       
       This really is like 2007 again. I fully expect someone to come out of the woodwork now and take umbrage at my Ruby bashing.
       
 (DIR) Post #APT36q2MvrjEUxylHM by buzz@andersen.social
       2022-11-10T16:31:55Z
       
       0 likes, 0 repeats
       
       Oh, LOL, it actually exists! https://github.com/rustodon/rustodon
       
 (DIR) Post #APT3kQVzF7XmvSi492 by bigzaphod@mastodon.social
       2022-11-10T17:30:25Z
       
       1 likes, 0 repeats
       
       @shadowfacts @buzz @schwa I've seen Eugen mention that automation is currently sorely lacking, so I don't think he has a way to automate it and that might be part of the difficulty, too.