Badger cache: are we ready?

If you have low RAM and the file walkers struggle aka they take to much time to finish, like hours…
It also helps to win more races… in theory.

https://forum.storj.io/t/badger-cache-filewalker-test-results/27334?u=snorkel
There is also the official post, but I can’t find it.
To enable it:

	--pieces.enable-lazy-filewalker=false \
	--storage2.piece-scan-on-startup=true \
	--pieces.file-stat-cache=badger

There is also a post about moving the badger cache dir to SSD, if you want.
I run all the storagenode files on the same HDD as the storage on 8GB RAM with 2 nodes, and I don’t have any problems (data, databases, badger cache).
But you need UPS, because a sudden power loss can corrupt the badger cache and you must manualy delete the directory, restart the node and run the startup filewalker as there was no cache (time wise), to rebuild the cache.

1 Like