Skip to content

Upload the recomputed immutable archives to IPFS instead of keeping the previous ones #3713

In progress

Description

@jpraynaud

Why

The IPFS uploader of the aggregator skips any archive whose file name already exists in the MFS directory, so the immutable archives recomputed in the deterministic format (e.g. after clearing the immutable archives cache) are never uploaded to IPFS and the published directory keeps the previous non deterministic archives and their CIDs.

What

Discard remote file in the MFS of the Kubo node when an immutable compressed archive has been created.

How

  • When a new immutable compressed archive is created, the associated file name is removed from the MFS directory (and unpinned):
    • Add a new discard_remote_archive function to the ImmutableFilesUploader trait:
    • With a blanket implementation that does nothing
    • With an implementation only for the IpfsFileUploader that removes entry from MFS and unpin the file
    • Check that the recommended configuration of the Kubo node associated to an aggregator has some GC activated
  • Update the migrate-immutables-archives runbook (in particular add manual commands for ipfs files rm and ipfs pin rm)
  • Rehearse the reset of the immutable compressed archives on dev-mainnet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

optimization 🛠️

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions