-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yaml
78 lines (69 loc) · 2.7 KB
/
config.yaml
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# The load balancing algorithms supported by the balancer are:
# `round-robin` ,`random` ,`p2c` ,`consistent-hash` ,`least-load` ,`bounded` ,`ip-hash`,
# Among these,`p2c` refers to the power of 2 random choice,
# `bounded` refers to consistent hash with bounded.
schema: http # support http and https
port: 8088 # port for balancer
ssl_certificate:
ssl_certificate_key:
tcp_health_check: true
health_check_interval: 3 # health check interval (second)
# The maximum number of requests that the balancer can handle at the same time
# 0 refers to no limit to the maximum number of requests
max_allowed: 100
location: # route matching for reverse proxy
- pattern: /
proxy_pass: # URL of the reverse proxy
- "http://localhost:9001"
- "http://localhost:9002"
- "http://localhost:9000"
balance_mode: round-robin # load balancing algorithm
- pattern: /api/v1/Fees
proxy_pass: # URL of the reverse proxy
- "http://localhost:9001"
- "http://localhost:9002"
balance_mode: consistent-hash # load balancing algorithm
- pattern: /api/v1/Policies
proxy_pass: # URL of the reverse proxy
- "http://localhost:9000"
- "http://localhost:9002"
balance_mode: round-robin # load balancing algorithm
- pattern: /api/v1/Students
proxy_pass: # URL of the reverse proxy
- "http://localhost:9000"
- "http://localhost:9001"
balance_mode: round-robin # load balancing algorithm
- pattern: /api/v1/FeeExemptions/
proxy_pass: # URL of the reverse proxy
- "http://localhost:9002"
- "http://localhost:9001"
balance_mode: round-robin # load balancing algorithm
- pattern: /api/v1/FeeExemptions/multiple
proxy_pass: # URL of the reverse proxy
- "http://localhost:9000"
- "http://localhost:9001"
- "http://localhost:9002"
balance_mode: round-robin # load balancing algorithm
- pattern: /api/v1/FeeExemptions/paging
proxy_pass: # URL of the reverse proxy
- "http://localhost:9000"
- "http://localhost:9001"
- "http://localhost:9002"
balance_mode: round-robin # load balancing algorithm
- pattern: /api/v1/FeeExemptions/MultiDelete
proxy_pass: # URL of the reverse proxy
- "http://localhost:9000"
- "http://localhost:9001"
balance_mode: round-robin # load balancing algorithm
# email config
#smtp_host: smtp.mailtrap.io
#smtp_port: 2525
#username: fca5b15809ec4c
#password: 467c483b24279c
#sender: GenBalancer <[email protected]>
smtp_host: smtp.gmail.com
smtp_port: 587
username: username
password: password
sender: email nguoi gui
recipient: email nguoi nhan