/

1. Create a new server instance

Create a new server instance using the image/AMI that you are currently using for autoscaling


Download the latest Red5 Pro Server distribution from https://account.red5pro.com/download to your local machine.

Create a new server instance for Google

  • From Compute Engine, VM instances, choose Create an Instance in your default zone.
  • In the Boot disk section, click on Change. Select the Custom images tab, and choose your Red5 Pro server image.

Copy the Red5 Pro Server zip file to this instance. SSH into your instance and stop the Red5 Pro service (sudo systemctl stop red5pro). You may need to install new libraries since the last server release, so check the Linux Install instructions and run through software dependencies. Per "How to Upgrade Red5 Pro Server," Rename your existing red5pro folder to bak.red5pro (sudo mv red5pro bak.red5pro). Copy and unzip the new distribution into the same directory where the original red5pro folder was (e.g. /usr/local/). After it is unzipped, rename that directory to red5pro (sudo mv red5pro-server-* red5pro). Copy the following files from the old build to the new: conf/autoscale.xml, webapps/red5-default.xml, and LICENSE.KEY.

Start the server (sudo systemctl start red5pro) and hit the IP address at port 5080 to make sure there are no missing dependencies and the server starts correctly.

Create a new server instance for AWS

  • Navigate to the EC2 Dashboard
  • From left-hand navigation, under INSTANCES, click on Instances, then Launch Instance
  • Step 1: Choose My AMIs - Select the AMI that corresponds to your current autoscaling node configuration.
  • Step 2: Choose an Instance Type - Select any machine type (free-tier is fine). Click on Next: Configure Instance Details.
  • Step 3: Configure Instance Details - Network: choose the VPC that your created for autoscaling in that region. Ensure that “Auto-assign Public IP” is set to Enable; accept all other defaults.
  • Click on Next: Add storage; click on Next: Tag Instance; click on Next: Configure Security Group
  • Step 6: Configure Security Group - choose “Select an existing security group” and choose the group that you created for Red5 Pro autoscaling.
  • Click Review and Launch
  • Click Launch
  • In the final step when prompted, Choose an existing key pair, and select the public key that you created for autoscaling.

Copy the Red5 Pro Server zip file to this instance. SSH into your instance and stop the Red5 Pro service (sudo systemctl stop red5pro). You may need to install new libraries since the last server release, so check the Linux Install instructions and run through software dependencies. Per "[How to Upgrade Red5 Pro Server]((/docs/docs/server/serverupgrade)," Rename your existing red5pro folder to bak.red5pro (sudo mv red5pro bak.red5pro). Copy and unzip the new distribution into the same directory where the original red5pro folder was (e.g. /usr/local/). After it is unzipped, rename that directory to red5pro (sudo mv red5pro-server-* red5pro). Copy the following files from the old build to the new: conf/autoscale.xml, webapps/red5-default.xml, and LICENSE.KEY.

  • Modify {red5pro/conf/autoscale.xml per the previous build
  • Copy the LICENSE.KEY file from the previous build
  • Remove unnecessary webapps (secondscreen, streammanager)

Start the server (sudo systemctl start red5pro) and hit the IP address at port 5080 to make sure there are no missing dependencies and the server starts correctly.