-
Notifications
You must be signed in to change notification settings - Fork 0
/
haproxy-agent.ini
52 lines (38 loc) · 1.22 KB
/
haproxy-agent.ini
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
40
41
42
43
44
45
46
47
48
49
50
51
52
[server]
host = 0.0.0.0
port = 3000
[check.general]
max_weight = 100
min_weight = 0
[check.load]
;start weight, default weight
weight = 100
;min weight, the check will not create values smaller than this
min_weight = 1
;max weight, but can be more, the cpu can be overloaded
max_weight = 100
;start degrading at 50 percent load
degrading_threshold = 50
;directly half the weight at 50%, because the traffic
;balancing is proportional to weights of other instances
;start weight of degraded weight
degraded_weight = 50
;high load, but don't set weight to 0 yet
high_load_degraded_threshold = 80
;start weight at high load, starts at high_load_degraded_threshold e.g. 90
high_load_degraded_weight = 20
;set weight to 0, haproxy starts draining the instance, when load is over 110%
;also high load degrading stops here
fully_degraded_threshold = 120
[check.ram]
;start weight
weight = 100
;min weight, the check will not create values smaller than this
min_weight = 0
;start degrading service at the last 30% free ram
degrading_threshold = 30
;directly half the weight at 70%, because the traffic
;balancing is proportional to weights of other instances
degraded_weight = 50
; set weight to 0 at 5% free ram left
fully_degraded_threshold = 5