GSLB stands for Global Server Load Balancing, a method of distributing application traffic across data centers or geographic regions. A common approach uses health checks and routing policies to choose which site's IP address to return in a DNS response. The application can then serve users from more than one location and direct new connections toward an available site.
What Is GSLB?
GSLB is load balancing across locations. A local load balancer distributes traffic among servers in a site; GSLB selects a site for the application. In a typical deployment, the two work together: GSLB returns a site's address, and the local balancer distributes the connections that arrive there.
The selection policy can consider availability, geographic location, measured performance, capacity or configured weights. The geographically closest site is not necessarily the fastest or the preferred one. Operators decide which signals and priorities fit the service.
For a telecom operator, GSLB can distribute application endpoints across regional sites. Developers must ensure that sessions and application data remain usable after a site change. Address holders and IPv4 brokers should distinguish application steering from address routing: a DNS change selects an endpoint, while reachability of that endpoint still depends on the network. Our guides to IP addresses and BGP explain those underlying concepts.
How Does GSLB Work?
DNS-based GSLB follows a cycle of checking endpoints and selecting answers:
- Check availability. The system probes configured endpoints, such as a site's virtual IP address or an application URL. The probe tests the conditions configured by the operator; a successful TCP connection alone does not prove that the entire application works.
- Evaluate policy. It considers the eligible sites and the information available to the implementation, such as location, measured latency, reported load or configured weights.
- Answer a DNS query. When a recursive resolver requests a fresh answer for the application's name, the authoritative DNS service returns an address selected by that policy.
- Update future answers. If health checks mark a site unavailable, the system can exclude it from subsequent selections, subject to the configured fallback policy. Cached answers and existing connections can continue to use its old address.
Suppose an application runs in New York, London and Singapore. A policy might select London for a DNS query associated with a client network in Berlin. If London fails its checks, a later query reaching the authoritative service could receive New York's address instead. A resolver that still has London's address cached may continue returning it until that cached answer expires or is refreshed.
This article focuses on DNS-based GSLB. Other global traffic-steering architectures can use anycast routing or HTTP redirects, which have different control points and failure behavior. A DNS-based GSLB service usually selects addresses without carrying the application's traffic itself.
GSLB and DNS
DNS translates an application name into records that clients use to reach the service. A GSLB deployment can provide authoritative answers for the application name through a delegated DNS zone or a name reached through a CNAME. It returns addresses according to policy rather than maintaining one fixed address for all queries.
DNS caching limits how quickly answer changes reach clients. Resource records carry a time-to-live (TTL), which controls their normal cache lifetime, as described in RFC 1035. A lower TTL generally permits more frequent refreshes but increases query volume. Lowering a TTL during an outage does not shorten the lifetime of copies already cached with the previous value.
Failover also depends on health-check intervals, failure thresholds, resolver behavior and application retries. DNS changes do not migrate an established TCP connection or replicate application data. Under specified conditions, resolvers can serve expired data when they cannot refresh it from authoritative servers; RFC 8767 describes this serve-stale behavior. TTL alone is therefore not a guaranteed maximum recovery time.
The authoritative service normally sees the recursive resolver's address. That resolver may be far from the user. EDNS Client Subnet (ECS) can convey part of the originating client network when supported and enabled, but it introduces privacy and caching considerations and is not universally available. RFC 7871 documents ECS.
GSLB at a Glance
| Attribute | Detail |
|---|---|
| Full name | Global Server Load Balancing |
| Scope | Multiple data centers, sites or geographic regions |
| Common mechanism | Policy-based authoritative DNS responses |
| Selection signals | Health, location, measured performance, reported load and weights, depending on implementation |
| Failover controls | Health-check settings, DNS TTL, fallback policy and client behavior |
| Works with | Local server load balancing at each site |
| Important limitation | DNS answer changes do not move existing connections or synchronize application state |
GSLB Methods and Algorithms
GSLB implementations offer different selection methods. Common approaches include:
- Round robin: rotate eligible sites in DNS answers. Resolver caching means this does not guarantee equal numbers of users, connections or bytes at each site.
- Geolocation or proximity: select a site using location or topology information associated with the resolver or client subnet. Geographic distance is a proxy for performance, not a latency measurement.
- Latency or performance based: choose a site using the measurements available to the system. The measurement point matters; a probe to a resolver does not measure each user's application response time.
- Weighted: assign relative preferences to sites, for example during a staged rollout or when capacities differ. Actual application traffic shares can differ from DNS answer weights.
- Load aware: favor sites with more reported capacity or fewer active connections. This requires suitable telemetry and support in the GSLB implementation.
- Active-passive failover: prefer a primary site and select a standby when the primary becomes ineligible.
Operators often combine health checks with another method, such as proximity or weighting. They must also define what happens if every site fails its checks. Returning a fallback address, retaining an answer or returning an error have different consequences; the behavior depends on the implementation and configuration.
GSLB vs SLB: Local Load Balancing
Server Load Balancing (SLB) distributes traffic across a server pool. In the local deployment considered here, that pool serves one site. GSLB selects among sites or regional endpoints. The distinction describes their roles; it does not mean every load balancer is limited to one physical data center.
| Property | GSLB: global site selection | Local SLB: server selection |
|---|---|---|
| Scope | Multiple sites or regions | A site's application server pool |
| Typical mechanism | DNS-based endpoint selection | Layer 4 or Layer 7 traffic distribution |
| Main purpose | Site availability and geographic traffic distribution | Server availability and capacity distribution |
| Failure addressed | Unavailable site or regional endpoint | Unavailable server or pool member |
| Effect of a change | New DNS answers influence subsequent connections | The balancer changes how it handles arriving connections or requests |
In a combined design, GSLB returns a site's virtual IP address. The local balancer receives the resulting connections and selects a backend server. See our load balancing overview for the local layer.
GSLB Use Cases
- Disaster recovery: direct new connections toward a surviving site once failure detection and DNS refresh allow it. The standby needs usable application data and enough capacity.
- High availability: reduce dependence on one data center by maintaining eligible alternative sites and resilient DNS service.
- Latency reduction: prefer sites expected to offer better network performance, then verify the result with measurements.
- Global application delivery: expose a common application name while serving users from multiple regions.
- Planned maintenance: remove a site from new selections, allow time for cached answers and active sessions, and then take it offline.
- Regional policy: steer traffic toward approved regions. DNS location estimates alone cannot guarantee data residency; application behavior, storage and other controls must enforce the requirement.
Benefits and Challenges of GSLB
Benefits include geographic traffic distribution, additional recovery options and the ability to add capacity at more sites. Policy-based selection also lets an operator adjust preferences without changing the application's public name.
The main challenges are:
- Delayed failover: caches, failure detection and client behavior affect how quickly traffic shifts.
- Health-check coverage: a shallow check can miss a failed dependency, while an unsuitable threshold can remove a healthy site.
- Application state: users may reach another site that needs their session, authentication state or recent data.
- Operational complexity: policies, DNS availability, monitoring, capacity and fallback behavior must work together.
- Cost: multiple sites require infrastructure, replication and ongoing testing.
The NFWare Virtual Load Balancer product overview lists built-in GSLB alongside its load balancing capabilities. Specific algorithms, health checks and deployment requirements should be confirmed for the intended configuration.
Frequently Asked Questions
What does GSLB stand for?
GSLB stands for Global Server Load Balancing. It distributes application traffic across multiple sites or geographic regions.
What is GSLB in networking, in simple terms?
GSLB selects which site a user should reach. A common implementation returns that site's IP address in a DNS response, after applying availability checks and selection policies.
Is GSLB the same as DNS?
DNS is the name-resolution system. DNS-based GSLB adds health-aware selection and traffic policies to the process of choosing an answer. DNS also serves many purposes unrelated to load balancing.
What is the difference between GSLB and SLB?
GSLB selects a site or regional endpoint. Local SLB distributes the traffic arriving at that site among its servers. The two can operate together.
How quickly does GSLB fail over?
There is no universal failover time. It depends on health-check timing, policy updates, cached DNS answers, resolver behavior and client retries. Existing sessions may fail and require reconnection; a DNS change does not transfer them to another site.
Conclusion
GSLB combines site availability checks with policies for selecting application endpoints across locations. DNS-based deployments work alongside local load balancing, but their recovery behavior depends on caching and client connections as well as health checks. A reliable design also needs available capacity, replicated application state and a tested fallback policy.