Welcome to My iptv forum

  • Everyone is invited! My iptv forum is for everyone, new and advanced user alike!
  • Searching is key! Before you post a question, use the forum search feature to determine whether your topic has already been covered.
  • Do not start flame wars! If someone has engaged in behavior that is detrimental to the discussion -- spamming, harassment, etc -- report the post and we'll take a look.
  • Tutorial Use NGINX As Wowza Cache

    Tutorial Use NGINX As Wowza Cache
    peppetester Offline

    peppetester

    New member
    Member
    Sep 3, 2020
    10
    195
    28
    mexico
    Use NGINX As Wowza Cache
    Please, Log in or Register to view URLs content!

    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
    Please, Log in or Register to view URLs content!

    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
    Please, Log in or Register to view URLs content!


    apt-get update
    apt-get install nginx -y
    Server tuning
    Please, Log in or Register to view URLs content!

    In order to allow the cache servers to fully utilize their resources, several adjustments should be made. Please check out our
    Please, Log in or Register to view URLs content!


    NGINX tuning
    Please, Log in or Register to view URLs content!

    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
    Please, Log in or Register to view URLs content!

    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
    Please, Log in or Register to view URLs content!
    Please, Log in or Register to view URLs content!


    Or
    Please, Log in or Register to view URLs content!
     
    Last edited by a moderator:
    Relate Threads
    RazRav Offline

    RazRav

    Living life @ 25 FPS
    Staff member
    Moderator
    Moderator
    VIP Member
    Apr 13, 2020
    616
    6,217
    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

    New member
    Member
    Apr 9, 2020
    12
    19
    3
    Use NGINX As Wowza Cache
    Please, Log in or Register to view URLs content!

    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
    Please, Log in or Register to view URLs content!

    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
    Please, Log in or Register to view URLs content!


    apt-get update
    apt-get install nginx -y
    Server tuning
    Please, Log in or Register to view URLs content!

    In order to allow the cache servers to fully utilize their resources, several adjustments should be made. Please check out our
    Please, Log in or Register to view URLs content!


    NGINX tuning
    Please, Log in or Register to view URLs content!

    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
    Please, Log in or Register to view URLs content!

    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
    Please, Log in or Register to view URLs content!
    No quote
    Please, Log in or Register to view URLs content!


    Or
    Please, Log in or Register to view URLs content!
     

    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
    126
    Guests online
    776
    Total visitors
    902
    18,334Threads
    64,162Messages
    62,984Members
    maniak77Latest member
    Top