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: persist limits to Swarm.ResourceMgr.Limits #8901

Merged
merged 3 commits into from
Apr 28, 2022
Merged

Commits on Apr 27, 2022

  1. feat: persist limit changes to config

    This changes the "ipfs swarm limit" command so that When limit changes
    are applied via the command line, they are persisted to the repo
    config, so that they remain in effect when the daemon restarts.
    
    This also removes limit.json support, to simplify the behavior. The
    schema for Swarm.ResourceMgr.Limits is exactly the same as limit.json,
    so existing limit.json can be dropped into the IPFS config easily
    using something like:
    
    cat ~/.ipfs/config | jq ".Swarm.ResourceMgr.Limits = $(cat limit.json)" | sponge ~/.ipfs/config
    
    This upgrades to Resource Manager v0.3.0, which exports the config
    schema so that we don't have to maintain our own copy of it.
    guseggert committed Apr 27, 2022
    Configuration menu
    Copy the full SHA
    281b3a5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3316b0d View commit details
    Browse the repository at this point in the history

Commits on Apr 28, 2022

  1. fix(test): t0139-swarm-rcmgr.sh

    Makes sure we evaluate the config JSON directly, so we catch any
    regressions around serialization too.
    lidel committed Apr 28, 2022
    Configuration menu
    Copy the full SHA
    7745fa4 View commit details
    Browse the repository at this point in the history