This Article is Under Construction!

Difference between revisions of "Wowza Server"

From SETV Springfield Technical Wiki
Jump to: navigation, search
m
m
 
(18 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[File:Wowza Case.jpg|thumb|Exterior case to the Wowza Server; the Corsair Air 540]]
+
{{infobox custom computer
 +
| Image          = [[File:Wowza Case.jpg|frameless]]
 +
| Caption        = Corsair 540 Tower Case
 +
| Dates          = operational 2015
 +
| Location      = SETV Main Office - Rack
 +
| Architecture  = Asus M5A99X EVO R2.0 ATX AM3+ Motherboard AMD FX-8320 3.5GHz 8-Core Processor
 +
| Memory        = 16.00 GB
 +
| Storage        = 120GB OS;<br>2.8 TB VOD1 <br> 3.7TB VOD2;<br>500GB Backup
 +
| Speed          = 3.50GHz (peak)
 +
| Power          = 650 W
 +
| OS            = [[Debian]] Jessie 8 64-bit
 +
| Purpose        = Wowza Streaming and VOD server
 +
}}
 +
{{Under Construction}}
 
The Wowza Media Server is what is used by the Springfield SETV office to broadcast our live streams online, and provide Video-On-Demand (VOD) content to our users.
 
The Wowza Media Server is what is used by the Springfield SETV office to broadcast our live streams online, and provide Video-On-Demand (VOD) content to our users.
  
Line 7: Line 20:
 
!Type
 
!Type
 
!Notes
 
!Notes
!
 
 
|-
 
|-
 
|CPU
 
|CPU
 
|AMD FX-8320 3.5GHz 8-Core Processor
 
|AMD FX-8320 3.5GHz 8-Core Processor
 
|Cooling: Coolermaster Hyper 212 EVO
 
|Cooling: Coolermaster Hyper 212 EVO
|
 
 
|-
 
|-
 
|Motherboard
 
|Motherboard
 
|ASUS M5A99X EVO Rev.2.0 AM3+
 
|ASUS M5A99X EVO Rev.2.0 AM3+
|
 
 
|
 
|
 
|-
 
|-
Line 22: Line 32:
 
|Corsair Vengeance 16GB DDR3-1600  
 
|Corsair Vengeance 16GB DDR3-1600  
 
|2x8GB
 
|2x8GB
|
 
 
|-
 
|-
 
|Storage
 
|Storage
 
|Intel 530 Series 120 GB 2.5" SSD
 
|Intel 530 Series 120 GB 2.5" SSD
 
|(/dev/sda) Operating System & Wowza Install Root
 
|(/dev/sda) Operating System & Wowza Install Root
|
 
 
|-
 
|-
 
|
 
|
 
|Seagate Barracuda 2TB 3.5" 7200RPM HDD
 
|Seagate Barracuda 2TB 3.5" 7200RPM HDD
 
|(/dev/sdb) Wowza VOD, Live, FTP, WowzaShares
 
|(/dev/sdb) Wowza VOD, Live, FTP, WowzaShares
|
 
 
|-
 
|-
 
|
 
|
|Seagate Barracuda 2TB 3.5" 7200RPM HDD
+
|Hitachi Deskstar 7K3000 3TB 3.5" 7200RPM HDD
|(/dev/sdc) Wowza Backup Drive
+
|(/dev/sdc) Wowza OS and VOD Backup Drive
|
 
 
|-
 
|-
 
|Video Card
 
|Video Card
 
|PNY Quadro K4000
 
|PNY Quadro K4000
|
 
 
|
 
|
 
|-
 
|-
 
|Case
 
|Case
 
|Corsair Air 540 ATX Mid Tower
 
|Corsair Air 540 ATX Mid Tower
|
 
 
|
 
|
 
|-
 
|-
 
|PSU
 
|PSU
 
|Corsair RM 650W 80+ Gold Modular
 
|Corsair RM 650W 80+ Gold Modular
|
 
 
|
 
|
 
|-
 
|-
 
|Optical Drive
 
|Optical Drive
 
|ASUS DRW CD/DVD Writer
 
