From b00cfd28713dfd87f6602a06c3117cf91c1c4786 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 9 May 2014 13:34:36 -0300 Subject: example preferred content expressions --- doc/design/requests_routing.mdwn | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'doc/design') diff --git a/doc/design/requests_routing.mdwn b/doc/design/requests_routing.mdwn index 60c343790..8e9324d39 100644 --- a/doc/design/requests_routing.mdwn +++ b/doc/design/requests_routing.mdwn @@ -78,3 +78,18 @@ Matches files that have been requested by at least N nodes. requested Matches files that the current node has requested. + +### Example preferred content expressions + +For an immobile node that accumulates files it requests, and also +temporarily stores files requested by other such nodes: + + present or requestedby=1 + +For a node that only transfers files between the immobile nodes: + + requestedby=1 + +TODO: Would be nice to be able to prioritize files that more nodes are +requesting, or that have some urgent flag set. But currently there is no +way to do that; content is either preferred or not preferred. -- cgit v1.2.3