Skip to content

Commit 3fd6237

Browse files
voetbergrdimaio
authored andcommitted
Replace Reaper flow chart with mermaid.js and delete original #502
1 parent 748d7a5 commit 3fd6237

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

docs/started/concepts/deletion_overview.md

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,29 @@ flowchart TB
5151
sub4 --yes-->sub5["`Remove Child
5252
DID and Replicas`"]
5353
end
54-
54+
5555
sub4 --"no"--> f
5656
sub5--> f
5757
```
5858

59-
![Undertaker chart](/img/undertaker.png)
6059

61-
![Reaper chart](/img/reaper.png)
60+
```mermaid
61+
graph TD
62+
63+
R((Reaper)) --> RSEs[Get all RSEs]
64+
RSEs --> D1{RSE.availability_delete}
65+
D1--"False"--> f([Finished])
66+
D1--"True"--> Greedy_RSE{Greedy RSE?}
67+
68+
%% Non-greedy RSE Logic
69+
Greedy_RSE--"no"--> MinFreeSpace{Min free space <= Actual Free Space}
70+
MinFreeSpace--"no"--> f
71+
MinFreeSpace--"yes"--> i[List replicas with tombstones] --> id4[Apply LRU algorithm to replicas]
72+
id4 --> RemoveReplicas[Remove replicas]
73+
74+
%% Greedy RSE Logic
75+
Greedy_RSE--"yes" --> j[List replicas with tombstones] --> RemoveReplicas --> f
76+
77+
78+
```
79+

website/static/img/reaper.png

-329 KB
Binary file not shown.

0 commit comments

Comments
 (0)