Introduction
This document describes the considerations for running Live Assist FCSDK on AWS. Before moving forward with AWS we should consider the following article http://bloggeek.me/aws-webrtc-hosting/ as this results overprovisioning to combat the resource issues, which in turn push up the costs.
FCSDK running on aws, we just need to be very careful to correctly provision capacity with sufficient overprovision of ECU’s and network bandwidth/priority.
VPC
Amazon Virtual Private Cloud (Amazon VPC) is our preferred deployment option for AWS as it supports our recommend deployment architecture, further details can be found here.
http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Scenario3.html
OS Customisation
Covers the install of the Environment (VM) and FCSDK onto the BE6K’s VMware Platform.
Environment Install
Java 8.* Downloaded from Oracle http://www.oracle.com/technetwork/java/javase/downloads/index.html?ssSourceSiteId=otnjp listed as the JDK. At the time of writing the current version was jdk-8u151-linux-x64.rpm
Deploying Instance
As a minimum instance a c4.xlarge from the On-Demand instances would be suggested and using the RHEL AMI or more preferable using a dedicated instance c4.2xlarge. Pricing and specification details are available here https://aws.amazon.com/ec2/pricing/ for the ON-Demand and here https://aws.amazon.com/ec2/purchasing-options/dedicated-instances/ for Dedicated Instances.
Create instance following the details outlined here for:
VPC http://docs.aws.amazon.com/AmazonVPC/latest/GettingStartedGuide/ExerciseOverview.html
Note the security group assigned to the instances needs to have the following ports opened. Some of these ports can be restricted to specific sources if required, assuming default ports.
Protocol |
Port |
Description |
TCP |
22 |
Allow SSH Connections |
TCP |
8080 |
Allow HTTP |
TCP |
8443 |
Allow HTTPS |
TCP |
9990 |
Allow FAS Management (HTTPS) |
UDP |
16000-16004 |
Allow WEBRTC Media Port |
UDP |
17000-18000 |
Allow SIP Media Ports |
UDP & TCP |
5060 & 5061 |
Allow SIP Signalling Ports (only for SIP interoperation - not normally needed) |
UDP & TCP |
5080 & 5081 |
Allow SIP Signalling Compatibility Ports (only for SIP interoperation- not normally needed) |
Furthermore if you have a multi-box AWS solution then TCP port 8092 should also be open for the FAS/MB communication link.
Install and Configure VM’s Dependencies
Connect to the VM using a SSH client
Details are available in AWS documentation
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-connect-to-instance-linux.html
Connect to the vm with a sftp client (example is using WinSCP)
Details are available in AWS documentation
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/putty.html
Installing Java
Remove the default OpenJDK java: yum -y remove java
Copy the downloaded java JDK file e.g. jdk-8u151-linux-x64.rpm to the target server.
Install the rpm: rpm -ivvvh jdk-8u151-linux-x64.rpm
Test that java is installing and working correctly
#java –version# java -version
java version "1.8.0_151"
Java(TM) SE Runtime Environment (build 1.8.0_151-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.151-b12, mixed mode)
Install additional packages
yum install -y pango libXv libxm2 wget unzip
Turn off iptables
service iptables stop
service ip6tables stop
chkconfig iptables off
chkconfig ip6tables off
Turn off firewalld (Redhat 7 / Centos 7)
Disable SE Linux
vi /etc/selinux/config
Edit the line
SELINUX=enforcing
Change to (hint i for insert mode then curser keys navigate and back space to remove characters)
SELINUX=disabled (hint type in disabled)
Write out and close the file (hint esc :wq return) Note: please consult a vi man page regarding vi navigation.
DNS Configuration
Set the hostname on the vm to the chosen DNS address
vi /etc/sysconfig/network
Add or edit (hint i for insert mode then curser keys navigate and back space to remove characters)
HOSTNAME=“FQDN”
Write out and close the file (hint esc :wq return) Note: please consult a vi man page regarding vi navigation.
Set the hosts file to allow local resolve of the hostname
vi /etc/hosts
Add or edit a line so the box looks up its hostname to the local ip
192.168.17.49 fcsdkbe6k.cafex.com fcsdkbe6k
(hint i for insert mode then curser keys navigate and back space to remove characters)
Write out and close the file (hint esc :wq return) Note: please consult a vi man page regarding vi navigation.
Note: you must setup dns address in your DNS infrastructure.
Reboot the VM
FAS Install
Please refer to “Installing FAS” guide available with your software release from our reseller portal https://support.cba-japan.com/installer/
Note for a HA installation (High Availability) you'll need to configure your FAS cluster to use TCP rather than multicast to share state (AWS does not support multicast). Follow the FAS admin guide 'FAS_AdministrationGuide_v2.5.pdf' under the section Configuring FAS HA without Multicast. If you have any questions or problems contact Customer Support.
FCSDK Install
Please refer to “Installing FCSDK” guide available with your software release from the download server
Configuration
Please consult the FCSDK or FAS Documentation
Troubleshooting
Please consult the FCSDK or FAS Documentation
Comments
0 comments
Please sign in to leave a comment.