storj/storagenode/monitor
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
..
monitor_test.go internal/testrand: new package for random data (#2282) 2019-06-26 13:38:51 +03:00
monitor.go storagenode: add in-memory tracking for bandwidth and disk usage (#2469) 2019-07-08 20:33:50 -04:00