storj/storagenode
Cameron Ayer 7244a6a84e storagenode/{contact, piecestore}: implement low disk notification with cooldown
When a storagenode begins to run low on capacity, we want to notify
the satellite before completely running out of space. To achieve this,
at the end of an upload request, the SN checks if its available space has
fallen below a certain threshold. If so, trigger a notification to the
satellites.

The new NotifyLowDisk method on the monitor chore is implemented using the
common/syn2.Cooldown type, which allows us to execute contact only once
within a given timeframe; avoiding hammering the satellites with requests.
This PR contains changes to the storagenode/contact package, namely moving
methods involving the actual satellite communication out of Chore and into
Service. This allows us to ping satellites from the monitor chore

Change-Id: I668455748cdc6741291b61130d8ef9feece86458
2020-03-03 10:45:37 -05:00
..
bandwidth all: use monkit v3 2020-02-05 23:53:17 +00:00
collector all: use monkit v3 2020-02-05 23:53:17 +00:00
console storagenode: notifications on outdated software version 2020-03-02 16:48:02 +00:00
contact storagenode/{contact, piecestore}: implement low disk notification with cooldown 2020-03-03 10:45:37 -05:00
gracefulexit go.mod: update uplink 2020-02-21 16:08:12 +02:00
inspector all: use monkit v3 2020-02-05 23:53:17 +00:00
monitor storagenode/{contact, piecestore}: implement low disk notification with cooldown 2020-03-03 10:45:37 -05:00
nodestats all: use monkit v3 2020-02-05 23:53:17 +00:00
notifications web/storagenode: notification logic implementation 2020-02-21 15:49:27 +00:00
orders all: use monkit v3 2020-02-05 23:53:17 +00:00
pieces storagenode/pieces: ensure chore is stopped before test ends 2020-02-21 10:14:44 +02:00
piecestore storagenode/{contact, piecestore}: implement low disk notification with cooldown 2020-03-03 10:45:37 -05:00
preflight all: use pbgrpc 2020-02-26 21:27:47 +02:00
reputation storagenode/storagenodedb/storagenodedbtest: pass ctx as an argument 2020-01-20 16:56:12 +02:00
retain all: use monkit v3 2020-02-05 23:53:17 +00:00
satellites storagenode/gracefulexit: fix exit-status command output 2020-01-15 14:58:15 +00:00
storagenodedb web/storagenode: notification logic implementation 2020-02-21 15:49:27 +00:00
storageusage storagenode/storagenodedb/storagenodedbtest: pass ctx as an argument 2020-01-20 16:56:12 +02:00
trust all: use monkit v3 2020-02-05 23:53:17 +00:00
version storagenode: notifications on outdated software version 2020-03-02 16:48:02 +00:00
operator.go storagenode/main: map aliases for kademlia config values (#3118) 2019-09-30 19:33:00 -04:00
peer.go storagenode/{contact, piecestore}: implement low disk notification with cooldown 2020-03-03 10:45:37 -05:00