Why Add a Load Balancer (LB)?
A Load Balancer is simply another server that does the heavy lifting. While your Main Server manages the database and user accounts, the Load Balancer actually streams the video content to your customers. Adding LBs allows you to support thousands of users without crashing your main panel.
Method 1: Automatic Installation (Recommended)
This is the easiest way. We fix the main server's installer script so you can add servers directly from your admin dashboard.
Step 1: Fix the Script on Main Server
Login to your MAIN SERVER using PuTTY and run this command. This updates the installer to use our working mirror:
Step 2: Add Server in Panel
- Log in to your Xtream UI Admin Panel.
- Go to Load Balancer -> Add Load Balancer.
- Enter the IP Address and Root Password of your NEW server.
- Click Install. The panel will connect to the new server and set it up automatically in 3-5 minutes.
Method 2: Manual Installation
If the automatic method fails, you can install it manually by logging into the new server directly. This is more technical but works 100% of the time.
1Get Your Database Password
You need the password for the user_iptvpro database user. If you forgot it, run this command on your MAIN SERVER to see it:
Look for the line that says Password: xxxxxxxx. Save this!
2Register the Server
Go to your Admin Panel -> Add Load Balancer. Fill in the IP address, but you don't need the root password this time. Save it. Note the Server ID assigned to it.
3Run Installer on New Server
Login to your NEW LOAD BALANCER server via PuTTY and run this command:
When prompted, enter:
- Type LB (for Load Balancer).
- Main Server IP: Enter the IP of your Main Panel.
- MySQL Password: Enter the password you found in Step 1.
- Server ID: Enter the ID you got in Step 2.
4Go Online
Once installation finishes, start the services with this command:
Go back to your Admin Panel and refresh the "Manage Servers" page. Your new Load Balancer should now show as Online!
Important: Network Interface Setting
For the panel to correctly track bandwidth usage (upload/download speeds), you must set the correct Network Interface.
On your Load Balancer server, run ifconfig. Look for the main network ID (usually eth0, ens33, or ens18).
Go to Manage Servers -> Edit Load Balancer and enter this ID in the "Network Interface" field.
