Working with load balancers and existing DNS records
A IBM Cloud® Internet Services load balancer is identified by the DNS hostname whose traffic you want to balance (for example, www.example.com
). The load balancer defines which origin server pools to use, the order in which they are
used, and how to geographically distribute traffic among pools.
When you create a load balancer on CIS, you can do one of the following:
- Use a unique hostname with no existing DNS record
- Use a hostname that has an existing DNS record (an A, AAAA, or CNAME record)
If a hostname has an existing DNS record, the load balancer supersedes the DNS record if the DNS record is an A, AAAA, or canonical name (CNAME) record. It does not supersede other record types.
If the load balancer is disabled, preexisting DNS records are served.
If there is no preexisting DNS record with the same name, disabling the load balancer prevents clients from resolving the host, and requests fail.
If a load balancer is manually disabled, traffic is not served to the associated origins or the fallback. If all pools in a load balancer are manually disabled, the fallback origin is used unless the fallback is also disabled. If the fallback is also disabled, the SOA record is served. Otherwise, if there is one pool in the load balancer and the pool is unhealthy, CIS sends traffic to the fallback pool regardless of the fallback pool's health.
HTTP keep-alive (persistent HTTP connection)
CIS maintains keep-alive connections to improve performance and to reduce the cost of recurring TCP connects in the request transaction as CIS proxies customer traffic from its edge network to the site's origin.
Ensure that HTTP keep-alive connections are enabled on your origin. CIS reuses open TCP connections for up to 15 minutes (900 seconds) after the last HTTP request. Origin web servers close TCP connections if too many are open. HTTP keep-alive helps avoid the premature reset of connections for requests that are proxied by CIS.