irfan,

Important issue, and an interesting discussion has taken place since last year on the side of things. I imagine this issue is also present for and most other services, and I wonder if a fix is already in the works or even rolled out for them?

🔗 https://github.com/mastodon/mastodon/issues/23662

RE: https://mastodon.social/users/itsfoss/statuses/112364520275421073

irfan,

Folks on here can be just as toxic evidently seeing from the replies to the original post. Demanding Mastodon and other Fediverse services to be better for everyone does not equate to an attack, fellow children. I read the entire article and nowhere in it does it seem like it's trashing anyone or anything that calls for a bunch of babies to suddenly be aggressively defensive of something we, and seemingly they too, love and support.

robustjumprope,

@irfan What's funny to me is that there were a lot of replies talking about the large amount of ads on the website (which technically could contribute to the issue because each request loads a lot more) and I didn't even notice any of them. thanks uBlock Origin ​:neocat_laugh_tears:​

anianimalsmoe,
@anianimalsmoe@sakurajima.moe avatar

@robustjumprope @irfan

I'm digging thru the Mastodon ruby code for link preview generation: https://github.com/mastodon/mastodon/blob/616e2f26668d578ae81043a3836e881178d3e806/app/services/fetch_link_card_service.rb#L149

If I'm not reading it wrong, it appears to use oEmbed and openGraph in sequence, downloading the full webpage in the request.

anianimalsmoe,
@anianimalsmoe@sakurajima.moe avatar

@robustjumprope @irfan
I guess it has to in order to follow redirects...

anianimalsmoe,
@anianimalsmoe@sakurajima.moe avatar

@robustjumprope @irfan
Looks like there are libraries that could allow doing a HEAD-only request that follow redirects. That can actually significantly reduce the load.

irfan,

@anianimalsmoe @robustjumprope not enough for Masto to care much about it I guess considering they've apparently postponed a "fix" for it to version 4.4.0 ~whenever that may be.

robustjumprope,

@irfan @anianimalsmoe Looks like Misskey makes an API call to instance-name.com/url and it spits back url information. Don't have time to look into the implementation but I wonder if it is less stressful on the server, since this post specifically seems to imply the problem is with Mastodon.

irfan,

@robustjumprope @anianimalsmoe yea that's what I'm most curious about - if it's a Masto only issue or it's also true for other Fedi services, cos it could very well be but just perhaps at a much smaller scale since Masto's a lot larger/more popular after all.

anianimalsmoe,
@anianimalsmoe@sakurajima.moe avatar

@irfan @robustjumprope
To be fair, most sites won't be affected this badly. Itsfoss' site is really badly architected.

But it's the responsibility of Mastodon to reduce its footprint when generating previews. I guess I'll play with doing HEAD and GET requests in Ruby and see if doing 1000s of them crashes itsfoss.

robustjumprope,

@irfan @anianimalsmoe Looks like it might not be too hard to crash lol https://sakurajima.social/notes/9ss6n33k9c

anianimalsmoe,
@anianimalsmoe@sakurajima.moe avatar

@robustjumprope @irfan
Like I said, it's badly architected. It might be better with just a HEAD instead of a GET tho.

chikorita157,
@chikorita157@sakurajima.moe avatar

@anianimalsmoe @irfan @robustjumprope When I publish a new blog post on my Anime Blog, the CPU spikes for a few minutes and goes down, I suspect that this might be the issue of Mastodon overloading the servers to generate previews.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • mastodon
  • kavyap
  • ngwrru68w68
  • tacticalgear
  • DreamBathrooms
  • mdbf
  • magazineikmin
  • thenastyranch
  • Youngstown
  • Durango
  • slotface
  • everett
  • vwfavf
  • rosin
  • anitta
  • Leos
  • khanakhh
  • GTA5RPClips
  • cisconetworking
  • InstantRegret
  • ethstaker
  • osvaldo12
  • tester
  • provamag3
  • modclub
  • cubers
  • normalnudes
  • megavids
  • JUstTest
  • All magazines