Add additional sources of content
If you have several content sources, such as main and backup sources, you can add them to the resource and customize the weight of each. Requests to the sources will be distributed according to the weight - the higher the weight, the more requests the source will receive.
If the source with the highest weight is unavailable, the CDN will start requesting content from the next highest weight source. If all major sources are unavailable, the CDN will start requesting content from the backup source.
Once the primary source is available again, the CDN will automatically switch to it.
-
In the Control Panel, on the top menu, click Products and select CDN.
-
In the CDN Resources section, open the resource page → Source tab.
-
In the Domain field, specify the domain without protocol and specifying the port, for
example:example.com:443. -
In the Domain Weight field, specify a numeric value that determines the share of traffic directed to this source. The larger the value, the more requests the source will receive. The default value is 1.
-
In the Number of failures field, specify the number of failed attempts to connect to the server, after which the CDN will forward requests to the next weighted source. The default value is 10.
-
If the source acts as a backup, check the checkbox Source is a backup source. The backup source must contain the same files as the primary source.
-
If you have additional sources, click Add Source and repeat steps 3-6.
-
Click Apply. The resource will be in
PROCESSINGstatus while the settings are being applied . You cannot apply any other settings at this time. The settings will be applied when the share changes toACTIVEstatus. -
Make sure that the Host header specified in the CDN resource settings is enabled on the added source. You can view the Host header specified for the CDN resource in the control panel: from the top menu, click Products → CDN → CDN resource page → Source tab.