storj/satellite
Cameron Ayer c2525ba2b5 satellite/{repair,satellitedb}: clean up healthy segments from repair queue at end of checker iteration
Repair workers prioritize the most unhealthy segments. This has the consequence that when we
finally begin to reach the end of the queue, a good portion of the remaining segments are
healthy again as their nodes have come back online. This makes it appear that there are more
injured segments than there actually are.

solution:
Any time the checker observes an injured segment it inserts it into the repair queue or
updates it if it already exists. Therefore, we can determine which segments are no longer
injured if they were not inserted or updated by the last checker iteration. To do this we
add a new column to the injured segments table, updated_at, which is set to the current time
when a segment is inserted or updated. At the end of the checker iteration, we can delete any
items where updated_at < checker start.

Change-Id: I76a98487a4a845fab2fbc677638a732a95057a94
2020-09-29 20:38:22 +00:00
..
accounting satellite/accounting: add cache for getting project storage and bw limits 2020-09-25 16:28:49 +00:00
admin satellite/satellitedb: makes limits nullable change backwards compatible 2020-09-23 17:54:42 +02:00
attribution all: fix dots 2020-07-16 14:58:28 +00:00
audit cmd/satellite: command for verifying piece hashes 2020-09-29 10:58:24 +00:00
compensation all: add missing dots 2020-08-11 17:50:01 +03:00
console satellite/console: allow coupons to be a valid payment option 2020-09-28 21:24:04 +00:00
contact all: fix dots 2020-07-16 14:58:28 +00:00
dbcleanup satellite/dbcleanup: run cleanup more frequently 2020-06-10 18:32:15 +00:00
downtime all: fix comments 2020-07-16 19:13:14 +03:00
gc satellite/metainfo: replace ScopedPath with metabase.SegmentLocation 2020-09-04 10:06:52 +00:00
gracefulexit satellite/gracefulexit: replace Path []byte to `Key 2020-09-04 11:09:48 +00:00
inspector satellite/metainfo: use metabase.SegmentKey with metainfo.Service 2020-09-03 15:11:32 +00:00
mailservice all: fix dots 2020-07-16 14:58:28 +00:00
marketingweb all: fix dots 2020-07-16 14:58:28 +00:00
metainfo cmd/satellite: command for verifying piece hashes 2020-09-29 10:58:24 +00:00
metrics satellite/metainfo: replace ScopedPath with metabase.SegmentLocation 2020-09-04 10:06:52 +00:00
nodeapiversion satellite/nodeapiversion: new table for tracking node api usage 2020-07-09 15:02:25 +00:00
nodeselection all: add missing dots 2020-08-11 17:50:01 +03:00
nodestats storagenode/reputation: offline_under_review_at added 2020-09-02 18:48:28 +03:00
orders satellite/orders: don't version check old endpoint 2020-09-09 10:23:48 -04:00
overlay satellite/satellitedb: uses vetted_at field to select for reputable nodes 2020-09-04 16:45:32 +00:00
payments satellite/satellitedb: makes limits nullable change backwards compatible 2020-09-23 17:54:42 +02:00
referrals all: fix dots 2020-07-16 14:58:28 +00:00
repair satellite/{repair,satellitedb}: clean up healthy segments from repair queue at end of checker iteration 2020-09-29 20:38:22 +00:00
revocation all: fix dots 2020-07-16 14:58:28 +00:00
rewards satellite/rewards: add partner videocoin (#3946) 2020-09-29 14:30:46 +02:00
satellitedb satellite/{repair,satellitedb}: clean up healthy segments from repair queue at end of checker iteration 2020-09-29 20:38:22 +00:00
snopayout storagenode: heldamount renamed to payouts, renamed some methods and structs to more meaningful names. grouped estimated payout with pathouts 2020-09-16 14:57:35 +00:00
admin.go satellite/console: make paywall optional 2020-07-28 10:57:49 +00:00
api.go satellite/accounting: add cache for getting project storage and bw limits 2020-09-25 16:28:49 +00:00
configlock_test.go scripts: remove duplicate check config lock 2020-09-29 10:03:34 +00:00
core.go satellite/accounting: add cache for getting project storage and bw limits 2020-09-25 16:28:49 +00:00
gc.go all: fix dots 2020-07-16 14:58:28 +00:00
peer.go satellite/accounting: add cache for getting project storage and bw limits 2020-09-25 16:28:49 +00:00
repairer.go satellite/orders: add bucket id to order limit 2020-09-03 10:50:11 +03:00