Joystream / joystream

Joystream Monorepo
http://www.joystream.org
GNU General Public License v3.0
1.42k stars 115 forks source link

Pruning of assets from storage nodes that they are no longer obliged to store #4813

Open zeeshanakram3 opened 1 year ago

zeeshanakram3 commented 1 year ago

Problem

Currently, storage nodes don't delete assets no longer assigned to them in the runtime. And hence dead assets keep on accumulating on the nodes. This means that disk usage of the nodes would continue to grow unless operators manually clean up the space which is very risky. Other complications of not pruning assets are that DataObjects/Bags can't be effectively moved b/w different buckets/operators, as this action does not physically free up the space, so Storage Lead can't use the Globally available disk space effectively.

zeeshanakram3 commented 1 year ago

Proposal

TBD

yasiryagi commented 1 year ago

there should be a mean for the storage server operator to run a command:

bedeho commented 1 year ago

shouldn't this happen automatically?

yasiryagi commented 1 year ago

That is the ideal with couple of two more consideration:

  1. Data loss mitigation consideration.
  2. Ability of the operator to force it through command.
kdembler commented 8 months ago

@zeeshanakram3 Should we close this already or there's more work to be done?