Set up load balancing¶
Note
If a DNS record that resolves to multiple origin IP addresses is added with the CNAME type, load balancing is automatically enabled for these IP addresses. All IP addresses are assigned the weight 1 , and requests are distributed using the round robin method.
This behaviour is not visible in the Myra App.
Note
To make the most of the advantages that load balancing offers, you must create at least two DNS records for the same subdomain with different target IP addresses.
Load balancing is a CDN feature that distributes requests from clients across multiple backend servers within the customer's infrastructure to ensure high availability, optimal performance, and reliability. Load Balancing monitors the health of the customer infrastructure and selects the best-performing server based on responsiveness and load balancing configuration, minimising downtime, preventing overload, and improving the global user experience.
Supported load distribution policies are Round Robin, Least Connections, IP Hash, and Cookie-Based session affinity. Each server in the customer infrastructure can be assigned a weight, a maximum failure threshold, and a failure timeout, with a backup designation used only when all primary servers in the customer infrastructure are unavailable. Passive health checks verify the responsiveness of the customer infrastructure continuously, and failover routing automatically steers traffic to healthy servers when a server in the customer infrastructure becomes unreachable. If all servers in the customer infrastructure fail simultaneously, the CDN continues serving previously cached content to end users, maintaining availability during complete outages of the customer infrastructure.
The following sections explain the following configurations:
- ■ Set up load balancing