Adding or Editing the DFS Origin

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

This page allows operators to update the DFS origin or add a new one if they have not done so. DFS origin allows publishers to upload videos file/large file to Operator storage orign and distributing to Operator's edge servers.

Take note that If you are running DFS origin 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
  • VEID=12345678; for CAP in CHOWN DAC_READ_SEARCH SETGID SETUID NET_BIND_SERVICE NET_ADMIN SYS_CHROOT SYS_NICE CHOWN DAC_READ_SEARCH SETGID SETUID NET_BIND_SERVICE NET_ADMIN SYS_CHROOT SYS_NICE; do vzctl set $VEID --capability ${CAP}:on --save; done; vzctl restart $VEID

After creating an DFS  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, 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..