You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+22-2Lines changed: 22 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ A lightweight Layer-4 TCP load balancer based on Linux IPVS, using declarative r
9
9
-**IPVS Kernel-Level Load Balancing**: High-performance Layer-4 forwarding powered by Linux IPVS
10
10
-**Declarative Reconcile**: Automatically compares desired state with actual IPVS rules and applies incremental changes
11
11
-**Multiple Scheduling Algorithms**: Round Robin (rr), Weighted Round Robin (wrr), Least Connection (lc), Weighted Least Connection (wlc), Destination Hashing (dh), Source Hashing (sh)
12
-
-**TCP Health Checks**: Independent health check configuration per service, with option to disable
12
+
-**TCP & HTTP Health Checks**: Independent health check configuration per service, supporting TCP connection probes and HTTP GET probes with configurable path and expected status code
13
13
-**Hot Config Reload**: File changes automatically trigger reconciliation without restart
14
14
15
15
## Quick Start
@@ -41,6 +41,7 @@ services:
41
41
scheduler: wrr
42
42
health_check:
43
43
enabled: true
44
+
type: tcp # optional: tcp (default), http
44
45
interval: 5s
45
46
timeout: 3s
46
47
fail_count: 3
@@ -50,6 +51,25 @@ services:
50
51
weight: 5
51
52
- address: 192.168.1.11:8080
52
53
weight: 3
54
+
55
+
- name: api-service
56
+
listen: 10.0.0.1:443
57
+
protocol: tcp
58
+
scheduler: wlc
59
+
health_check:
60
+
enabled: true
61
+
type: http # HTTP health check
62
+
interval: 10s
63
+
timeout: 5s
64
+
fail_count: 5
65
+
rise_count: 3
66
+
http_path: /healthz # default: /
67
+
http_expected_status: 200# default: 200
68
+
backends:
69
+
- address: 192.168.2.10:8443
70
+
weight: 1
71
+
- address: 192.168.2.11:8443
72
+
weight: 1
53
73
```
54
74
55
75
### Usage
@@ -86,7 +106,7 @@ ezlb/
86
106
├── pkg/
87
107
│ ├── config/ # Config management (loading, validation, hot reload)
0 commit comments