Skip to content

Bump substreams for execout prefetching and scheduler fix - #238

Merged
sduchesneau merged 1 commit into
developfrom
bump/substreams-execout-prefetch-scheduler
Sep 3, 2026
Merged

Bump substreams for execout prefetching and scheduler fix#238
sduchesneau merged 1 commit into
developfrom
bump/substreams-execout-prefetch-scheduler

Conversation

@sduchesneau

Copy link
Copy Markdown
Contributor

Bumps substreams to v1.22.1-0.20260903162505-4035f21109ec (compare).

Four substreams-tier1 changes, all on the path that serves a production-mode client from cached files:

  • Picking the next tier2 job walked every segment between the squasher and the job frontier on every call, so a run over N segments cost O(N²) in scheduling. The scheduler now keeps, per stage, the lowest segment that may still be pending and the completed prefix, and only looks at the segments those point at. On 3 stages with 4 workers and a squasher 3x slower than the jobs, scheduling 8000 segments went from 1.18s to 2.7ms. Job order is unchanged.

  • Cached execution output files for the next segments now download while the current one is being streamed, instead of each segment paying a full store round trip once the previous one is sent. Bounded per request at 4 segments ahead and 64 MiB of decompressed data, with no flag to set.

  • Each batch of cached execution output is sent on its own goroutine, so decoding the next batch overlaps with compressing and writing the current one, and decoding copies the payload one less time. Message order is unchanged.

  • The substreams.spkg and last_used cache markers are written in the background, off the request's critical path, so they no longer delay the first block sent.

No flag or configuration change. Changelog updated.

Brings tier1 execution-output prefetching and the scheduler fix that
stops job picking from slowing down on long backprocessing ranges.
@dfuse-bot
dfuse-bot requested a review from maoueh September 3, 2026 16:27
@dfuse-bot

dfuse-bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

🔍 Vulnerabilities of ghcr.io/streamingfast/firehose-core:b4be9f5-amd64

📦 Image Reference ghcr.io/streamingfast/firehose-core:b4be9f5-amd64
digestsha256:bcbd8c456634efe997f30bb31c53c86da5cde2e5f111bfa0b005d7eb9546f5e6
vulnerabilitiescritical: 0 high: 0 medium: 0 low: 0
platformlinux/amd64
size173 MB
packages509
📦 Base Image ubuntu:24.04
also known as
  • c1ca75be10a22ea09ff0b7bbe8b82ee03553a4f9b795030ee2ec921e42418fc8
  • noble
  • noble-20260810
digestsha256:1e0a86e57d247923571b75e0aaf48a1449cf8c543d51fb3e07a4a7d7bfa79316
vulnerabilitiescritical: 0 high: 0 medium: 24 low: 11

@sduchesneau
sduchesneau merged commit 7a71b64 into develop Sep 3, 2026
8 checks passed
@sduchesneau
sduchesneau deleted the bump/substreams-execout-prefetch-scheduler branch September 3, 2026 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants