ant-media / Ant-Media-Server

Ant Media Server is a live streaming engine software that provides adaptive, ultra low latency streaming by using WebRTC technology with ~0.5 seconds latency. Ant Media Server is auto-scalable and it can run on-premise or on-cloud.
https://antmedia.io
Other
4.3k stars 636 forks source link

Latency in Global cluster: Investigation Case-1 #6799

Open yashtandon113 opened 4 days ago

yashtandon113 commented 4 days ago

Steps to reproduce

  1. Deploy Origin in South Brazil via cluster

  2. Deploy Edge in Ohio via cluster
Connect them via VPC peering following this document
  3. Publish the stream on the South Brazil Origin
  4. Play the HLS stream via Ohio Edge

Expected behavior

Each HLS chunks should be downloaded around 100ms

Actual behavior

Each HLS chunks takes about 800 ms to 1 sec download time in browsers. The HLS stream is taking time to load, causing more latency in the playback

Goal

The goal of this investigation is to find out where the bottleneck is. It may be due to VPC or networking between Ohio and Brazil or may be even something in the Ant Media Server delay. First find out everything is ok in VPC and networking between Ohio and Brazil by making some tests with other tools