ipfs / ipfs/kubo

IPNS garbage collection

Open
#7,733 4 comments 2 reactions 0 assignees View on GitHub
kind/enhancement status/ready
Dominant language
Go
Stars
17.1k
Forks
3.2k
Avg merge
3d 18h
Merged PRs (30d)
11

Description

As far as I can see in all IPNS entries get stored in the MapDatastore of the DHT, but old entries won't be removed once they reached the end of life. This could lead to a lot of memory usage and potentially crash the node.

In the DHT Datastore the max record age is 36 Hours, but are only removed on trying to receive the entry. If an old entry is not asked by any node it will not be removed, this can lead to a buildup of a lot of entries.

I propose that all IPNS entries should be garbage collected in a regular interval and removed if their end of life is reached, which can be way earlier than the MaxRecordTime of the DHT.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.