Skip to content

Measure the download time of a mainnet Cardano database with IPFS on dev-mainnet #3608

Closed

Description

@jpraynaud

Why

Each archive retrieved from IPFS pays a provider lookup before the transfer starts, and a mainnet Cardano database has thousands of immutable archives, so we do not know yet whether the total download time is acceptable for mainnet.

What

Measure the download time of a mainnet Cardano database from IPFS on the dev-mainnet network, compare it with the cloud storage download, and identify a strategy to reduce it if needed.

How

Activity

  1. added
    investigation 🔎
    on Oct 7, 2026
  2. added
    spike 📡
    and removed
    investigation 🔎
    on Oct 7, 2026
  3. changed the title [-]Estimate the download time of a mainnet Cardano database with IPFS[/-] [+]Measure the download time of a mainnet Cardano database with IPFS on `dev-mainnet`[/+] on Oct 27, 2026
  4. self-assigned this
    on Oct 28, 2026
  5. jpraynaud commented on Oct 29, 2026

    @jpraynaud
    MemberAuthor

    Summary

    The latest dev-mainnet Cardano database (9,332 immutable files, 65 GB of archives, 237 GB unpacked) was downloaded with the unstable client on a ~565 Mbit/s link (~71 MB/s), with a fresh Kubo v0.43.1 client node per IPFS run (3 runs per configuration, download step only).

    Source Average download time Throughput
    Cloud storage 15 min 15 s ~71 MB/s
    IPFS, client Kubo over TCP, aggregator + 3 replicas 17 min 0 s ~63 MB/s
    IPFS, client Kubo over TCP, aggregator only 21 min 22 s ~52 MB/s
    IPFS, client Kubo with default transports (QUIC) 65 min 21 s ~17 MB/s
    Client Kubo node resource IPFS over TCP
    Memory (max) ~1.1 GiB
    CPU (average) 100 to 200%
    Datastore (max) ~60 GB

    Findings

    • The cloud storage download saturates the link. The verification takes ~5 min whatever the source.
    • With its default transports, the client Kubo node is capped at ~27 MB/s by QUIC, which gets a 416 KiB UDP receive buffer instead of 7 MiB with the default Linux net.core.rmem_max. Disabling QUIC, WebTransport and WebRTC-Direct (TCP only, no root access needed) makes IPFS 3 times faster.
    • The client Kubo node keeps every downloaded block (~60 GB of temporary disk space, in spite of StorageMax) and announces them in the DHT.
    • The 5 s files/stat timeout of the client is too short: a single timeout trips the IPFS circuit breaker, which silently falls back to cloud storage for all the remaining files. With a timeout of 10 s, a full download over TCP fetched every file from IPFS (slowest files/stat 6.39 s), so 10 s is a safe enough value.
    • Tuning the Bitswap server of the serving Kubo nodes speeds up a single replica from 45.4 MB/s to 54.0 MB/s.

    Next steps

    • Set the files/stat timeout of the client to 10 s.
    • Refactor the IPFS circuit breaker: trip at once on a connect error, fall back to cloud storage for one file on a timeout and trip only after consecutive timeouts, and report the fallback to the user.
    • Apply the Bitswap tuning to the aggregator Kubo node and to the replica guide.
    • Load test the serving nodes with many concurrent clients from several machines.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

spike 📡

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions