Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: enable gc #826

Merged
merged 1 commit into from
Feb 16, 2019
Merged

feat: enable gc #826

merged 1 commit into from
Feb 16, 2019

Conversation

hacdias
Copy link
Member

@hacdias hacdias commented Feb 16, 2019

As per #665, let's enable automatic garbage collector.

License: MIT
Signed-off-by: Henrique Dias hacdias@gmail.com

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
Copy link
Member

@lidel lidel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

For the record, it will enable GC with default settings.
In go-ipfs v0.4.18 those are:

https://github.com/ipfs/go-ipfs/blob/v0.4.18/docs/config.md#datastore:

  • StorageMax
    A soft upper limit for the size of the ipfs repository's datastore. With StorageGCWatermark,
    is used to calculate whether to trigger a gc run (only if --enable-gc flag is set).

Default: 10GB

  • StorageGCWatermark
    The percentage of the StorageMax value at which a garbage collection will be
    triggered automatically if the daemon was run with automatic gc enabled (that
    option defaults to false currently).

Default: 90

  • GCPeriod
    A time duration specifying how frequently to run a garbage collection. Only used
    if automatic gc is enabled.

Default: 1h

@lidel lidel mentioned this pull request Feb 16, 2019
3 tasks
@hacdias hacdias merged commit d3d5e09 into master Feb 16, 2019
@ghost ghost removed the in progress label Feb 16, 2019
@hacdias hacdias deleted the feat/enable-gc branch February 16, 2019 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants