Allow node to have a mode to only upload and delete files instead of a partial graceful exit

Currently there are no way for a storage node to decrease their size. Say if a node has 1TB of used storage, and they want to go to 500GB of storage there is no good way of doing that.

My solution is to allow the 1TB node to go down to 500GB by simply prevent this node from getting any download data, until they are under their desire size. So the node can only upload files and delete files. I believe this is a better solution than a partial graceful exit. It will not be as fast as a partial graceful exit, but it will be able to drop down to the desired size naturally.

This can be an flag or argument as part of a docker command, or simply reducing the size of "STORAGE" environment variable and the node knows to not download.

  • Guest
  • Feb 2 2020
  • Shipped
  • Attach files
  • Helene Unland commented
    3 Feb 05:54pm

    You can already achieve this now by lowering the allotted storage space in your config file to 500 GB or whatever the new amount of space is you eventually want to reduce to.