Optimized Origin with the NOC CDN

A core component of setting up a Content Delivery Network (CDN) is defining the origin of the site. This origin is traditionally the IP address for the server that houses the site content. It's where the CDN will be pulling content from.

NOC Relationship to Origin Server

A few CDN's even allow you to specify multiple origins, empowering admins to create their own load balancing and availability.

Load Balancing and Optimizing Your Origin

But whose CDN optimizes which origin to use according to the users locations?

Optimized Origins with NOC

The NOC CDN is happy to announce that you can now do the following with our CDN:

  1. Specific multiple origins (round-robin option)
  2. Failover configuration (primary and backup)
  3. Optimize origins according to user locations

The first two features are about meeting market parity. The last one, however, is about pushing the industry forward. The optimized origin features is unique to NOC. It will pick the fastest, and closest, origin to our datacenter (which corresponds to the users location). Instead of load balancing between all defined origins, our CDN will choose the closest origin and dynamically pull content appropriately.

For example, let's say you have your servers at AWS (EC2) in different regions and availability zones:

  1. Server at usa-east2 (USA Ohio)
  2. Server at ap-southeast-1 (Singapore)
  3. Server at eu-east2 (London).

A normal CDN would be load balancing the traffic between all 3 of them on all the regions (1/3 of the US traffic would go to Ohio, 1/3 of the US traffic would go to Singapore and 1/3 to London). We find this to be less than ideal.

With Optimized Origin routing, our Dallas datacenter would route to (USA Ohio), while our Singapore, Tokyo, Sydney, Seoul datacenters would route to Same for our European datacenters would route to - In London.

That allows us to pull content that is not cached a lot faster for the users coming from these regions.

Optimized Routing with NOC

The optimized routing also includes real time availability checking, and self-healing. If the preferred IP goes down, it will try the other origins, removing the down IP from the stack until it's been fixed. The system will then self-heal once the origin has been repaired, bringing it back into rotation for the admin.

How to use the Optimized Origin?

If you have more than 1 server for your site, it is pretty easy. Navigate to CDN Settings->Your Domain and add the origins space separated.

For the example above it would be:

That's it.

The default is optimized and we will do the rest of the work for you. If you don't want to use this option, you can specify as round-robin by adding that keyword to the list: round-robin

You can also specify a server as a backup origin by doing: backup:

Let us know what you think.

Posted in   website-performance   cdn-feature     by Daniel Cid (@dcid)

Improve Your Websites Speed and Security