How to Setup a Scalable Ultra Low Latency Streaming Cluster in AWS — Ant Media Server

Infrastructure as a Service is already rising

Getting Started for Ultra-Low Latency Streaming Service on AWS

Step 1: Install MongoDB Server

$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
$ echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
$ sudo apt-get update
$ sudo apt-get install -y mongodb-org

sudo nano /etc/mongod.conf

sudo service mongod restart
sudo systemctl enable mongod.service

Step 2: Install Scalable Origin Group

#!/bin/bash
cd /usr/local/antmedia
./change_server_mode.sh cluster {MongoIP}

Step 3: Install Scalable Edge Group

Step 4: Install Load Balancer

Logging in Ant Media Server Web Panel

echo -n 'new-password' | md5sum
$ mongo
> use serverdb
> db.getCollection('User').find()
> db.User.updateOne({"_id": "5e978ef3c9e77c0001228040"}, {$set:{password: "md5Password"}})

Enable IP Filtering

Test Flight

--

--

Ant Media Server, open source software, supports publishing live streams with WebRTC and RTMP. It supports HLS(HTTP Live Streaming) and MP4 as well.

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store