{"id":44260307,"url":"https://github.com/easzlab/ezlb","last_synced_at":"2026-02-10T17:05:56.527Z","repository":{"id":337333702,"uuid":"1152821128","full_name":"easzlab/ezlb","owner":"easzlab","description":"A lightweight Layer-4 TCP load balancer based on Linux IPVS, using declarative reconcile mode to dynamically manage IPVS services.","archived":false,"fork":false,"pushed_at":"2026-02-09T00:37:14.000Z","size":82,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-09T06:25:44.704Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/easzlab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-08T13:45:13.000Z","updated_at":"2026-02-09T00:37:10.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/easzlab/ezlb","commit_stats":null,"previous_names":["easzlab/ezlb"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/easzlab/ezlb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easzlab%2Fezlb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easzlab%2Fezlb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easzlab%2Fezlb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easzlab%2Fezlb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/easzlab","download_url":"https://codeload.github.com/easzlab/ezlb/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easzlab%2Fezlb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29308973,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-10T16:09:25.305Z","status":"ssl_error","status_checked_at":"2026-02-10T16:08:52.170Z","response_time":65,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-02-10T17:05:55.820Z","updated_at":"2026-02-10T17:05:56.513Z","avatar_url":"https://github.com/easzlab.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ezlb\n\nEnglish | [中文](README_CN.md)\n\nA lightweight Layer-4 TCP load balancer based on Linux IPVS, using declarative reconcile mode to dynamically manage IPVS services.\n\n## Features\n\n- **IPVS Kernel-Level Load Balancing**: High-performance Layer-4 forwarding powered by Linux IPVS\n- **Declarative Reconcile**: Automatically compares desired state with actual IPVS rules and applies incremental changes\n- **Multiple Scheduling Algorithms**: Round Robin (rr), Weighted Round Robin (wrr), Least Connection (lc), Weighted Least Connection (wlc), Destination Hashing (dh), Source Hashing (sh)\n- **TCP Health Checks**: Independent health check configuration per service, with option to disable\n- **Hot Config Reload**: File changes automatically trigger reconciliation without restart\n\n## Quick Start\n\n### Build\n\n```bash\nmake build\n```\n\nCross-compile for Linux:\n\n```bash\nmake build-linux\n```\n\n### Configuration\n\nCreate a config file `config.yaml`:\n\n```yaml\nglobal:\n  log_level: info\n\nservices:\n  - name: web-service\n    listen: 10.0.0.1:80\n    protocol: tcp\n    scheduler: wrr\n    health_check:\n      enabled: true\n      interval: 5s\n      timeout: 3s\n      fail_count: 3\n      rise_count: 2\n    backends:\n      - address: 192.168.1.10:8080\n        weight: 5\n      - address: 192.168.1.11:8080\n        weight: 3\n```\n\n### Usage\n\n```bash\n# Daemon mode\nsudo ezlb start -c config.yaml\n\n# Single reconcile pass\nsudo ezlb once -c config.yaml\n\n# Show version\nezlb -v\n```\n\n## Testing\n\n```bash\n# Run unit tests (macOS/Linux)\nmake test\n\n# Run all tests (Linux, requires root)\nmake test-linux\n\n# Run e2e tests (Linux, requires root)\nmake test-e2e\n```\n\n## Project Structure\n\n```\nezlb/\n├── cmd/ezlb/            # Entry point, CLI commands\n├── pkg/\n│   ├── config/           # Config management (loading, validation, hot reload)\n│   ├── lvs/              # IPVS management (operations, reconcile)\n│   ├── healthcheck/      # Health checking (TCP probes)\n│   └── server/           # Server orchestration (lifecycle management)\n├── tests/e2e/            # End-to-end tests\n├── examples/             # Example configurations\n└── Makefile\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feaszlab%2Fezlb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feaszlab%2Fezlb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feaszlab%2Fezlb/lists"}