this post was submitted on 24 Sep 2023
34 points (88.6% liked)

Selfhosted

40132 readers
784 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

Hi,

I'm currenty using Oracle Free Tier for Jellyfin (hosted in Paris) and i wanted to know what is the proper way to speed up media delivery when i'm far away from the server location ? (Korea currently)

EDIT : After all your replies, my VPN through Hong Kong give me the best speed.

top 17 comments
sorted by: hot top controversial new old
[–] redcalcium@lemmy.institute 35 points 1 year ago* (last edited 1 year ago) (1 children)

Peering is actually a complex issue. The ISP you're currently using might not have a good peering with your data center operator.

One way to force a different peering is by complaining to your ISP. Include the server's IP address in the complain, and their sysadmin might take a look and alter their routing table so traffics going to your data center will go through different route (assuming the ISP is not shitty and have multiple high quality peering AND actually looking at your support request).

Another way is by using a VPN. By using a VPN, you'll bypass your ISP's network routing. Your traffic will go through your VPN provider's data center instead, which have completely different peering partners than your ISP. Try connecting to different country (e.g. Singapore, Hong Kong, Japan, Europe) to see which one is the fastest. For example, your ISP might have a good peering to Hong Kong, so by connecting to a Hong Kong VPN server, you'll bypass your ISP's shitty peering to Europe.

Finger cross though. In general, connection between this part of Asia and Europe is not great because there is no direct route. Connection to US is a lot faster in comparison because there are many direct undersea fiber optics links.

[–] Mateleo@lemmy.dbzer0.com 6 points 1 year ago (1 children)

Thank you for your reply! I've just tested with my VPN and Hong Kong gives me the best speed. (Like 20x more)

[–] redcalcium@lemmy.institute 7 points 1 year ago

I was expecting you'll get like 2x improvement max. 20x is crazy lmao.

[–] m0nky@lemmy.dbzer0.com 22 points 1 year ago* (last edited 1 year ago)

Okay, so I have actually lived in Korea for 15 years, and am into self hosting, servers for media, etc.

What I can tell you is, you are fucked. Peering to anywhere other than Japan is a nightmare.

Give up and build your own server in your own home. No amount of peering tricks or CDNs will help you.

The best you'll get in terms of connections to major service providers is hosting in Dallas, which should get you around 100mbps.

[–] peter@feddit.uk 19 points 1 year ago

Welcome to the reason why a competitor to YouTube is almost impossible. Network routing is extremely complicated and short of laying your own cables or having multiple points of presence there's not much you can do about it.

[–] ryannathans@aussie.zone 8 points 1 year ago (1 children)

You're probably limited by your TCP window sizes and congestion control algorithm. Look up a TCP throughput calculator and adjust your window size/congestion control as needed.

If your hosting provider doesn't grant access to this level, you could try various tunnels, like a UDP VPN that might be more resiliant. Again, not sure how limited you are with your provider. Worst case you could UDP VPN into a server in the same city as your host

[–] jonne@infosec.pub 0 points 1 year ago* (last edited 1 year ago) (1 children)

Yeah, I wouldn't think high latency would be too much of an issue for streaming (except maybe for the initialisation), as long as the client has a decent buffer size and doesn't wait for a packet to arrive before requesting the next one. What client are you using to play your videos?

[–] Mateleo@lemmy.dbzer0.com 2 points 1 year ago

Jellyfin Media Player or the website player

[–] fossdruid@lemmy.ml 4 points 1 year ago

I know it sounds funny, but look up the "long, fat pipe problem." Latency matters to TCP network connections and signals can only move so fast through a wire.

[–] Decronym@lemmy.decronym.xyz 3 points 1 year ago* (last edited 1 year ago)

Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:

Fewer Letters More Letters
IP Internet Protocol
TCP Transmission Control Protocol, most often over IP
UDP User Datagram Protocol, for real-time communications
VPN Virtual Private Network
VPS Virtual Private Server (opposed to shared hosting)

5 acronyms in this thread; the most compressed thread commented on today has 13 acronyms.

[Thread #160 for this sub, first seen 24th Sep 2023, 08:15] [FAQ] [Full list] [Contact] [Source code]

[–] nutbutter@discuss.tchncs.de 2 points 1 year ago

They are limited to 50mbps, as far as I remember, and considering your distance, I would say the ping speeds should be somewhere between 170ms and 250ms.

[–] jeena@jemmy.jeena.net 1 points 1 year ago (1 children)

My PeerTube server https://tube.jeena.net is in Germany and I'm also in Korea, but I don't really feel any speed problems.

[–] Rootiest@lemm.ee 0 points 1 year ago* (last edited 1 year ago) (2 children)

Ok but isn't peertube defederated?

Which means (unless I grossly misunderstand the concept)

that your video(s) are stored not only on your own server but also shared out to other servers which also keep a copy cached.

So in this scenario it would be very much immune to these concerns because your video(s) will be streamed from the closest federated server to you which has a copy, meaning you will always get the best throughput no matter what your physical location is or what it was when you uploaded.

[–] Atemu@lemmy.ml 1 points 1 year ago (1 children)

*~~de~~federated

Videos are shared p2p between users currently watching the same video. Even then they only keep a certain amount in cache to share with others, so they must watch roughly the same section of the video as each other aswell.

[–] Rootiest@lemm.ee 1 points 1 year ago (1 children)

Ah interesting.

So unless you are watching a currently very popular video you are likely just streaming from the server where the video was originally uploaded?

[–] Atemu@lemmy.ml 2 points 1 year ago

That is my understanding.

[–] jeena@jemmy.jeena.net 1 points 1 year ago

Ideally yes, but only the public videos are shared with other servers. Most of the videos on my instance are internal, so only people who have an account on it can access the videos.