This feature is currently in beta and will eventually be used in tandem with our Traffic Steering service. For now, you can use our CDN service to automatically load balance multiple CDN providers. 

You will need the API keys and secret keys for your CDN providers. As well as have your CDN services already configured with each provider. 

By the end of this tutorial, you will have learned how to add your CDN providers to Constellix as well as configure an automatic multi-CDN load balancer.

This automated service will create monitoring checks for each of your CDN providers in five different regions and set up a load balancing pool that prefers the fastest CDN service. 

#1 Add CDN Providers

In the left-hand navigation menu, select CDN/DDoS/WAF then CDN Providers.

Click the checkbox next to the name of your CDN vendors. Then enter the API keys for each provider. Click Verify & Save.

If we do not offer an integration with your chosen provider, that’s fine, you will have a chance to enter your origin(s) in step three.

#2 Add SSL Certificates

If your domain(s) run over HTTPS, you will need to enter your SSL certificate information in order to use our multi-CDN services. Skip this step if you are using HTTP.

Go to CDN/DDoS/WAF in the sidebar and then SSL Certificates (beta).

Click the Add SSL Certificate button. Enter your information and click Save. Your certificate will appear in the table.

#3 Add CDN Site

Go to the sidebar menu and select CDN/DDoS/WAF and then CDN Sites. 

Click the Create a CDN Resource button. 

  1. Name your multi-CDN configuration
  2. Enter the FQDN you will be using it for.

In the Preconfigured CDN box, you will notice that some of the vendors have hazard icons next to them. That means you have not configured them in step one. 

3. Check the boxes next to your chosen providers. 

4. Enter the origin, which is the web server where your website files and resources are. If you are running over HTTPS, you will need to click the radio button for https:// and choose your SSL certificate from the drop-down menu. 

If you chose to use a custom CDN provider instead of using the integrated providers in step one, you may enter them now. 

Save your configuration. You will see an alert that says “pending”.

#4 Magic happens…  

While you wait, we are working in the background:

  1. Creating sonar checks for each CDN per region (so 2 CDN’s x 5 regions = 10 checks)
  2. Creating 5 pools (one for each region) and integrating appropriate checks.

Monitoring checks default to every minute. So 60 checks an hour x 24 hours x 20 locations (about 4 per region) x 30.5 days = 878,400 and only $87/month

#5 Apply CDN Resource to Domain

So far, we have made our load balancing configuration. But we still need to apply it to our domain and create the appropriate records.

Since we are using regional load balancing, this is going to require a few steps, most of which happen automatically. 

  1. Enable GTD, our regional traffic manager.
  2. Create six records with the same name, one for each region plus a default (World).
  3. Apply the region-specific record pool to the appropriate record.

Go to Managed DNS in the sidebar menu, then Domains. Click the name of your domain in the table. 

Click the Advanced Settings button in the top right corner and select Configure CDN

If you have uncommitted changes for your domain, you will be prompted to commit them and automatically enable GTD. 

Pick the CDN Site you created in step 4, choose a record name (like www), and set a TTL. Apply your changes. 

You will notice, there are now six tabs for your records, one for each region and a default tab. Under each region will be a record will the name you just specified, pointing to the region-specific pool we created in step 1. 

Commit your changes, and you are home free! 

Was this article helpful to you?

Comments are closed.