Some weird, German communist, hello. He/him pronouns and all that. Obsessed with philosophy and history, secondarily obsessed with video games as a cultural medium. Also somewhat able to program.

https://abnormalbeings.space/

https://liberapay.com/Wxnzxn/

  • 6 Posts
  • 10 Comments
Joined 10 days ago
cake
Cake day: March 6th, 2025

help-circle




  • See my comment to kayzeekayzee, I don’t think local options exist - but I am also relatively new myself - so maybe someone else knows something.

    But if you have those 10TB somewhere you can put behind a domain name and server installation - This is the official documentation.

    Of note: The part in the config file (usually /var/www/peertube/config/production.yaml) looks like this (my current config as an example)

    redundancy:
      videos:
        check_interval: '15 minutes' # How often you want to check new videos to cache
        strategies: # Just uncomment strategies you want
          -
            size: '50GB'
            # Minimum time the video must remain in the cache. Only accept values > 10 hours (to not overload remote instances)
            min_lifetime: '48 hours'
            strategy: 'most-views' # Cache videos that have the most views
          -
            size: '150GB'
            # Minimum time the video must remain in the cache. Only accept values > 10 hours (to not overload remote instances)
            min_lifetime: '48 hours'
            strategy: 'trending' # Cache trending videos
          -
            size: '100GB'
            # Minimum time the video must remain in the cache. Only accept values > 10 hours (to not overload remote instances)
            min_lifetime: '48 hours'
            strategy: 'recently-added' # Cache recently added videos
            min_views: 10 # Having at least x views
    
    


  • Basically, you can set up your PeerTube server to mirror videos from your federated network according to algorithms (and also by adding videos manually).

    PeerTube uses the WebTorrent protocol, so that a video that gets super popular isn’t as likely to crash the server it’s on or essentially DDOS it. In this case, my server has a significant portion of HDD space set aside for some servers I trust to have quality content, so that recent videos, trending videos and their overall most watched videos are mirrored by mine (rotating them in and out automatically). The server will be a peer seeding the video while it is watched anywhere, thus reducing the load on the original server, and making the video more resilient against uptime failure of the original server.