Skip to content

AWS Wavelength Cluster Deployment

Ahmet Oğuz Mermerkaya edited this page Nov 25, 2021 · 20 revisions

In this documentation, we would like to demonstrate how to set up an Auto-Scalable Ant Media Server Cluster on the Wavelength zone. We will be using the Cloudformation template and we will go over the steps to set up a cluster.

Before we start with the installation, let’s take a look at what exactly the template does. The template generates the VPC, Carrier IP and Internet Gateway configuration automatically. The VPC network it uses has the 10.0.0.0/16, 10.0.10.0/24, 10.0.11.0/24 subnets in use. It also configures 2 NGINX Instances for load balancing and these operate as Active/Passive. These instances are also assigned the addresses 10.0.10.201 and 10.0.11.201.

1. As Cloudformation doesn’t support Elastic IP in the Wavelength Zone yet, let’s create an Elastic IP as shown below. You should also create a DNS record for this elastic IP address.

Click on EC2 > Elastic IPs under Services and then click on Allocate Elastic IP address.

Image

2. On the next page, pick the correct Wavelength Zone as the Network Border Group. The Wavelength Zones include WLZ.

Image

3. Click on allocate to allocate your new Elastic Carrier IP address.

Image

Please note the Allocation ID of the Elastic Carrier IP before continuing with the Cloudformation part of the installation.

4. Download the template from the link below and open the Cloudformation service to import the template. Link: Link here

Image

5.

  • Stack Name: it will describe your stacks, it will be like a skeleton
  • AllocationID: Allocation ID of ElasticIP
  • AntMediaEdgeCapacity: How many Edge servers will be created.
  • AntMediaEdgeCapacityMax: Edge Server where Auto Scale will reach maximum
  • AntMediaOriginCapacity: How many Origin servers will be created.
  • AntMediaOriginCapacityMax: Origin Server where Auto Scale will reach maximum

Image

  • CPUPolicyTargetValue: Average CPU utilization of the Auto Scaling group. When the server reaches %40 CPU utilization average, new servers will be added
  • EdgeInstanceType: Edge Instance Type
  • KeyName: An Amazon EC2 key pair name. If there is no value here, you must create an ssh key (EC2 > Key Pairs).
  • MongoDBInstanceType: MongoDB Instance Type
  • NginxInstaceType: Nginx Instance Type
  • OriginInstanceType: Origin Server Instance Type
  • StunServerAddress: Stun Server URL or IP address
  • WavelengthZones: Available Wavelength Zones

Image

6. Please proceed by clicking “Next” button Image 7. In this section, you can view and check the summary of the parameters you have entered and you can edit it here as below. Image 8. We are using AWS Lambda, so IAM permissions are needed to get our latest image. Image 9. If the template has been installed successfully, it says "Create Complete" in the red rectangle. Image

10. When the installation is finished, the instances will look like this. Image

User Guide

Reference

Troubleshooting

Draft

Proposals

Clone this wiki locally