What's new
Install the app
How to install the app on iOS

Follow along with the video below to see how to install our site as a web app on your home screen.

Note: This feature may not be available in some browsers.

Welcome to My Sharing Site

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Tutorial Use NGINX As Wowza Cache

Tutorial Use NGINX As Wowza Cache
peppetester Offline

peppetester

New member

Member
Sep 3, 2020
10
203
28
mexico
Use NGINX As Wowza Cache
Wowza server can both transcode and serve your HLS/DASH stream,
but sometimes serving the files to many users from the origin itself can overload the Wowza server, which is already busy transcoding the video. In order to increase the amount of users that you can serve, a common approach is to setup cache servers (one or more) to reduce the load of serving the files from the Wowza server to the cache servers.
In this guide we will use Ubuntu servers with nginx as a warm cache for Wowza.
Example setup
A standard setup might be compiled from the following servers:
  • 1x Wowza transcoder
  • 3x NGINX caching server (Ubuntu)

    wowza-nginx.png
In this example the servers are connected to the same local network, though they can also be remote and IP address should be changed respectively.
Install nginx

apt-get update
apt-get install nginx -y
Server tuning
In order to allow the cache servers to fully utilize their resources, several adjustments should be made. Please check out our

NGINX tuning
Here is a complete nginx config tuned for caching.
Be sure to edit the upstream section to match your wowza server ip and port, multiple servers can be added - one per line (don't forget the semi-colon).

Replace /etc/nginx/nginx.conf completely with this
(The config might be on /usr/local/nginx/conf/nginx.conf on certain platforms)


NOTE: Did you update your Wowza actual ip address?
Go up and search for '# ADD YOUR SERVERS HERE' comment



After setting up the config we check that it's valid


Then we restart the server to apply the new configuration


service nginx restart
Load Balancing
The last step is to point you users to request the content from nginx as if its wowza. This can be done using DNS or via randomly assigning one of the servers.


now becomes


Or
 
Last edited by a moderator:
Relate Threads
RazRav Offline

RazRav

Living life @ 25 FPS

Staff member
VIP Member
Moderator
Moderator
Apr 13, 2020
615
6,445
93
India
Please check forum before post here my slef already posted this before a week i think you copied from Trijo site
 
K Offline

kalaiselvan2403

Guest

Use NGINX As Wowza Cache
Wowza server can both transcode and serve your HLS/DASH stream,
but sometimes serving the files to many users from the origin itself can overload the Wowza server, which is already busy transcoding the video. In order to increase the amount of users that you can serve, a common approach is to setup cache servers (one or more) to reduce the load of serving the files from the Wowza server to the cache servers.
In this guide we will use Ubuntu servers with nginx as a warm cache for Wowza.
Example setup
A standard setup might be compiled from the following servers:
  • 1x Wowza transcoder
  • 3x NGINX caching server (Ubuntu)

    wowza-nginx.png
In this example the servers are connected to the same local network, though they can also be remote and IP address should be changed respectively.
Install nginx

apt-get update
apt-get install nginx -y
Server tuning
In order to allow the cache servers to fully utilize their resources, several adjustments should be made. Please check out our

NGINX tuning
Here is a complete nginx config tuned for caching.
Be sure to edit the upstream section to match your wowza server ip and port, multiple servers can be added - one per line (don't forget the semi-colon).

Replace /etc/nginx/nginx.conf completely with this
(The config might be on /usr/local/nginx/conf/nginx.conf on certain platforms)


No quote
NOTE: Did you update your Wowza actual ip address?
Go up and search for '# ADD YOUR SERVERS HERE' comment



After setting up the config we check that it's valid


No quote
Then we restart the server to apply the new configuration


service nginx restart
Load Balancing
The last step is to point you users to request the content from nginx as if its wowza. This can be done using DNS or via randomly assigning one of the servers.

No quote

now becomes
No quote

Or
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Top Posters of the Month

Online statistics

Members online
108
Guests online
524
Total visitors
632
Top