Skip to content

Some Cardano database artifacts don't have IPFS locations for immutables #3712

Open

Description

@jpraynaud

Why

When the aggregator is configured with an IPFS Kubo node and that node is unreachable (e.g. after the restart of the Kubo node), the immutable files upload to IPFS fails and only logs an error, so the Cardano database artifact is still created without any IPFS location while the aggregator keeps advertising an IPFS share to the clients.

What

When an IPFS uploader is configured, the aggregator fails the Cardano database artifact creation if no IPFS location is returned for the immutable files, so that it is created again with an IPFS location at the next attempt instead of being certified without one.

How

  • Identify why the timeout is reached when the Kubo node is cold:
    • Extend the timeout of files/ls to account for cold Kubo node to see which value would fix the problem
    • Understand the mechanism that creates the timeout
    • Attempt a warmup of the Kubo node?
  • If we can't fix the problem with a timeout configuration:
    • Make the immutable files upload fail when an IPFS uploader is configured and returns no location, even if the other uploaders succeed
    • Expose the IPFS upload failure in the aggregator metrics or logs used by the monitoring
    • Update the aggregator IPFS configuration documentation with the new behavior
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    optimization 🛠️

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions