storj/storagenode
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
..
apikeys multinode/payouts: estimated payouts added 2021-05-11 11:33:32 +00:00
bandwidth storagenode: add doc.go files for sno packages 2021-09-29 08:24:56 +00:00
collector storagenode/collector: delete expired piece info if file does not exist 2022-09-15 12:29:29 +00:00
console storagenode: fix B*h to bytes disk usage conversion 2023-02-06 18:50:31 +00:00
contact private/server: debounce noise and tls connections 2023-03-21 16:51:31 +00:00
gracefulexit storage/filestore: avoid stat() during walkNamespaceInPath 2023-01-30 13:47:03 +00:00
healthcheck storagenode: accept HTTP calls on public port, listening for monitoring requests 2022-08-26 09:38:09 +00:00
inspector storagenode: add doc.go files for sno packages 2021-09-29 08:24:56 +00:00
internalpb all: fix deprecated ioutil commands 2022-10-11 15:27:29 +00:00
monitor storagenode/monitor: add timeout to storage dir verification 2023-03-14 13:43:14 +00:00
multinode {storagenode,web/multinode}: fix storage usage db/cache retrieval queries 2022-12-09 11:07:33 +00:00
nodestats storagenode/nodestats: add monkit metrics for reputation scores 2022-09-15 08:43:48 +00:00
notifications storagenode/console/consoleapi: use fixed time.Now() 2022-07-01 12:36:01 +03:00
operator storagenode: wallet features 2021-03-24 09:08:36 +00:00
orders storagenode: add doc.go files for sno packages 2021-09-29 08:24:56 +00:00
payouts {storagenode,web/multinode}: fix storage usage db/cache retrieval queries 2022-12-09 11:07:33 +00:00
pieces storagenode/monitor: add timeout to storage dir verification 2023-03-14 13:43:14 +00:00
piecestore storagenode/piecestore: better monkit metric for download 2023-03-30 10:46:18 +00:00
piecetransfer private/server,satellite/contact,misc: use new storj/common noise helpers 2023-02-07 09:53:45 -05:00
preflight storagenode/satellites: address added, caching satellite's addresses from trust 2021-07-08 15:38:23 +00:00
pricing all: golangci-lint v1.33.0 fixes (#3985) 2020-12-05 17:01:42 +01:00
reputation storagenode/reputation: clarify wording on suspension notification (#4921) 2022-06-20 22:07:12 +02:00
retain storage/filestore: better error message on data corruption 2023-01-30 08:54:06 -06:00
satellites Revert "storagenode/payouts: historical payouts use satellitesDB instead of trustPool" 2021-08-02 13:55:21 +03:00
storagenodedb storagnode/storagenodedb: fix database queries 2023-03-01 15:57:08 +02:00
storageusage storagenode: fix B*h to bytes disk usage conversion 2023-02-06 18:50:31 +00:00
trust mod: bump dependencies 2022-10-19 17:01:53 +00:00
version storagenode/suspensions: added offline-suspension notificatio chore + tests 2020-10-29 19:44:22 +02:00
peer.go private/server: debounce noise and tls connections 2023-03-21 16:51:31 +00:00