|ASUS DRW CD/DVD Writer
|
 
|
 
|-
 
|
 
|
 
|
 
|
 
|-
 
|
 
|
 
|
 
 
|
 
|
 
|}
 
|}
Line 74: Line 66:
  
 
If all is lost, and you need to start from scratch, visit Setting Up Wowza for the First Time.
 
If all is lost, and you need to start from scratch, visit Setting Up Wowza for the First Time.
 +
 +
=== Ajenti ===
 +
There is a web-based management panel installed on the Wowza server. It is a free, open-sourced control panel and is a bit limited. It's purpose it to help aid in managing certain settings from a comfortable GUI. The other purpose it to graphically see the status of all important hardware components.
 +
 +
To access this panel, from the school's network only, go to http://wowza.ssdcougars.tv and click "AJENTI PANEL"
  
 
== Wowza Software ==
 
== Wowza Software ==
 
The streaming software we use is called Wowza Streaming Engine. The control panel backend is called Wowza Streaming Engine Manager. Users use the WSE Manager to administer common Wowza settings. Below we will go over the basics of starting, stopping the Wowza Service, Upgrading, and troubleshooting streams.
 
The streaming software we use is called Wowza Streaming Engine. The control panel backend is called Wowza Streaming Engine Manager. Users use the WSE Manager to administer common Wowza settings. Below we will go over the basics of starting, stopping the Wowza Service, Upgrading, and troubleshooting streams.
 +
 +
[[Wowza Streaming Engine]]<br>
 +
[[Wowza Streaming Engine/Manager]]
 +
 +
== Backups ==
 +
The primary OS and all of it's contents are backed up to <code>/media/osbak</code>
 +
 +
The system uses <code>rsnapshot</code> and a <code>cron</code> job to execute it every night.
 +
 +
This backs up the critical files, to a ''partition'' on the backup drive. The other partition is the off-line backup for the VPS server.
 +
 +
If the system needs to be rebuilt, use <code>setv</code> as the main user, rebuild from scratch, then copy back the<code>/usr</code> <code>/root</code> <code>/bin</code> <code>/etc</code> folders.
 +
 +
== Notes to Consider ==
 +
 +
=== Shell Access ===
 +
Shell access (SSH) has been highly secured. All access attempts to port 22 are blocked except from whitelisted IPs.
 +
 +
All IP's under <code>10.130.0.0/16</code> are whitelisted, meaning any computer on the SSD Network should have access to the SSH port.
 +
 +
To modify the Whitelist, use the monitor connected to the machine (or use PuTTY with X11 forwarding and Xming) launch <code>firestarter</code> and click the Policy tab
 +
 +
You can add or remove rules within Firestarter - Leave Ajenti, FTP, HTTP, HTTPS, 8088 and 1935 ALONE! Do not touch these.
 +
 +
All SSH access is authenticated by Certificate. If you lost the cert, you will have to learn how to make a new one for SSH, convert it to a .ppk for PuTTY.
 +
 +
Certs are located on the Archive drives.
 +
 +
=== Black screen on reboot, videos don't play, cannot sign in via Monitor (CAN sign in via SSH/PuTTY) ===
 +
Check your disk space, chances are during a reboot it did not mount the backup drive for VOD2, which is networked. If a network mount is not ready in time for the backup rsnapshot job, then it will default create the folder under <code>/media/vod2bak</code> regardless of successful mount. Thus filling the primary OS drive with VOD2 backup data.
 +
 +
To remedy this:
 +
# SSH into Wowza or Console in at machine (CTRL+ALT+F6)
 +
# Sign in as Root
 +
# Issue command <code>df -h</code> and determine the size of <code>/</code> (If <code>/</code> % available is 0, you know the drive is full.)
 +
# Issue command <code>umount /media/vod2bak</code>
 +
