This one is already used on Satellites, but planning to start a new Storagenode rollout, and didn’t find related thread.
Please note that the opt-out from hashstore is disabled with this release. Based on monitoring old piecestore data is less than 1 PB. We would like to finish hashstore migration and simplify the code.
Out of curiosity, does Storj Inc. prefer nodes to spend I/O on the current wave of repairs or on hashstore migration? Judging from some of the recent posts, some nodes might have problem doing both concurrently
As an SNO, I’d prefer for the docker container to be fixed so that we’re less likely to suffer corruption now most of us are on hashstore. As far as I know the fix has already been made (a supervisord config change), but perhaps the knowledge hasn’t been transferred to push it out. Been thinking on implementing a workaround fix, but I’d risk one of my own storagenodes during testing. Not doing that atm.
I really do not understand the decision to force hashstore on everyone. I mean hashstore was primarily created for nodes that likely run in not-recommended setup.
I dislike it and will even more dislike the migration process. What’s not to love about lots and lots of writes touching data that should be at rest?
That can be done using read-only methods, like zfs scrub does. On the other hand, rewriting data can increase io load and can cause corruption if the system crashes or something at the wrong moment. Normally only the files received in the last seconds are at risk because by default the node does async writes. But now even a file received 4 years ago can get corrupt because it gets rewritten a bunch of times.
Wrong. It was written to handle load that even Storj’s superoptimized select nodes could not handle. Like, “20–30× the load simulated for the mystery customer”. And next time such customer comes, they may want to actually use the public network.
And the decision is simple: quick ballpark estimate is that blobstore and migration code is basically 1/4 of storage node. Not having to maintain 1/4 of the codebase, fixing its bugs, updating for new environments, solving data loss or security issues would be a big thing for the skeleton engineering team that Storj has now.
This does not make any sense. Scrub operates on a pool level. or did you mean you disabled checksumming?
Not faster, but “right now, during the scrub”, as opposed to “maybe never”
I was happy with piecestore. There was barely any CPU or disk activity – most went to SSD. During tesmageddon I saw maybe 30% utilization of disk IOPS ceiling, and maybe 20-30% CPU usage of 20 years old xeon. Not a big deal. Then I force migrated to hashstore. SSD sits idle. periodic compactions move around hundreds of gigabytes of data. storagenode process consumes 20-30% of the same CPU all the time (vs 5-10%).
For me it’s a downgrade. Data retrieval latency of small segments increased dramatically – all my small segments below 32k were on NVME SSD. Now they are on HDD. The filesystem can no longer optimize access to such pieces and everything is worse.
I can understand that there are use cases that hashstore is better equipped to handle and select experienced that usecase, on a hardware that was bottlenecked in some specific way.
I also understand that the test data was meant to simulate that workload, scaled down 20/30 times. Butmy nodes now work harder with hashstore than piecestore. Will scaling the load 20-30 times have different effect? No idea. Maybe that’s the crux of the issue?
Yeah, I can understand that they have to ship something that works well without a flash-caching layer. I bet for a lot of the fastest setups… the SNOs will be able to reclaim some SSDs that don’t help much anymore.
I suspect you have found some local optimum for blobstore and now you observe it no longer works for hashstore. Though, if you truly want a separate file per object, maybe try setting the target log file size to 1 byte and see what happens?
Is it possible to do that? I assume that would then simulate piecestore? While the migration would be really annoying anyway, this should solve the “writes on idle data” problem.
I guess I should set the size to 64KB then, seeing as that is the zvol block size or maybe 128KB. What would be the downsides of this? Metadata files getting too big or something else?
Because ultimately the data is stored on zfs, preallocation does not do anything and while reads can be cached, writes cannot. I also have bad memories from Storj v2 which constantly used 100% io to move data around without even getting new data.
IIRC the node does not actively try to target this size, but stops writing to a log file when it crosses that threshold. So you may still end up with 2 MB log file where the first 63 kB is taken by a bunch of small pieces, and then it gets hit by one big piece.
V2 made quite a lot of mistakes, for example storing metadata together with piece contents. hashstore is learning from this experience.
That’s acceptable. The idea is to avoid rewrites. If the files are small, they would usually contain one piece. If the piece gets deleted, the file gets deleted. In the case of a 64kB file being made up of 64x1KB pieces, well, its not that much space and it can wait until all the pieces are deleted. The goal is to avoid the process that takes two half-empty files and copies the data to a new one.
I may be unfair to v2, but what I remember from it is the IO at 100% all the time while barely any new data came in. The node ground to a halt after reaching a few hundred GB (IIRC). What I did not know was that some of the drives I used were SMR, so the compaction process ran even slower than it would have been. Eventually I figured out enough node.js (I did not use it before and have’t used it since) to modify the node and make it save data as separate files (basically like piecestore does now, but probably simpler). It solved my 100% IO problem (even on SMR drives) and the nodes ran well, but it was annoying to apply the modification to a new version, so I could update the node software.