storj/satellite/metainfo/piecedeletion
Michał Niewrzał d72f9525d4 satellite/metainfo/piecedeletion: use nodes cache
Piece deletion service was using KnownReliable method from
overlaycache to get nodes addresses to send delete request.
KnownReliable was always hitting DB because this method was
not using cache. This change is using new DownloadSelectionCache
to avoid direct DB calls.

Change is not perfect because DownloadSelectionCache is not as
precise as KnownReliable method and can select few more nodes
to which we will send delete request but difference should be
small and we can improve it later.

Updates https://github.com/storj/storj/issues/4959

Change-Id: I4c3d91089a18ac35ebcb469a56536c33f76e44ea
2022-07-21 00:43:24 +00:00
..
combiner_bench_test.go ci: optimize benchmarks 2021-10-08 19:42:40 +03:00
combiner_test.go metainfo/piecedeletion: use NodeURL-s 2020-05-21 08:37:13 +03:00
combiner.go satellite/metainfo/piecedeletion: add metrics for deletion requests 2020-06-26 11:12:33 -03:00
dialer_test.go metainfo/piecedeletion: use NodeURL-s 2020-05-21 08:37:13 +03:00
dialer.go satellite/metainfo: adjust piecedeletion timeouts 2021-10-28 13:37:01 +03:00
doc.go satellite/metainfo/piecedeletion: add Service 2020-03-18 14:50:08 +00:00
handler_test.go metainfo/piecedeletion: use NodeURL-s 2020-05-21 08:37:13 +03:00
handler.go metainfo/piecedeletion: use NodeURL-s 2020-05-21 08:37:13 +03:00
queue_test.go satellite/metainfo/piecedeletion: try to make batches larger 2020-04-22 18:43:29 +00:00
queue.go all: fix dots 2020-07-16 14:58:28 +00:00
service_test.go satellite/metainfo/piecedeletion: use nodes cache 2022-07-21 00:43:24 +00:00
service.go satellite/metainfo/piecedeletion: use nodes cache 2022-07-21 00:43:24 +00:00