summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2014-05-06 17:53:22 -0300
committerGravatar Joey Hess <joey@kitenet.net>2014-05-06 17:53:22 -0300
commit11af24f67957861362381508e088fea65a858447 (patch)
tree43c0178eb44cdbf648997df30910389f28103dc1 /doc
parent3f289cc866bf96a3a258d0b4bb9e87e2ab15c568 (diff)
devblog
Diffstat (limited to 'doc')
-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.