-
Notifications
You must be signed in to change notification settings - Fork 57
Expand file tree
/
Copy pathconfig.json.example
More file actions
103 lines (103 loc) · 2.43 KB
/
Copy pathconfig.json.example
File metadata and controls
103 lines (103 loc) · 2.43 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
102
103
{
"db": {
"host": "${DB_HOST:localhost}",
"port": 5432,
"user": "${DB_USER:verinode}",
"password": "${DB_PASSWORD:}",
"database": "${DB_NAME:verinode}",
"maxConnections": 20,
"idleTimeoutMs": 30000,
"connectionTimeoutMs": 10000
},
"mtls": {
"enabled": false,
"certFile": "/etc/mtls/cert.pem",
"keyFile": "/etc/mtls/key.pem",
"caFile": "/etc/mtls/ca.pem",
"trustDomain": "cluster.local",
"allowedSpiffeIds": [],
"certMaxValidityMs": 86400000,
"minSecondsUntilExpiry": 3600,
"reloadPollMs": 30000
},
"tls": {
"acme": {
"enabled": false,
"domains": ["api.verinode.example.com"],
"email": "admin@verinode.example.com",
"directoryUrl": "https://acme-v02.api.letsencrypt.org/directory",
"termsOfServiceAgreed": true,
"renewBeforeDays": 30,
"emergencyNotifyDays": 7,
"checkIntervalMs": 86400000
},
"certPath": "/etc/ssl/cert.pem",
"keyPath": "/etc/ssl/key.pem",
"chainPath": "/etc/ssl/chain.pem",
"webroot": "/tmp/verinode-acme"
},
"telemetry": {
"otel": {
"enabled": true,
"endpoint": "http://jaeger:4317",
"serviceName": "verinode-backend",
"samplingRatio": 1.0
}
},
"app": {
"port": 3000,
"environment": "production",
"logLevel": "info"
},
"staking": {
"maxConcurrentWorkers": 10,
"nonceRangeLimit": "1000"
},
"remote": {
"etcd": {
"enabled": false,
"endpoints": ["http://etcd:2379"],
"keyPrefix": "verinode/config"
},
"consul": {
"enabled": false,
"address": "consul:8500",
"keyPrefix": "verinode/config"
}
},
"feature_flags": {
"overrides": {
"advanced_analytics": "disabled",
"batch_processing": "enabled"
}
},
"capacity_shedding": {
"enabled": true,
"checkIntervalMs": 5000,
"cooldownPeriodMs": 30000,
"thresholds": {
"light": {
"cpuPercent": 70,
"memoryPercent": 75,
"requestRatePerSec": 800,
"p99LatencyMs": 500
},
"medium": {
"cpuPercent": 85,
"memoryPercent": 85,
"requestRatePerSec": 1200,
"p99LatencyMs": 1000
},
"critical": {
"cpuPercent": 95,
"memoryPercent": 95,
"requestRatePerSec": 2000,
"p99LatencyMs": 3000
}
},
"flagsToShed": {
"advanced_analytics": "disabled",
"batch_processing": "degraded"
}
}
}