# Issue command, again <code>df -h</code>  '''ENSURE THAT YOU <u>''DO NOT''</u>  see <code>10.130.12.192:/mnt/WowzaVOD2BAK/VOD2BAK</code> ON THAT LIST, IF YOU DO GO BACK TO STEP 4 -- OTHERWISE, IF YOU IGNORE THIS AND ISSUE THE NEXT COMMAND WHILE <code>10.130.12.192:/mnt/WowzaVOD2BAK/VOD2BAK</code> IS CONNECTED YOU WILL DELETE THE ENTIRE ARCHIVE!'''
 +
# Issue command: <code>cd /media && rm -rf vod2bak</code>
 +
# To confirm this worked, issue <code>df -h</code> again and confirm that <code>/</code> does not =0%
 +
# Reboot <code>shutdown -r now</code>
  
 
== Notes to add ==
 
== Notes to add ==
Line 82: Line 119:
  
 
nvidia-smi and it's special love with wowza
 
nvidia-smi and it's special love with wowza
 +
 +
Setting up nvidia on this and work with wowza is... a pain in the ASS!!! Follow [https://www.wowza.com/docs/how-to-set-up-wowza-transcoder-nvidia-nvenc-accelerated-encoding-on-ubuntu Wowza's guide]. I KNOW it goes against [https://wiki.debian.org/DontBreakDebian Debian's published best practices], but this is what works.
 +
 +
<s>****'''NOTE'''**** ''THE LATEST COMPATIBLE DRIVER IS <code>367.27</code> ANYTHING LATER WILL NOT WORK!!!<ref>https://www.wowza.com/docs/server-specifications-for-nvidia-nvenc-and-nvidia-cuda-acceleration-with-wowza-transcoder</ref>''</s>
 +
 +
'''**NOTE** AS OF 11/02/2017 NVIDIA VERSION 384.59 is WORKING CORRECTLY, AND IS REQUIRED FOR GNOME TO WORK CORRECTLY'''
  
 
setting up SSH access, using PPK and PuTTY
 
setting up SSH access, using PPK and PuTTY
Line 89: Line 132:
 
FTP public, private, management
 
FTP public, private, management
  
Ajenti
+
[[Ajenti]]
  
 
rsnapshot
 
rsnapshot
  
 
common commands for shell
 
common commands for shell
 +
 +
[[Category:Servers]]
 +
[[Category:SETV Machines]]
 +
<references />

Latest revision as of 02:59, 15 June 2018

Wowza Server
Wowza Case.jpg
Corsair 540 Tower Case
Active operational 2015
Location SETV Main Office - Rack
Architecture Asus M5A99X EVO R2.0 ATX AM3+ Motherboard AMD FX-8320 3.5GHz 8-Core Processor
Power 650 W
Operating system Debian Jessie 8 64-bit
Memory 16.00 GB
Storage 120GB OS;
2.8 TB VOD1
3.7TB VOD2;
500GB Backup
Speed 3.50GHz (peak)
Purpose Wowza Streaming and VOD server

The Wowza Media Server is what is used by the Springfield SETV office to broadcast our live streams online, and provide Video-On-Demand (VOD) content to our users.

Device Build

Component Type Notes
CPU AMD FX-8320 3.5GHz 8-Core Processor Cooling: Coolermaster Hyper 212 EVO
Motherboard ASUS M5A99X EVO Rev.2.0 AM3+
Memory Corsair Vengeance 16GB DDR3-1600 2x8GB
Storage Intel 530 Series 120 GB 2.5" SSD (/dev/sda) Operating System & Wowza Install Root
Seagate Barracuda 2TB 3.5" 7200RPM HDD (/dev/sdb) Wowza VOD, Live, FTP, WowzaShares
Hitachi Deskstar 7K3000 3TB 3.5" 7200RPM HDD (/dev/sdc) Wowza OS and VOD Backup Drive
Video Card PNY Quadro K4000
Case Corsair Air 540 ATX Mid Tower
PSU Corsair RM 650W 80+ Gold Modular
Optical Drive ASUS DRW CD/DVD Writer

Operating System

The chosen operating system for the Wowza Server is Debian 8 64-bit, Codename Jessie. The reason this was chosen was because Linux, overall, is a more stable webserver environment. It is also free compared to RedHat and Windows IIS. Due to it's open-sourced nature, support is only as good as your troubleshooting and Googling.

If all is lost, and you need to start from scratch, visit Setting Up Wowza for the First Time.

Ajenti

There is a web-based management panel installed on the Wowza server. It is a free, open-sourced control panel and is a bit limited. It's purpose it to help aid in managing certain settings from a comfortable GUI. The other purpose it to graphically see the status of all important hardware components.

To access this panel, from the school's network only, go to http://wowza.ssdcougars.tv and click "AJENTI PANEL"

Wowza Software

The streaming software we use is called Wowza Streaming Engine. The control panel backend is called Wowza Streaming Engine Manager. Users use the WSE Manager to administer common Wowza settings. Below we will go over the basics of starting, stopping the Wowza Service, Upgrading, and troubleshooting streams.

Wowza Streaming Engine
Wowza Streaming Engine/Manager

Backups

The primary OS and all of it's contents are backed up to /media/osbak

The system uses rsnapshot and a cron job to execute it every night.

This backs up the critical files, to a partition on the backup drive. The other partition is the off-line backup for the VPS server.

If the system needs to be rebuilt, use setv as the main user, rebuild from scratch, then copy back the/usr /root /bin /etc folders.

Notes to Consider

Shell Access

Shell access (SSH) has been highly secured. All access attempts to port 22 are blocked except from whitelisted IPs.

All IP's under 10.130.0.0/16 are whitelisted, meaning any computer on the SSD Network should have access to the SSH port.

To modify the Whitelist, use the monitor connected to the machine (or use PuTTY with X11 forwarding and Xming) launch firestarter and click the Policy tab

You can add or remove rules within Firestarter - Leave Ajenti, FTP, HTTP, HTTPS, 8088 and 1935 ALONE! Do not touch these.

All SSH access is authenticated by Certificate. If you lost the cert, you will have to learn how to make a new one for SSH, convert it to a .ppk for PuTTY.

Certs are located on the Archive drives.

Black screen on reboot, videos don't play, cannot sign in via Monitor (CAN sign in via SSH/PuTTY)

Check your disk space, chances are during a reboot it did not mount the backup drive for VOD2, which is networked. If a network mount is not ready in time for the backup rsnapshot job, then it will default create the folder under /media/vod2bak regardless of successful mount. Thus filling the primary OS drive with VOD2 backup data.

To remedy this:

  1. SSH into Wowza or Console in at machine (CTRL+ALT+F6)
  2. Sign in as Root
  3. Issue command df -h and determine the size of / (If / % available is 0, you know the drive is full.)
  4. Issue command umount /media/vod2bak
  5. Issue command, again df -h ENSURE THAT YOU DO NOT see 10.130.12.192:/mnt/WowzaVOD2BAK/VOD2BAK ON THAT LIST, IF YOU DO GO BACK TO STEP 4 -- OTHERWISE, IF YOU IGNORE THIS AND ISSUE THE NEXT COMMAND WHILE 10.130.12.192:/mnt/WowzaVOD2BAK/VOD2BAK IS CONNECTED YOU WILL DELETE THE ENTIRE ARCHIVE!
  6. Issue command: cd /media && rm -rf vod2bak
  7. To confirm this worked, issue df -h again and confirm that / does not =0%
  8. Reboot shutdown -r now

Notes to add

fstab

nvidia-smi and it's special love with wowza

Setting up nvidia on this and work with wowza is... a pain in the ASS!!! Follow Wowza's guide. I KNOW it goes against Debian's published best practices, but this is what works.

****NOTE**** THE LATEST COMPATIBLE DRIVER IS 367.27 ANYTHING LATER WILL NOT WORK!!![1]

**NOTE** AS OF 11/02/2017 NVIDIA VERSION 384.59 is WORKING CORRECTLY, AND IS REQUIRED FOR GNOME TO WORK CORRECTLY

setting up SSH access, using PPK and PuTTY

users

FTP public, private, management

Ajenti

rsnapshot

common commands for shell

  1. https://www.wowza.com/docs/server-specifications-for-nvidia-nvenc-and-nvidia-cuda-acceleration-with-wowza-transcoder