🏕️ my adventures in #selfhosting - day 171 (brainstorming edition) 🤔
-
️ my adventures in #selfhosting - day 171 (brainstorming edition)
Good morning Fedi friends!
As I prep the launch of my Fediverse intro video (premiering this afternoon at #FediForum, then widely on Monday) I have a new plan to mitigate traffic surges and potential issues to my VPS.
I'd love your advice / feedback about my plan. You always have such smart insights.
Some background info that's relevant:
Remember how a few months ago the "Mastodon Hug of Death" would take my VPS offline within seconds of sharing a link to a new blog post? The issue was so bad I had to turn the blog private till I had solid caching in place. Varnish cache solved this.
Problem is, my PeerTube is on another VPS that doesn't have Varnish... and I'm scared that direct links to my PeerTube video page from Mastodon would freeze or take offline the whole VPS. Not so much for the streaming per se - PeerTube has P2P functionalities that share bandwidth - but more for having hundreds / thousands of servers trying to fetch the video's cover image.
So, my plan:
Publishing the video as UNLISTED on my PeerTube (so that nobody has a direct link to it) and then embedding it in a blog post on my Ghost blog... so that when people share that link from Mastodon, Varnish will do its magic... the cover image from the video won't be affected because Mastodon will fetch the cover image of the BLOG post. Then I would let #PeerTube's P2P do its magic.
Thoughts?
Thank you in advance
#MySoCalledSudoLife #EleFediVideos -
O ozoned@social.ozoned.net shared this topic
-
️ my adventures in #selfhosting - day 171 (brainstorming edition)
Good morning Fedi friends!
As I prep the launch of my Fediverse intro video (premiering this afternoon at #FediForum, then widely on Monday) I have a new plan to mitigate traffic surges and potential issues to my VPS.
I'd love your advice / feedback about my plan. You always have such smart insights.
Some background info that's relevant:
Remember how a few months ago the "Mastodon Hug of Death" would take my VPS offline within seconds of sharing a link to a new blog post? The issue was so bad I had to turn the blog private till I had solid caching in place. Varnish cache solved this.
Problem is, my PeerTube is on another VPS that doesn't have Varnish... and I'm scared that direct links to my PeerTube video page from Mastodon would freeze or take offline the whole VPS. Not so much for the streaming per se - PeerTube has P2P functionalities that share bandwidth - but more for having hundreds / thousands of servers trying to fetch the video's cover image.
So, my plan:
Publishing the video as UNLISTED on my PeerTube (so that nobody has a direct link to it) and then embedding it in a blog post on my Ghost blog... so that when people share that link from Mastodon, Varnish will do its magic... the cover image from the video won't be affected because Mastodon will fetch the cover image of the BLOG post. Then I would let #PeerTube's P2P do its magic.
Thoughts?
Thank you in advance
#MySoCalledSudoLife #EleFediVideos@elena have you verified that this works? Honestly if this works it's brilliant. I didn't even know about Varnish, so I'll check it out!
-
@elena have you verified that this works? Honestly if this works it's brilliant. I didn't even know about Varnish, so I'll check it out!
@ozoned I've added a plugin to my PeerTube that allows me to embed unlisted videos... and tested it out on my self-hosted Ghost blog, it works!
-
@ozoned I've added a plugin to my PeerTube that allows me to embed unlisted videos... and tested it out on my self-hosted Ghost blog, it works!
@elena you're brilliant!