57 points
*

Just put the site behind a cache, like Cloudflare, and set your cache control headers properly?

They mention that they are already using Cloudflare. I’m confused about what is actually causing the load. They don’t mention any technical details, but it does kinda sound like their cache control headers are not set properly. I’m too lazy to check for myself though…

permalink
report
reply
22 points
*

I’ve found that if left on default settings, CloudFlare is not that great at caching. It requires a bit of configuration to really make it sing. itsfoss.com thought they were “using CloudFlare” but probably not to it’s fullest potential.

permalink
report
parent
reply
22 points

Even without Cloudflare, simple NGINX microcaching would help a ton there.

It’s a blog, it doesn’t need to regenerate a new page every single time for anonymous users. There’s no reason it shouldn’t be able to sustain 20k requests per second on a single server. Even a one second cache on the backend for anonymous users would help a ton there.

They have Cloudflare in front, the site should be up with the server being turned off entirely.

permalink
report
parent
reply
10 points
*

I’m confused about what is actually causing the load.

Thousands of instances simultaneously fetching link previews from a VPS w/2GB RAM.

https://mastodon.social/@itsfoss/112369476450719989

permalink
report
parent
reply
16 points

If caching is properly configured, the cache (Cloudflare) will see thousands of requests, but the VPS should only see one request.

permalink
report
parent
reply
0 points

This should be front and center, caching won’t be able to make up for that…

permalink
report
parent
reply
27 points
*

Of course it will, cloudflare is in front of it, they can definitely handje this traffic as long as itsfoss bothers to set correct caching headers for cloudflare to use. That’s the entire point of cloudflare…

permalink
report
parent
reply
41 points

There’s another reason I don’t share “It’s FOSS” links anywhere: this should have been a github issue but it’s turned into a clickbaity headline. Every othe article coming out of “It’s FOSS” is either low effort, sensationalist, or both.

permalink
report
reply
2 points

The article mentions there are aleady a few issues, some quite old. The article is useful for raising awareness and hopefully getting the fix prioratized higher.

permalink
report
parent
reply
40 points

Real talk, the mastodon traffic stampede isn’t that bad for a properly configured website.

permalink
report
reply
32 points

I always downvote posts with titles like this. Here’s Why -

permalink
report
reply
4 points

same. read more to find out!

permalink
report
parent
reply
30 points

Their website isn’t properly caching pages which is the real reason they’re having problems.

permalink
report
reply
14 points

I think they just advertised how trivial it would be to take their website down…

permalink
report
parent
reply

Fediverse

!fediverse@lemmy.world

Create post

A community to talk about the Fediverse and all it’s related services using ActivityPub (Mastodon, Lemmy, KBin, etc).

If you wanted to get help with moderating your own community then head over to !moderators@lemmy.world!

Rules

  • Posts must be on topic.
  • Be respectful of others.
  • Cite the sources used for graphs and other statistics.
  • Follow the general Lemmy.world rules.

Learn more at these websites: Join The Fediverse Wiki, Fediverse.info, Wikipedia Page, The Federation Info (Stats), FediDB (Stats), Sub Rehab (Reddit Migration), Search Lemmy

Community stats

  • 3K

    Monthly active users

  • 1.6K

    Posts

  • 54K

    Comments