storj/satellite/audit
Michal Niewrzal 16b7901fde satellite/metabase: add piece size calculation to segment
This code is essentially replacement for eestream.CalcPieceSize. To call
eestream.CalcPieceSize we need eestream.RedundancyStrategy which is not
trivial to get as it requires infectious.FEC. For example infectious.FEC
creation is visible on GE loop observer CPU profile because we were
doing this for each segment in DB.

New method was added to storj.Redundancy and here we are just wiring it
with metabase Segment.

BenchmarkSegmentPieceSize
BenchmarkSegmentPieceSize/eestream.CalcPieceSize
BenchmarkSegmentPieceSize/eestream.CalcPieceSize-8         	    5822	    189189 ns/op	    9776 B/op	       8 allocs/op
BenchmarkSegmentPieceSize/segment.PieceSize
BenchmarkSegmentPieceSize/segment.PieceSize-8              	94721329	        11.49 ns/op	       0 B/op	       0 allocs/op

Change-Id: I5a8b4237aedd1424c54ed0af448061a236b00295
2023-02-22 11:04:02 +00:00
..
audit_test.go satellite/audit: implement rangedloop observer 2023-01-03 08:52:01 -07:00
chore.go satellite/audit: prevent accessing unset reservoir segments 2022-12-14 17:43:17 -07:00
collector_test.go satellite/audit: use NodeAlias instead pure NodeID 2023-02-21 15:31:59 +00:00
collector.go satellite/audit: use NodeAlias instead pure NodeID 2023-02-21 15:31:59 +00:00
common_test.go satellite/audit: implement rangedloop observer 2023-01-03 08:52:01 -07:00
containment_test.go satellite/audit: test delay before Reverify 2023-02-15 23:16:23 +00:00
containment.go satellite/audit: add GetAllContainedNodes method to ReverifyQueue 2023-02-02 00:39:29 +00:00
cryptosource.go all: fix dots 2020-07-16 14:58:28 +00:00
disqualification_test.go satellite/metainfo: support desired node number for download object/segment 2023-02-13 13:57:48 +00:00
getshare_test.go satellite/audit: implement rangedloop observer 2023-01-03 08:52:01 -07:00
integration_test.go satellite/audit: implement rangedloop observer 2023-01-03 08:52:01 -07:00
observer.go satellite/audit: use NodeAlias instead pure NodeID 2023-02-21 15:31:59 +00:00
pieces_test.go satellite/repair: update audit records during repair 2021-09-24 00:48:13 +00:00
pieces.go satellite/repair: move over audit.Pieces 2022-09-22 16:43:03 +00:00
queue.go satellite/audit: add GetAllContainedNodes method to ReverifyQueue 2023-02-02 00:39:29 +00:00
reporter_test.go satellite/audit: split out auditor process 2022-12-16 12:44:32 -06:00
reporter.go satellite/audit: newContainment->containment 2022-12-16 17:59:52 +00:00
reservoir_test.go satellite/audit: merge support for reservoirs 2022-12-16 15:27:55 +00:00
reservoir.go satellite/audit: merge support for reservoirs 2022-12-16 15:27:55 +00:00
reverifier_test.go satellite/audit: change signature of ReverifyPiece 2022-12-07 18:32:42 +00:00
reverifier.go satellite/metabase: add piece size calculation to segment 2023-02-22 11:04:02 +00:00
reverify_chore_test.go satellite/audit: add ContainmentSyncChore 2023-02-07 01:18:49 +00:00
reverify_chore.go satellite/audit: add ContainmentSyncChore 2023-02-07 01:18:49 +00:00
reverify_test.go satellite/audit: test delay before Reverify 2023-02-15 23:16:23 +00:00
reverifyworker.go satellite/audit: add audit.ReverifyWorker 2022-12-12 11:57:08 +00:00
verifier_test.go satellite/audit: test delay before Reverify 2023-02-15 23:16:23 +00:00
verifier_unit_test.go satellite/audit: Begin using piecewise reverifications 2022-12-16 14:21:13 +00:00
verifier.go satellite/audit: newContainment->containment 2022-12-16 17:59:52 +00:00
worker.go satellite/audit: add ContainmentSyncChore 2023-02-07 01:18:49 +00:00