Skip to content

Investigate the stalled reprovides of the dev-mainnet aggregator Kubo node #3728

Backlog

Description

@jpraynaud

Why

On dev-mainnet, the aggregator Kubo node renewed only 15 of its 68 keyspace regions during the last 22 h reprovide cycle (with all 24 provide workers busy, 86 reprovide jobs queued and no progress between two ipfs provide stat snapshots), so most of the provider records of the immutable archives expire on the DHT and the IPFS downloads of the clients can time out.

What

Find the root cause of the stalled reprovides and apply a Kubo configuration with which every provider record of the aggregator is renewed within Provide.DHT.Interval on all the Mithril networks and on the IPFS replicas.

How

  • Collect the provider state of the dev-mainnet Kubo node
    • ipfs provide stat --all snapshots over time (regions reprovided, queued jobs, total CIDs provided)
    • The provider debug logs (dht/provider and provider subsystems)
    • A goroutine dump of the node (/debug/pprof/goroutine?debug=2 on the RPC API)
  • Identify why the provide workers stop making progress (capacity, configuration or a Kubo or go-libp2p-kad-dht defect)
  • Evaluate the mitigations (including long term increase due to Leios)
    • Increase the size of the chunks to 512KB or more?
    • Reduce the number of announced CIDs with Provide.Strategy (the 256,945 scheduled CIDs are mostly archive chunks, for 9,438 pinned roots)
    • Upgrade Kubo to the latest release
    • Tune or disable the sweep provider (Provide.DHT.* settings)
    • Restart the Kubo node automatically when the reprovides stop making progress
    • Test Provide.Strategy with pinned, mfs, entities, ...
    • TBD
  • Apply the retained configuration in configure-node.sh, the IPFS replica script and the IPFS replica guide
  • Verify on dev-mainnet that a full reprovide cycle covers all the regions
  • Report the defect upstream if one is found
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions