Just testing the load on my server. May delete later.
Also, enjoy the video of Gaybo on the Late Late Show in the early 80s.
https://odd.blog/2022/12/21/computers-are-the-big-thing-this-year/
Just testing the load on my server. May delete later.
Also, enjoy the video of Gaybo on the Late Late Show in the early 80s.
https://odd.blog/2022/12/21/computers-are-the-big-thing-this-year/
261 embed requests since this was posted a few minutes ago.
359 requests for the post itself.
1 minute load average topped out at 1.34 for 5 seconds before going back to 0.34.
I had garbage collection TTL set to 60 seconds and I think it expired in the middle of that rush of requests for the page.
I had tail -f on my log in a screen session, which adds a bit to the load too.
My blog was still very responsive the whole time.
Now to test it again with a longer TTL. Not sure if Mastodon instances cache the preview.
https://odd.blog/2022/12/21/computers-are-the-big-thing-this-year/
Looks like they do cache the preview. That's good news at least. :)
Here's a very old blog post, which surprisingly has a link to a blog post that is still alive. Colour me surprised!
289 requests for the post
273 requests for the embed preview
1 minute load average topped out at 0.71 for 5 seconds.
The post was cached by WP Super Cache, with a garbage collection TTL of 600 seconds, and GC check every 120 seconds. Only using simple caching.
Apache:
KeepAlive off.
5 start servers.
Min 10 spare servers.
29 processes.
I currently have 1.8K followers, which might be more than the average account here, so I guess those followers are split over about 270 instances.
@tomw the only thing I will say, is the very initial rush might cause problems if they don't have the spare capacity to meet it.
That's why I have the "5 min spare servers". I'm going to change that to 1, restart Apache and test it again with this URL:
@tomw With start and min spare servers set to 1 it took much longer to service every request and Load went up to 1.24.
It definitely pays to have the capacity there in the first place, even if the web server is just idling.
Also, if it's a new post, there might not be a cache file there when the first few requests come in for it. This is a long standing problem though. Popular sites with RSS feeds have (or had) the same issue when feed readers were popular. Need to pre-load new posts...
@tomw Good idea. Even "simple caching" with WP Super Cache works wonders.
I'll test with caching turned off and monitor the load. :)
Here's another old blog post. Not cached at all.
@tomw Interesting. Load average only spiked to 1.12 with no caching! Not bad!
267 requests for the embed of that page.
290 requests for the page itself.
No extra caching like memcached or anything.
This is with Apache reset to 5 start servers, min spare servers set to 10 again.
@gidi Yeah, people like that will want sites running on WordPress.com or similar, even if they don't get the human eyeballs on it afterwards.
Then again, there is probably only one request per Mastodon instance, so as long as there are few instances it might be manageable.
A quick check shows 390 unique user agents hitting the "i-have-to-try-this" URL. Not bad for 1.8K followers.