Size to do disk space accounting (updating trash size, so that you have a shiny number on your dashboard).
Modification time to avoid running bloom filter on pieces that were uploaded after the bloom filter was created. Modification time is the only timestamp that is consistently preserved across OSes and file systems, so it’s not possible to depend on, let say, ctime.
I have updated the config wiki (Config.yaml - Linux/Docker all parameters) with the new version. Can someone explain a couple of things for the new logging changes?
…And that cache for slow disks/low mem.
I hope those log changes won’t start filling my log like crazy and have to switch it to FATAL again. Now I run custom log info mode, with FATAL only on piecestore and collector.
Take a look at the code change. It isn’t that big of a deal. This is more like a quick idea to try out. From the point of view of a developer there is a list of possible solutions and it makes sense to start with everything that is cheap to implement. If that proves to be inefficient then go on with the next idea. Sure this doesn’t eliminate the downsides but it justifies spending the required resources on the more expensive solutions down the road that you would only consider if everything else didn’t work.
We are mixing the topics a bit. The used space file walker needs the size but not the mod time. Garbage collection needs the mod time but the size only for the pieces it moves in the trash folder. The mod time is needed because by the time your node is processing the bloom filter it will have stored a few more pieces that haven’t been around while the bloom filter was generated. These pieces will be a negative match against the bloom filter. So the following if statement checks the age of the piece. Is it a new piece then keep. If it is an old piece it is safe to move into the trash folder.
Is it possible to make that SLC satellite deletes will not go to trash but deleted directly, there is no concerns do loose test data, it is even with TTL.
I dont think it is good on other satellite only SLC.
By this we hold trash more clean, give clients more space to use.
If you finished the used space filewalker with 1.107 that should be fine as well. If you did not run the used space filewalker it would have carried over the incorrect values from the previous release. So one run somewhere after upgrading to 107 or 108 should do the trick.
The new version isn’t going to change that. At best you can stop running the used space filewalker. You still need to run it once to correct the numbers but if we are lucky we can turn it off and forget about it for a few weeks maybe months.
But I guess the process that is currently active on your node is garbage collection. That one will be same costs with the new version.
There is an experimental cache you could try out. It is currently more or less untested so maybe a bit too early to try that on a bigger node.