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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
[]
= "0.0.0.0:8549"
[]
= 12
= 3
= 1
= 9
= 200
= 200
# These settings are applied at startup. A restart is required to change them.
= 300 # Time to wait for a connection to be established (milliseconds)
= 3 # Total request timeout (seconds)
= 25 # How long an idle connection is kept in the pool (seconds)
= 200 # Max number of idle connections to a single host
# A value between 0.0 and 1.0. Smaller is smoother (slower reaction). Resolves ties when multiple Tier 2 endpoints have similar latency.
# Larger is less smooth (faster reaction). Default is 0.1.
= 0.1
# Endpoint configuration starts here.
# Each endpoint is defined in its own [[balancer.endpoints]] block.
## Local RPC (tier 1)
[[]]
= "http://127.0.0.1:8547"
= 10000
= 10000
= 100
## Premium RPC (Tier 2)
[[]]
= "https://premium.cloud.rpc.01.com"
= 200
= 300
= 60
[[]]
= "https://premium.cloud.rpc.02.com"
= 200
= 300
= 50
[[]]
= "https://premium.cloud.rpc.03.com"
= 200
= 300
= 50
## Free tier and public RPC (Tier 3)
[[]]
= "https://free.public.endpoint.01.com"
= 20
= 25
= 15
[[]]
= "https://free.public.endpoint.02.com"
= 10
= 15
= 10
[[]]
= "https://free.public.endpoint.03.com"
= 5
= 10
= 5
[[]]
= "https://free.public.endpoint.04.com"
= 6
= 12
= 5
[[]]
= "https://free.public.endpoint.05.com"
= 8
= 16
= 5