Last update:2024-07-17 17:18:44
Enterprises often leverage multiple origin servers within their content delivery strategies to improve redundancy and ensure high availability. In the event of an origin server failure, the CDN must seamlessly switch requests to alternate healthy origins to prevent disruptions to the end-user experience.
CDNetworks provides Automatic Origin Failover and Zero-Delay switching to streamline this process, guaranteeing business continuity and seamless content access for your end users.
Automatic Origin Failover
When multiple origin server IP addresses are configured for your website, the Automatic Origin Failover feature intelligently detects if an origin server becomes unavailable due to failures or maintenance. If a designated status code is detected (e.g., 503 Service Unavailable), our CDN immediately re-routes the request to another available origin server. This rerouting process is activated by default on subsequent user requests, immediate effect can be achieved by enabling the Zero-Delay switching feature.
Zero-Delay
The Zero-Delay switching feature seamlessly and instantaneously redirects user requests to a functioning origin server in the event of a failure, eliminating any perception of delay. This ensures that user access is not interrupted by origin server downtime, thereby maintaining business continuity and preserving the quality of the user experience.
;
, such as 502;503
.With the configuration, CDNetworks will intelligently monitor origin server responses. Should a response contain a error status code from your configured list, the system will automatically resolve an alternate origin server IP and re-initiate the request.
After you have entered the status codes, please click OK and then select Next to submit your settings. To minimize any potential disruptions to your production environment, we strongly recommend conducting a Pre-deploy test in a staging environment. This crucial step ensures that your configurations are accurate before they go live. Once you have verified the accuracy of the settings, click Deploy Now to implement them in the live environment. The configurations typically become effective within 3-5 minutes. For comprehensive guidance on pre-deployment testing and to verify the effectiveness of your configurations, please consult the tutorial Deploy the Configurations to Staging Environment for Validation.
Example for Automatic Origin Failover
Suppose you have configured 3 origin server IP addresses: 1.1.1.1, 2.2.2.2, and 3.3.3.3,,intending to automatically redirect user requests to another origin server IP in case of encountering specific errors (such as 404 or 503 status codes).
Here’s how you configure it: