storj/storagenode/piecestore
Márton Elek 00420b5904 storagenode/piecestore: better monkit metric for download
Download is server from two goroutines:

 * one is waiting for the orders (and updates the actual limit)
 * other one sends the valuable bytes back to the client (in case the actual order is big enough)

These two tasks are syncrhonized with the help of a `sync2.NewThrottle()`

But all of these happens in the same method, therefore we have no idea how much time is spent on waiting for next orders
 (throttle can wait until we receive new orderlimit), and how much time is spent with actual work.

This patch moves the actual work (after sending routine is waked up) to a separated method to have better visibility and measure the actual work (read data + send it).

Change-Id: Ia5068c544560a53bc2fcea6cb6fce85cfacbd95b
2023-03-30 10:46:18 +00:00
..
usedserials all: fix error naming 2021-04-29 15:38:21 +03:00
doc.go storagenode: add doc.go files for sno packages 2021-09-29 08:24:56 +00:00
endpoint_test.go storagenode/piecestore: be more flexible with bandwidth usage max 2023-03-06 18:00:17 +00:00
endpoint.go storagenode/piecestore: better monkit metric for download 2023-03-30 10:46:18 +00:00
verification_test.go all: fix deprecated ioutil commands 2022-10-11 15:27:29 +00:00
verification.go storagenode/piecestore: return node certificate chain at upload conclusion 2023-02-01 01:49:50 +00:00