So im confused on hashtable piece. I have 256GB of RAM, so I want to use memtable/mmap, do I need a directory on an SSD as well?
If someone could help me sort out these docker config options that would be great.
Do I need to set --hashstore.table-path if I want to use mmap?
I have enabled chore migration on my nodes, and I am now occasionally getting errors like this:
rmat version 1: too small for header (0 < 512)", "errorVerbose": "opening the old reader: pieces error: invalid piece file for storage format version 1: too small for header (0 < 512)\n\tstorj.io/storj/storagenode/piecemigrate.(*Chore).migrateOne:335\n\tstorj.io/storj/storagenode/piecemigrate.(*Chore).processQueue:277\n\tstorj.io/storj/storagenode/piecemigrate.(*Chore).Run.func2:184\n\tstorj.io/common/errs2.(*Group).Go.func1:23",
Do the pieces automatically get removed? Or will I have to manually remove them?
BTW, once turning on the hashstore migration (regardless of the mode), all new pieces are stored using hashstore, right? Iâm slightly confused - sorry
There is passive migration and active migration. One puts new pieces in hashtore, the other MOVES stored pieces from piecestore to hashstore. If you enabled both, youâre good.
Nothing to do with the type of hashtore you are using⌠hashtable, memtable, etc.
I tried active migration few weeks back on one node. I see 100+ read iops on the node HDD all the time now. Migration is long finished. Is this expected? Hashstore tables are on SSDâŚ
Wasnât there an issue with ext4 and folders with large number of deleted files? You can delete all content in blobs folder but not the folder itself. Maybe it helps.
Also you can set migrate_chore to false once migration is finished.
Well, I have both the .migrate and .migrate_chore files (migrate_chore has true, migrate has {"PassiveMigrate":true,"WriteToNew":true,"ReadNewFirst":true,"TTLToNew":true}). In my logs though, it still says piecestore piece downloaded. This suggests to me that they arenât being saved to hashstore - is this the case?
In fact hashstore is implemented as an alternative storage backend for piecestore. Logging for upload/download happens in the common part and hasnât changed.
Because you showed only the passive one, with a passive migration pieces would be moved to hashstore when requested, otherwise they will stay in piecestore.