storj/satellite/gracefulexit
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
..
chore_test.go satellite/gracefulexit: implement rangedloop observer 2022-12-22 10:47:10 -07:00
chore.go satellite/gracefulexit: observer cleanup 2022-11-05 12:10:44 +00:00
common.go satellite/gracefulexit: implement rangedloop observer 2022-12-22 10:47:10 -07:00
db_test.go satellite/gracefulexit: implement rangedloop observer 2022-12-22 10:47:10 -07:00
db.go satellite/gracefulexit: stop using gracefulexit_transfer_queue 2021-09-14 11:52:34 +00:00
endpoint_test.go satellite/overlay: insert DQ event into node events in overlay.DisqualifyNode 2022-11-04 15:18:31 +00:00
endpoint.go satellite/metabase: add piece size calculation to segment 2023-02-22 11:04:02 +00:00
getnodes_test.go satellite/overlay: remove old updateaddress method 2020-04-30 06:41:48 +00:00
gracefulexit_test.go all: fix math/rand deprecations 2023-02-17 15:05:54 +02:00
observer_test.go satellite/gracefulexit: implement rangedloop observer 2022-12-22 10:47:10 -07:00
observer.go satellite/gracefulexit: implement rangedloop observer 2022-12-22 10:47:10 -07:00
pathcollector.go satellite/metabase: add piece size calculation to segment 2023-02-22 11:04:02 +00:00
pending_test.go satellite/gracefulexit: stop using gracefulexit_transfer_queue 2021-09-14 11:52:34 +00:00
pending.go satellite/gracefulexit: stop using gracefulexit_transfer_queue 2021-09-14 11:52:34 +00:00
validation.go satellite/gracefulexit: stop using gracefulexit_transfer_queue 2021-09-14 11:52:34 +00:00