storj/storagenode/pieces
ethanadams ff6f1d1b32
storagenode: add in-memory tracking for bandwidth and disk usage (#2469)
* Add in-memory cache for bandwidth and space usage monitoring

* moved some structs around and added error handling for get piece size query

* added to existing bandwidth test.  fixed typo

* added test, updates from PR review, added monkit for new methods

* PR review updates. renamed space used methods

* changed bw cache so that only Add updates the cache and it only overwrites when the date moves forward

* moved bandwidth usage to bw and space usage to pieceinfodb

* fixed interface comment

* removed pointer from sync.Once
2019-07-08 20:33:50 -04:00
..
db_test.go storagenode/piecestore: add piece_creation field (#2441) 2019-07-08 09:22:36 +02:00
readwrite.go storage/filestore: add monkit task to missing places (#2124) 2019-06-05 15:06:06 +02:00
store_test.go internal/testrand: new package for random data (#2282) 2019-06-26 13:38:51 +03:00
store.go storagenode: add in-memory tracking for bandwidth and disk usage (#2469) 2019-07-08 20:33:50 -04:00