storj/satellite/gracefulexit
paul cannon 72189330fd satellite/gracefulexit: revamp graceful exit
Currently, graceful exit is a complicated subsystem that keeps a queue
of all pieces expected to be on a node, and asks the node to transfer
those pieces to other nodes one by one. The complexity of the system
has, unfortunately, led to numerous bugs and unexpected behaviors.

We have decided to remove this entire subsystem and restructure graceful
exit as follows:

* Nodes will signal their intent to exit gracefully
* The satellite will not send any new pieces to gracefully exiting nodes
* Pieces on gracefully exiting nodes will be considered by the repair
  subsystem as "retrievable but unhealthy". They will be repaired off of
  the exiting node as needed.
* After one month (with an appropriately high online score), the node
  will be considered exited, and held amounts for the node will be
  released. The repair worker will continue to fetch pieces from the
  node as long as the node stays online.
* If, at the end of the month, a node's online score is below a certain
  threshold, its graceful exit will fail.

Refs: https://github.com/storj/storj/issues/6042
Change-Id: I52d4e07a4198e9cb2adf5e6cee2cb64d6f9f426b
2023-09-27 08:40:01 +00:00
..
chore_test.go satellite/gracefulexit: revamp graceful exit 2023-09-27 08:40:01 +00:00
common.go satellite/gracefulexit: revamp graceful exit 2023-09-27 08:40:01 +00:00
db_test.go satellite/gracefulexit: implement rangedloop observer 2022-12-22 10:47:10 -07:00
db.go satellite/gracefulexit: revamp graceful exit 2023-09-27 08:40:01 +00:00
endpoint_test.go satellite/gracefulexit: revamp graceful exit 2023-09-27 08:40:01 +00:00
endpoint.go satellite/gracefulexit: revamp graceful exit 2023-09-27 08:40:01 +00:00
getnodes_test.go satellite/overlay: remove old updateaddress method 2020-04-30 06:41:48 +00:00
gracefulexit_test.go satellite/gracefulexit: revamp graceful exit 2023-09-27 08:40:01 +00:00
observer_test.go satellite/gracefulexit: revamp graceful exit 2023-09-27 08:40:01 +00:00
observer.go satellite/gracefulexit: use node alias instead id with observer 2023-05-18 22:37:46 +00:00
pending_test.go satellite/gracefulexit: stop using gracefulexit_transfer_queue 2021-09-14 11:52:34 +00:00
pending.go satellite/gracefulexit: stop using gracefulexit_transfer_queue 2021-09-14 11:52:34 +00:00
validation.go satellite/gracefulexit: stop using gracefulexit_transfer_queue 2021-09-14 11:52:34 +00:00