-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathdugtrio-config.example.yaml
More file actions
101 lines (79 loc) · 2.52 KB
/
Copy pathdugtrio-config.example.yaml
File metadata and controls
101 lines (79 loc) · 2.52 KB
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
94
95
96
97
98
99
100
101
logging:
outputLevel: "debug"
#outputStderr: false
#filePath: "explorer.log"
#fileLevel: "warn"
# HTTP Server configuration
server:
# Address to listen on
host: "localhost"
# Port to listen on
port: "8080"
# Beacon Node Endpoints
endpoints:
- name: "pk01"
url: "http://10.16.71.108:5052"
- name: "lh"
url: "http://10.16.97.2:5052"
- name: "teku"
url: "http://10.16.97.3:5051"
# Pool configuration
pool:
schedulerMode: "rr"
followDistance: 10
maxHeadDistance: 2
# Proxy configuration
proxy:
# number of proxies in front of dugtrio
proxyCount: 0
# proxy call timeout
callTimeout: 60s
# proxy session timeout
sessionTimeout: 10m
# reuse the same endpoint when possible
stickyEndpoint: true
# call rate limit (calls per second)
callRateLimit: 100
# call rate burst limit
callRateBurst: 1000
# blocked api paths (regex patterns)
blockedPaths:
- ^/eth/v[0-9]+/debug/.*
# endpoint failover: retry data queries on other ready endpoints when an endpoint
# cannot serve the requested data (404/500/501/503 or connection error).
#failoverDisabled: false
# api path patterns (regex) eligible for endpoint failover (default: state queries)
#failoverPaths:
# - ^/eth/v[0-9]+/beacon/states/
# - ^/eth/v[0-9]+/debug/beacon/states/
# maximum number of alternate endpoints to try per call (negative = all ready endpoints)
#failoverMaxAttempts: 8
# how long an attempt may stay silent before the next candidate endpoint is raced in
# parallel; the silent attempt keeps running until the call timeout, so slow endpoints
# get their full time to respond while hanging endpoints only cost latency
#failoverHedgeDelay: 20s
# maximum number of hedged attempts running in parallel per call
#failoverMaxParallel: 2
# optional authorization
auth:
required: false
# password for HTTP Basic Auth (username is used as session identifier)
password: ""
# API keys for header-based auth (use X-Dugtrio-Secret-Token header)
apiKeys:
- name: "example-client"
key: "your-secret-api-key-here"
# how often to check for session imbalances (0 = disabled)
rebalanceInterval: 10s
# how much imbalance to tolerate (0-1)
rebalanceThreshold: 0.1
# absolute difference in sessions that triggers rebalancing
rebalanceAbsThreshold: 3
# maximum number of sessions to rebalance per run (0 = unlimited)
rebalanceMaxSweep: 10
# Frontend configuration
frontend:
# Enable or disable to web frontend
enabled: true
minify: true
siteName: "Dugtrio"