How GitHub’s Open‑Source GLB Load Balancer Achieves High‑Performance Scaling
GitHub created the open‑source GitHub Load Balancer (GLB), a bare‑metal load‑balancing solution that uses Rendezvous hashing to smoothly add or remove nodes, offering high availability, DDoS resilience, and scalable performance for massive connection workloads, and is now publicly available on GitHub.
GitHub’s HTTP, Git and SSH services handle billions of connections daily; to meet this demand the company built the GitHub Load Balancer (GLB), whose open‑source version has just been released.
GLB is a load balancer developed internally at GitHub that runs directly on bare metal to achieve superior performance. Initially, service operators relied on vertical scaling and HAProxy for load balancing, which required specialized hardware and dedicated gigabit networks for failover. As the workload grew, a more portable solution that could run in a typical data‑center was needed, leading to the creation of GLB.
The core of GLB’s algorithm is Rendezvous (or Highest Random Weight, HRW) hashing. This technique lets operators smoothly add or remove controller and proxy nodes without interrupting user services, because each request is consistently mapped to the same backend unless that backend becomes unavailable.
GLB addresses many challenges faced by engineers at GitHub: horizontal scalability, high availability, support for high‑pressure connections, testability at any software level, and resistance to typical DDoS attacks. The system can assign a primary and a backup backend for each request, ensuring that even if a node fails, traffic is immediately redirected to the secondary server.
The article also explains the general concept of a load balancer: distributing incoming requests across multiple servers to avoid overloading any single machine. Simple routers cannot perform application‑level balancing, which is why virtual load balancers such as LVS (Linux Virtual Server) are used. GLB builds on these ideas, adding health checks and the primary/backup assignment strategy to improve reliability during disaster recovery scenarios.
GLB Director, the implementation of this load‑balancing approach, is now available for download from GitHub.
GitHub - github/glb-director: GitHub Load Balancer Director and supporting tooling.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
21CTO
21CTO (21CTO.com) offers developers community, training, and services, making it your go‑to learning and service platform.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
