-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.yaml
More file actions
39 lines (34 loc) · 697 Bytes
/
config.yaml
File metadata and controls
39 lines (34 loc) · 697 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# config.yaml
load_balancer:
algorithm: "weighted_round_robin"
backends:
- id: "backend-8001"
url: "http://127.0.0.1:8001"
weight: 2
max_connections: 10000
- id: "backend-8002"
url: "http://127.0.0.1:8002"
weight: 1
max_connections: 10000
- id: "backend-8003"
url: "http://127.0.0.1:8003"
weight: 1
max_connections: 10000
health_check:
interval_secs: 5
timeout_secs: 2
unhealthy_threshold: 3
healthy_threshold: 2
path: "/health"
circuit_breaker:
failure_threshold: 5
success_threshold: 2
timeout_secs: 60
retry:
max_attempts: 3
backoff_base_ms: 100
backoff_max_ms: 5000
metrics:
enabled: true
port: 9090
path: "/metrics"