Skip to content

Commit 6889ed6

Browse files
committed
Improve experiment configuration
1 parent df51291 commit 6889ed6

2 files changed

Lines changed: 5 additions & 35 deletions

File tree

pkg/config/config.go

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -343,38 +343,6 @@ func (d *DAConfig) IsFiberEnabled() bool {
343343
return d.Fiber.Enabled
344344
}
345345

346-
// ApplyFiberDefaults flips the DA client to Fiber-friendly defaults
347-
// when the Fiber profile is enabled — adaptive batching, a 1 s
348-
// DA.BlockTime so inclusion-tracking keeps pace with Fibre's
349-
// settlement, and a bounded pending-cache window so a Fibre stall
350-
// can't grow memory unbounded. Caller-provided non-zero values for
351-
// the tunables (BatchSizeThreshold, BatchMinItems) are preserved.
352-
//
353-
// Intended to be invoked once at runner startup, after parsing the
354-
// usual config but before constructing the DA client.
355-
func (c *Config) ApplyFiberDefaults() {
356-
if !c.DA.IsFiberEnabled() {
357-
return
358-
}
359-
360-
c.DA.BatchingStrategy = "adaptive"
361-
if c.DA.BatchSizeThreshold <= 0 || c.DA.BatchSizeThreshold > 1 {
362-
c.DA.BatchSizeThreshold = 0.5
363-
}
364-
c.DA.BatchMaxDelay = DurationWrapper{Duration: 8 * time.Second}
365-
if c.DA.BatchMinItems == 0 {
366-
c.DA.BatchMinItems = 1
367-
}
368-
369-
c.DA.BlockTime = DurationWrapper{Duration: 1 * time.Second}
370-
// Tighter pending cap (was 50). At 50, a Fibre upload stall lets the
371-
// submitter accumulate 50 × ~32 MiB blob copies + their per-validator
372-
// retry buffers; under load that exceeded c6in.8xlarge's 64 GiB and
373-
// OOM-killed evnode at 63.8 GiB. 10 keeps the in-flight footprint
374-
// bounded while still letting healthy uploads pipeline.
375-
c.Node.MaxPendingHeadersAndData = 10
376-
}
377-
378346
// GetNamespace returns the namespace for header submissions.
379347
func (d *DAConfig) GetNamespace() string {
380348
return d.Namespace

tools/celestia-node-fiber/cmd/evnode-fibre/main.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -299,9 +299,11 @@ func run(cli cliFlags) error {
299299
cfg.DA.Fiber.KeyringPath = cli.keyringPath
300300
cfg.DA.Fiber.KeyName = cli.keyName
301301
cfg.DA.RequestTimeout = config.DurationWrapper{Duration: 60 * time.Second}
302-
// Fiber-tuned profile: BatchingStrategy=adaptive, BatchMaxDelay=1.5s,
303-
// DA.BlockTime=1s, MaxPendingHeadersAndData=0, plus 120 MiB blob cap.
304-
cfg.ApplyFiberDefaults()
302+
// cfg.DA.BatchMaxDelay = config.DurationWrapper{Duration: 8 * time.Second}
303+
cfg.DA.BatchMinItems = 1
304+
cfg.DA.BatchingStrategy = "size"
305+
cfg.DA.BatchSizeThreshold = 0.95
306+
cfg.Node.MaxPendingHeadersAndData = 10_000
305307
// 100 MiB — bounded by Fibre's hard ~128 MiB per-upload cap (we
306308
// hit `data size exceeds maximum 134217723` at 128 MiB - 5 B).
307309
// Set the per-block data cap below that so each block_data item

0 commit comments

Comments
 (0)