summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/design/requests_routing.mdwn24
-rw-r--r--doc/devblog/day_163__request_and_routing_design.mdwn3
2 files changed, 23 insertions, 4 deletions
diff --git a/doc/design/requests_routing.mdwn b/doc/design/requests_routing.mdwn
index f3cc49ca8..27ab6f372 100644
--- a/doc/design/requests_routing.mdwn
+++ b/doc/design/requests_routing.mdwn
@@ -28,15 +28,31 @@ Currently:
time 0|1 uuid1
time 0|1 uuid2
-* Use negative numbers for the TTL of a request.
+* Use negative numbers for the TTL of a request:
+
+ time -3! uuid1
+ time -2 uuid2
+
+ The `!` indicates that the request originated on
+ that node.
* To propigate a request, set -1 * (TTL+1) in the line
- for the uuid of the repository that is propigating it.
- This should be done as part of the git-annex branch merging,
+ for the uuid of the repository that is propigating it.
+ This should be done as part of the git-annex branch merge,
so if a location tracking file is merged, any open requests
- get propigated to the current repository.
+ get propigated to the current repository automatically.
* When a requested file reaches a node that requested it,
the location is set to 1; this automatically clears the
request.
+* When a file has no more originating requests, clear all
+ the copied requests:
+
+ time 1 uuid1
+ time -2 uuid2
+
+ Becomes:
+
+ time 1 uuid1
+ time' 0 uuid2
## generating requests
diff --git a/doc/devblog/day_163__request_and_routing_design.mdwn b/doc/devblog/day_163__request_and_routing_design.mdwn
new file mode 100644
index 000000000..c11664a06
--- /dev/null
+++ b/doc/devblog/day_163__request_and_routing_design.mdwn
@@ -0,0 +1,3 @@
+I have a preliminary design for [[design/requests_routing]]. Won't be
+working on it immediately, but simulations show it can work well in a large
+ad-hoc network.