Email or username:

Password:

Forgot your password?
Kev Quirk

I recently wrote about how Mastodon is DDoSing me every time I post a link to this site. I've managed to fix the problem...I think.

kevquirk.com/i-stopped-mastodo

21 comments
Kev Quirk

My site stayed up. Woohoo! 🎉

Daniel, pined-lizard edition

@kev So static sites are fine with Mastodon's high traffic fetching? (since caching a static version fixed your issue)

Kev Quirk

@daniel I’d assume so, but can’t say for certain. All depends on the infra the static site is running on. 🤷‍♂️

Lea de Groot 🇦🇺

@kev you could do the random posts with caching if you made it a little less random, for example the set of posts displayed lasts an hour (I usually do this by modding the post id numbers with the current time stamp, set to the period I want it to refresh at, here hourly)
Although it working might vary with your actual backend implementation, I guess

Kev Quirk

@leadegroot yeah, I’m gonna revisit the whole random posts thing in the future. For now, the button will do.

Andy C

@kev Interesting analysis and ultimate resolution.

'There was a number of people who commented on Mastodon saying that this is a simple problem to fix on the server side. I don't think that's fair'.

I agree with you 100%. You can't ask and encourage folk to run a Mastodon instance and miraculously expect that detailed level of server/admin/network knowledge.

Clark W Griswold until 25-Dec

@kev In your blog post you say “someone like me, who isn't a sysadmin”. I’ve got news for you. If you can do the things you do and do them successfully, you’re a sysadmin. Nice work. You might be a reluctant sysadmin or an unenthusiastic sysadmin, but you’re doing the work and doing it well. Thanks for sharing the journey to solving that problem.

Ross McKay

@kev "simple" is the nastiest thing anyone can say to you about any technical problem.

Kev Quirk

@webaware Exactly. It’s all relative, right?

Tom Walker

@kev Yep, a caching plugin fixes it as you discovered. I'm not familiar with your CMS but for the more common case of Wordpress, installing WP Super Cache (or similar) fixes the problem at a stroke.

TeflonTrout

@kev Great work, and congratulations! You're smarter than It'sFoss

ToddZ

@kev Congrats! Thanks for sharing the solution and the process.

shom 🐧📷🤿🏔️🪚

@kev nice write up, thanks for sharing the journey. Does this effectively mean that your site is a static site except there dashboard/control panel portions? Or just that each post page is "static" (due to cache) and the main page is still generated on each request (like it will fall over if you shared the top level link)?

Go Up