Account-level load balancing
If you want to set up load balancing for multiple hostnames or domains within your account, your approach would depend on the requirements for each hostname.
If you want to share a load balancing configuration across multiple hostnames, you can use the same load balancer through CNAME
routing.
- When you set up the load balancer, create the load balancer on a new hostname (
lb.example.com
). - When you are ready to route production traffic, create a
CNAME
record on a hostname that points to the load balancer created in step 1 (lb.example.com
). - Repeat steps 1 and 2 with all other hostnames.
If each zone needs unique load balancer configurations (failover order, routing), you should create separate load balancers. Since pools and monitors are configured at the account level, even different load balancers can share the same pools and monitors.
For simpler routing, create a load balancer on each hostname.
For more advanced routing, create multiple load balancers and then set up Origin Rules to route traffic to each load balancer based on specific characteristics of the request.