WRR with Healthchecking
Perhaps the most common situation for load balancing is where you have multiple servers that can each serve an application. Greenlight, like many other global server load balancers calls this a “pool” of servers. By using a Weighted Round Robin (WRR) resource record, traffic can be distributed across the members of the pool.
Scenario
Section titled “Scenario”Let’s say we have several web servers. They all host www.example.com.
How-To
Section titled “How-To”- Create a Weighted Round Robin resource record
- Add two pool members, one for
www1and another forwww2. Use a Conditional Function Kind- For the “Condition”, choose an HTTP Check. Configure it to perform a suitable health check against your server. In the above example, the URLs would be
https://www1.example.comandhttps://www2.example.com - For the “If True” and “If False” parts of the Conditional, choose a Constant Function Kind
- “If True” should be the pool member’s IP address;
www1should have192.0.2.1andwww2should have198.51.100.1 - “If False” should be empty
- “If True” should be the pool member’s IP address;
- For the “Condition”, choose an HTTP Check. Configure it to perform a suitable health check against your server. In the above example, the URLs would be