Skip to content

Shrink bolt databases #1951

@fyrchik

Description

@fyrchik

The size of bbolt databases can only grow boltdb/bolt#308

This is a bit misleading from the user POV, who can do df -h and also leaves less space for big objects.
We can extend GC with a vacuum, which (rarely) tries to compact blobovnicza trees by trying to move all objects on a single level to a smaller set of leaves.

There is also https://github.com/etcd-io/bbolt/blob/master/compact.go, but it needs 2 files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    I3Minimal impactS3Minimally significantU4Nothing urgentenhancementImproving existing functionalityneofs-storageStorage node application issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions