Multi-CDN Origins

Multi-CDN Origins

Origin servers are the hosts which the CDN fetches content from. For that reason, your origin servers are probably the first thing you should set up in your account to be able to use the CDN.

There are three (3) different types of origins that can be set up: Simple, advanced, and origin group.

To create a new origin or modify an existing one, look for the menu item “Origins”. If you click on it, you will get a list of all the existing origins of all types. The list allows you to edit or delete any existing origins. You can add a new origin of the selected type by clicking on the “plus” icon at the top-right corner of the origin list.

CDN Origin

Simple Origin

This is the simplest type of origin available on the CDN. For each origin, you only need to provide a description which is meaningful to you and a host. In the host field, you can specify the hostname or the IP address of your origin. You should not specify a protocol (http:// or https://) in this field, as this is configured in the distribution’s cache policy.

Advanced Origin

An advanced origin works exactly like a simple one, except that it allows you to modify three additional options:

HTTP portHere you can specify if your origin listens on a port for HTTP requests that are different from the standard (80)
HTTPS portIf your origin listens for HTTPS requests on a port different than the standard (443), you can specify that port number here.
Path / subdirectoryIn the case that the origin’s contents exist within a specific subdirectory, you can specify this path here. By doing this, you avoid having to include this subdirectory in the path of the requests sent to the CDN.

Origin Group

An origin group offers the most intricate origin setup possible. Origin groups support multiple origin hosts using different load-balancing methods and additionally allow origins to be set up as backups that will only be used if the main origins become inaccessible. Due to the nature of the Multi CDN platform, origin groups can only be used with shield CDN distributions.

Before setting up an origin group, all of its individual origins need to be set up first as simple origins. You can find instructions on how to do this in the previous section called Simple Origin. Advanced origins cannot be used within an origin group, only simple origins can. Object storage origins can be used within an origin group, but only if they are set up as simple origins, meaning without using any authentication.

To configure an origin group, the following fields need to be specified:

DescriptionA name for this origin that is meaningful to you
Load-balancing methodThe amount of time in seconds to keep connections towards the origins open if Keep Alive is enabled. This value cannot be larger than 30 seconds and should be lower than the read timeout settings on the origin.
Fail time-outIf a request towards an origin is not successful within this time-out period, the request is considered as failed and is retried by another origin from the same group.
Keep Alive SecondsThe amount of time in seconds to keep connections towards the origins open if Keep Alive is enabled. This value cannot be larger than 30 seconds, and should be lower than the read timeout settings on the origin.
MembersThe origins that make up this origin group. Up to ten (10) different origins can be added here, and all of them need to be unique. For each member, the following two fields can be configured:
OriginThis field allows you to select an origin to add to the group from a list of already configured simple origins.
StatusCan be set as Active or Backup. Under normal operation, requests are only sent to Active origins. Requests are sent to Backup origins only if all the Active ones have become unreachable or otherwise inoperable.