Skip to content

Latest commit

 

History

History
210 lines (177 loc) · 5.21 KB

File metadata and controls

210 lines (177 loc) · 5.21 KB

OpenLoadBalancer Project Status

Last Updated: 2026-04-12

Overview

OpenLoadBalancer is a production-ready, high-performance, zero-dependency L4/L7 load balancer written in Go.

Current Status: PRODUCTION READY ✅

Metrics

Metric Value Status
Test Coverage 95.3% ✅ Above 85% threshold
Test Packages 71/71 passing ✅ 100% pass rate
Go Version 1.26+ ✅ Current
Code Format gofmt clean ✅ Pass
Static Analysis go vet clean ✅ Pass
Binary Size ~13MB ✅ Under 20MB limit
External Dependencies 3 (x/crypto, x/net, x/text) ✅ Minimal

Features (Complete)

Core

  • HTTP/HTTPS proxy
  • WebSocket support
  • gRPC support
  • SSE support
  • TCP (L4) proxy
  • UDP (L4) proxy
  • SNI routing
  • PROXY protocol v1/v2

Load Balancing (16 algorithms)

  • Round Robin
  • Weighted Round Robin
  • Least Connections
  • Weighted Least Connections
  • Least Response Time
  • Weighted Least Response Time
  • IP Hash
  • Consistent Hash (Ketama)
  • Maglev
  • Ring Hash
  • Power of Two Choices
  • Random
  • Weighted Random
  • Rendezvous Hash
  • Peak EWMA
  • Sticky Sessions

Security (6-layer WAF)

  • IP ACL (whitelist/blacklist)
  • Rate limiting (token bucket)
  • Request sanitizer
  • Detection engine (SQLi, XSS, CMDi, Path Traversal, XXE, SSRF)
  • Bot detection (JA3 fingerprinting)
  • Response protection (security headers, data masking)

Advanced Features

  • Geo-DNS routing
  • Request shadowing/mirroring
  • Distributed rate limiting
  • Circuit breaker
  • TLS/mTLS
  • ACME/Let's Encrypt
  • OCSP stapling

Operations

  • Hot config reload
  • Raft clustering
  • SWIM gossip
  • Service discovery (Static/DNS/Consul/Docker/File)
  • MCP server (17 tools)
  • Web UI dashboard
  • TUI (olb top)
  • Admin REST API
  • Prometheus metrics
  • Structured logging

Deployment

  • Docker image
  • Docker Compose
  • Kubernetes (Helm charts)
  • Terraform (AWS)
  • Systemd service
  • Binary releases

Observability

  • Grafana dashboard (20+ panels)
  • Prometheus alerting rules (15+ alerts)
  • CloudWatch integration

Documentation

  • README with quick start
  • Configuration guide
  • Production deployment guide
  • Troubleshooting playbook
  • Migration guide (NGINX, HAProxy, Traefik, Envoy, AWS ALB)
  • Getting started tutorial
  • OpenAPI specification
  • Architecture documentation (CLAUDE.md)
  • Security policy (SECURITY.md)
  • Contributing guide
  • Code of Conduct
  • Changelog
  • Release process

Community

  • GitHub issue templates
  • Pull request template
  • GitHub Actions CI/CD
  • CodeQL security scanning
  • Dependabot configuration
  • Funding configuration

Performance Benchmarks

Metric Result
Peak RPS 15,480
Proxy Overhead 137µs
P99 Latency 22ms
Algorithm Speed 3.5 ns/op (Round Robin)
Success Rate 100%

File Statistics

Type Count
Go Source Files 438
Test Files 203
Test Functions ~6,200
Documentation Files 15+
Deployment Templates 25+
Total Lines of Code ~243K

CI/CD Status

Check Status
Build ✅ Pass
Unit Tests ✅ Pass
Integration Tests ✅ Pass
E2E Tests ✅ Pass
Race Detector ✅ Pass
Coverage ✅ 95.3%
gofmt ✅ Pass
go vet ✅ Pass
Security Scan ✅ Pass
Docker Build ✅ Pass

Package Coverage

Package Coverage
internal/waf/detection/* 97-100%
pkg/version 100%
internal/metrics 98.2%
internal/waf/response 98.8%
internal/waf/sanitizer 98.1%
internal/backend 96.3%
internal/waf/ipacl 96.4%
internal/conn 93.9%
internal/logging 93.4%
internal/profiling 93.5%
internal/security 93.2%
pkg/utils 92.0%
internal/waf/botdetect 92.9%
internal/router 92.8%
internal/listener 90.4%
internal/geodns 90.7%
internal/waf/ratelimit 90.0%
internal/mcp 90.3%
internal/plugin 90.4%
internal/middleware 94.4%
internal/waf 91.0%

Known Limitations

  1. Windows Service: Basic support (production建议使用 Linux)
  2. Rate Limiting: Memory-based by default (Redis for distributed)
  3. GeoDNS: Simplified IP-to-location mapping (production建议使用 MaxMind GeoIP2)

Roadmap

Completed (v1.0)

  • ✅ All core features
  • ✅ Production deployment guides
  • ✅ Complete observability stack
  • ✅ Security hardening

Future (v1.1+)

  • WebSocket compression
  • HTTP/3 support
  • Additional cloud providers (GCP, Azure) for Terraform
  • Service mesh integration
  • Additional WAF detectors

Conclusion

OpenLoadBalancer is production-ready and suitable for high-traffic deployments. All critical features are implemented, tested, and documented.


For questions or issues, see: