@blinklabs/dingo 0.28.0 → 0.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/dingo.yaml.example +25 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -209,6 +209,8 @@ CARDANO_BLOCK_PRODUCER=true \
|
|
|
209
209
|
./dingo
|
|
210
210
|
```
|
|
211
211
|
|
|
212
|
+
When `storageMode=core`, the Badger blob store defaults to mmap-only settings: `block-cache-size=0`, `index-cache-size=0`, and `compression=false`. When `storageMode=api`, the default Badger profile is `block-cache-size=268435456`, `index-cache-size=0`, and `compression=true`. YAML, environment variable, and CLI Badger options override those defaults only when explicitly set.
|
|
213
|
+
|
|
212
214
|
See `dingo.yaml.example` for the full set of configuration options.
|
|
213
215
|
|
|
214
216
|
## Fast Bootstrapping with Mithril
|
|
@@ -313,8 +315,11 @@ BadgerDB Options:
|
|
|
313
315
|
- `data-dir` - Directory for database files
|
|
314
316
|
- `block-cache-size` - Block cache size in bytes
|
|
315
317
|
- `index-cache-size` - Index cache size in bytes
|
|
318
|
+
- `compression` - Enable Snappy compression
|
|
316
319
|
- `gc` - Enable garbage collection
|
|
317
320
|
|
|
321
|
+
Leave the mode-sensitive Badger settings unset if you want Dingo's storage-mode defaults. `storageMode=core` uses `block-cache-size=0`, `index-cache-size=0`, and `compression=false`; `storageMode=api` uses `block-cache-size=268435456`, `index-cache-size=0`, and `compression=true`.
|
|
322
|
+
|
|
318
323
|
Google Cloud Storage Options:
|
|
319
324
|
- `bucket` - GCS bucket name
|
|
320
325
|
- `project-id` - Google Cloud project ID
|
package/dingo.yaml.example
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# Example config file for dingo
|
|
2
|
-
# The values shown below correspond to the in-code defaults
|
|
2
|
+
# The values shown below correspond to the in-code defaults unless a
|
|
3
|
+
# setting is left commented out to preserve a storage-mode-specific
|
|
4
|
+
# runtime default.
|
|
3
5
|
|
|
4
6
|
# Public bind address for the Dingo server
|
|
5
7
|
bindAddr: "0.0.0.0"
|
|
@@ -19,12 +21,21 @@ database:
|
|
|
19
21
|
badger:
|
|
20
22
|
# Data directory for BadgerDB storage
|
|
21
23
|
data-dir: ".dingo/badger"
|
|
22
|
-
# Block cache size in bytes
|
|
23
|
-
|
|
24
|
-
#
|
|
25
|
-
|
|
24
|
+
# Block cache size in bytes.
|
|
25
|
+
# Leave unset to use the storage-mode default:
|
|
26
|
+
# - 0 when storageMode: "core"
|
|
27
|
+
# - 268435456 (256MB) when storageMode: "api"
|
|
28
|
+
# block-cache-size: 0
|
|
29
|
+
# Index cache size in bytes.
|
|
30
|
+
# Leave unset to use the runtime default (0 in both core and api modes).
|
|
31
|
+
# index-cache-size: 0
|
|
26
32
|
# Enable garbage collection (default: true)
|
|
27
33
|
gc: true
|
|
34
|
+
# Enable Snappy compression.
|
|
35
|
+
# Leave unset to use the storage-mode default:
|
|
36
|
+
# - false when storageMode: "core"
|
|
37
|
+
# - true when storageMode: "api"
|
|
38
|
+
# compression: false
|
|
28
39
|
gcs:
|
|
29
40
|
# Google Cloud Storage bucket name
|
|
30
41
|
bucket: ""
|
|
@@ -170,6 +181,10 @@ barkPort: 0
|
|
|
170
181
|
# storageMode: "api"
|
|
171
182
|
# utxorpcPort: 9090
|
|
172
183
|
# blockfrostPort: 3100
|
|
184
|
+
# # With storageMode: "api", leave mode-sensitive Badger settings unset to keep:
|
|
185
|
+
# # block-cache-size: 268435456
|
|
186
|
+
# # index-cache-size: 0
|
|
187
|
+
# # compression: true
|
|
173
188
|
#
|
|
174
189
|
# Validator / block producer (core storage, no APIs):
|
|
175
190
|
# storageMode: "core"
|
|
@@ -177,6 +192,11 @@ barkPort: 0
|
|
|
177
192
|
# shelleyVrfKey: "/keys/vrf.skey"
|
|
178
193
|
# shelleyKesKey: "/keys/kes.skey"
|
|
179
194
|
# shelleyOperationalCertificate: "/keys/opcert.cert"
|
|
195
|
+
# # With storageMode: "core", Badger blob defaults switch to mmap-only:
|
|
196
|
+
# # block-cache-size: 0
|
|
197
|
+
# # index-cache-size: 0
|
|
198
|
+
# # compression: false
|
|
199
|
+
# # You can still override any of those explicitly under database.blob.badger.
|
|
180
200
|
# # Optional forging tolerances (0 = defaults)
|
|
181
201
|
# forgeSyncToleranceSlots: 0
|
|
182
202
|
# forgeStaleGapThresholdSlots: 0
|