Servers
Add Server
You can go to the Server > Add Server tab, click it for open the add server settings page and fill the server SSH and other info. Make sure the Install / Reinstall option is selected. Then click the Save button, then it will install the panel to this server.
Max Bandwidth This option is for load balancing feature. Set up the download and upload to the actually max bandwidth will help the panel to do the automatic load balancing better.
Public IP / Domain This option is very useful when you are mapping the public IP or domain to this server. The IP or domain name you configured here will be used in the output URLs.
Enable HTTPS
We are using Let's Encrypt for request the SSL certification. If you need enable HTTPS, first make sure your domain is point to the IP of server. then go to the server settings page and make following settings:
- Set up the
http portoption to 443. - Set up the domain name in
Public IP / Domainoption. - Set up the
HTTPSoption toLet's Encrypt HTTP Authif 80 port is not used by other application. Otherwise, you need useLet's Encyrpt DNS Auth, it will needs you set domain's TXT record. - Click
Saveand use newhttps://...URL to access the panel and streaming contents.
Monitoring
You can go to the Server > Manage Servers page, and click the first icon at settings column, it will open the server usage page and show the CPU, Memory, Network and GPU usage in real-time.
Benchmark
You can go to Tools > Benchmark page for test and benchmark the transcoding performance of your servers.
Tips
For get an accurate result, please stop all the streams that running on the panel and other software that are using the CPU or GPU.
Port Mapping
If you are mapping the public IP's port to the local server, please remember to use same port for public and local. And the panel is using port 80 for http, 1935 for rtmp in default. If you added the slave servers to main panel, you also need open the MySQL 4326 port.
Load Balancing
For enabled the automatic load balancing for your live stream and VOD contents, you need add some servers to the main panel first via above Add Server guide. Please make sure you set up the Max Bandwidth option's download and upload bandwidth correctly, it's important for load balancing. Then go to the Settings > System Settings page, select the servers you want to use for load balancing in the Load Balancers option.
Now you have the load balancing is enabled. According to the number of servers you added, the download and upload bandwidth of each server, the number of streams and active connections, it will automatically balancing the stream to the idle server and use HTTP 307 response to redirect the client to the optimal server.
Database
All the server, stream, adapter, user and account info are stored in the background database, I strongly recommend you check the following guide and enable a daily database backup, in case of server got an unrecoverable crash you can easy to re-setup everything.
Backup
You can go to Settings > System Settings page and set up the Database Backup Schedule option for enable a daily backup. For example: if you select the all weekdays, set hours to 6 and minutes to 0. It will make a daily backup at 6 AM. Also, we have a Max Backups option for specified how many recent automatic backups will be kept in the disk, the old automatic backup will be deleted.
Also, you can go to Settings > Database Settings page for click the Backup Now button for take a backup immediately, this is very useful when you plan to upgrade or do anything danger things to the panel.
Also, don't forget to download the recent backup to your PC periodically, because the backup is store on the server, you may lost the access to the server if disk, internet or OS crash.
Restore
You can go to the panel's Settings > Database Settings page, and click the Restore From button for upload and restore from the backup.
Change Main Server To Balancer
- Login to old main panel.
- Go to the
Settings > Database Settingspage, click the most right dropdown icon in the toolbar, and click theBackup Now. Then download the backup to your PC.
- Go to the
- Install same version panel on new server.
- Login to new main panel.
- Go to the
Settings > Database Settingspage, click the most right dropdown icon in the toolbar, and click theRestore Fromfor upload your backup and restore. - Wait the restore complete and login to the panel with old panel's username and password.
- Go to the
Server > Add Serverpage, fill the old server's ssh info here for add the old server as balancer. - Go to the
Server > Manage Serverspage'sMasterserver's settings page, click theTransfer Configuration To Another Serveroption and select the balancer you just added in step 3 and save. - If the license status is yellow, you can reissue the license on
https://www.xaccel-codec.comand reactivate the license on the panel.
- Go to the
Change Balancer to Main Server
Login to old main panel.
- Go to the
Server > Manage Serverspage, and go to the balancer server's settings page, clickTransfer Configuration To Another Serverfor moving the streams to Main or another balancer. - Go to the
Server > Manage Serverspage, delete the balancer server. - Go to the
Settings > Database Settingspage, click the most right dropdown icon in the toolbar, and click theBackup Now. Then download the backup to your PC.
- Go to the
SSH to the balancer server.
- delete /opt/xaccel-codec folder via command
rm -rf /opt/xaccel-codec. - follow the installation guide to install same version panel on this server.
- delete /opt/xaccel-codec folder via command
Login to the new main panel.
- Go to the
Settings > Database Settingspage, click the most right dropdown icon in the toolbar, and click theRestore Fromfor upload your backup and restore. - After restored backup, login to www.xaccel-codec.com, reissue the orange status license and reactivate it on the panel.
- Go to the
Move Main to Another Server
Login to old main panel, and go to
Server > Manage Serverspage, click the second icon under settings column to open the license page, copy the license to somewhere then click theReissuebutton to remove the license.Run this command on old main server to sync files to new server. Replace
DESTto the new server's IP, if new server using other SSH port instead of 22, replace 22 to new server's port.systemctl stop xaccel-codec && systemctl disable xaccel-codecscp -P 22 -r /opt/xaccel-codec root@DEST/optscp -P 22 /etc/systemd/system/xaccel-codec.service root@DEST:/etc/systemd/system/
SSH to new server and run following command:
systemctl daemon-reload && systemctl enable xaccel-codec && systemctl start xaccel-codec
Login to new main panel, and go to te
Server > Manage Serverspage, click the second icon under settings column to open the license page and activate the license you reissued in first step.