Edge Server Setup

Plain HTML / Printer friendly.Plain HTML / Printer friendly.

If installation fails or if you require any other assistance, please drop us a ticket at support.aflexi.net

You might also prefer following through the helpful Edge Server wizard.


Server Preparation for 32 bit and 64 bit architecture

Prepare Edge server with the prerequisites.

Debian 5.0 Lenny or above

  1. Perform a normal install (no dselected tasks)
  2. apt-get install python

Ubuntu 8.0.4.3 Server or above

  1. Perform a normal install

CentOS 5.3 or above

  1. Perform a normal install (no selected tasks)
  2. Disable SELinux: vi /etc/selinux/config and set SELINUX=disabled

Step 1

Add Location navigation

Add the Physical Location of the server by going to Edge Servers > Add Location. This only applies if the location has not been added before. Type the first few letters of a geographical location and a drop down list would appear. Provide a name for the location.

Add Location name selection

Location Adding shown

 

Step 2

After adding the Location, confirm that the locations can be seen via Edge Servers > List Locations.

Location List

 

Step 3

Edge Server  navigation

Add the details of the server by going to Edge Servers > Add Edge Server. If the Service IP is different from the Public IP, key in the Service IP address.

Add Edge Server form

Assign a delivery mode to the Edge server by using the select list as below...

HTTP Pull mode...

HTTP Pull mode

HTTP Pull and Push (only available if a DFS server is set up)...

Edge Pull and Push mode

Live streaming only (requires a Wowza key)...

Live Streaming mode

HTTP Pull and Live streaming mode (requires a Wowza key)...

HTTP Pull and Live Streaming

Video on Demand and Live mode (requires a Wowza key)...

VOD and Live streaming mode

All modes enabled (requires a Wowza key)...

Edge Server All delivery modes

Select an architecture (x86-32 for 32-bit or x86-64 for 64-bit) before clicking the Add Edge Server button to add the server and proceed to the next step...

Select Edge architecture

 

Step 4

Take note that If you are running edge server on an openvz environment, you are required to run these command as root on your host machine before installing the CDN script.(replace VEID with your own VEID number)

  • vzctl set VEID --kmemsize unlimited --privvmpages unlimited --numproc unlimited --shmpages unlimited --save

After creating an Edge Server in the portal, there will appear a link to download the installer and steps to install it. At this point, if it is not encouraged to download and upload via the link, login to the server via the console or Terminal and execute the following commands in there...

  1. wget http://packages.service.aflexi.com/opt/aflexi-edge-setup.tar.gz && tar -zxf aflexi-edge-setup.tar.gz
  2. cd aflexi-edge-setup
  3. As root (su - OR sudo -i), run ./aflexi-setup
  4. Read and accept the EULA
  5. Enter the Aflexi portal account login and password
  6. Enter the installation directory (e.g. /home/aflexi)
At this point the setup continues. Here is a sample output of a successful installation:
Matching this server against the list of your edge servers..
* Found match - surrogate ID xx
* Surrogate ID yy did not match
Enter the installation directory: /home/aflexi
Beginning installation. You can tail -f the logfile to monitor progress from this point.
Running debootstrap. This will take awhile..
Mounting /proc in chroot
Running apt-get update
Initializing puppet
warning: peer certificate won't be verified in this SSL session
Installing init script. Ensure that you chkconfig or update-rc.d to configure this service to start at boot.
Starting Aflexi Edge..

Step 5

After installation, the details of the newly added Edge servers can be seen as such:

List Edge Servers

Edge servers can also be edited from this list. Simply hover the mouse on the server name, and a list of links will appear underneath. Choose Edit, and the form should take a similar appearance to the Add Edge Server form, but with some values pre-filled.

Now, proceed and add new customers and add new bandwidth packages.