Amazon instances

We provide a fully installed USP AMI in the AWS Marketplace.

Choosing an AWS instance

There are many AWS Instance Types, choosing one depends the following:

  • is the content SD or HD?
  • what is the expected dominant output (HLS, Smooth, etc)?
  • is DRM needed?
  • is the output Live or VOD?
  • if Live, what are the bitrates ingested?
  • if Live what is the DVR window size (and would you plan a RAM disk for that)?

In short, ingest is IO bound, and egress first IO bound, then network and lastly CPU.

With AWS you have the option to use a few high performance instances or many small instances, the benefit of the latter is that spreading the ingest over more nodes will make it easier to cope with errors, if at all they occur.

It is therefore advisable to do benchmarking with the available c4 instances.

Setup

When you start the AMI you need to use a security group where port 80 and port 22 are enabled. The image user name is 'ubuntu' and has sudo access.

To login you need to use ssh (or similar like putty on Windows):

ssh -i your-ssh-key ubuntu@your-ec2-instance

Note

A VOD License Key is provided with the AMI.

Verify

Once the AMI has launched and became an 'instance' you should be able to direct your browser to the instance's public DNS name; such a name looks like this:

ec2-1-2-3-4.eu-west-1.compute.amazonaws.com

The website presented should look exactly the same as Features overview (and similarly stream video when clicked). The layout of the test website is described in Verifying Your Setup.

On startup the AMI tries to set it's external hostname as ServerName for Apache and set the same hostname in the 'index.html' file to address all files and links (the 'index.html' file you can find in /var/www/usp-evaluation).

For this to happen your VPC needs to be setup to add DNS hostnames. In the VPC dash board select 'Edit DNS Hostnames' for the VPC you are creating the instance in:

../../../_images/vpc-dash.png

and set 'DNS Hostnames' to 'yes'. This has to be done before you start the instance.

If you want to use an 'elastic ip address' then you should edit these files to reflect that and disable the init script in /etc/init/usp-setup-hn.conf.