aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-05-28 10:57:59 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-05-28 10:57:59 -0400
commitd32c379d09f1648f27933cd33fd2a4b90f3efe44 (patch)
tree7b7398ee3d042cd65dc9cc40127089a4d65d5444
parent77658271da98e68d164e9d72b3f85a91ddd7be91 (diff)
further thoughts
-rw-r--r--doc/design/balanced_preferred_content.mdwn14
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/design/balanced_preferred_content.mdwn b/doc/design/balanced_preferred_content.mdwn
index 1f00a0339..adc373183 100644
--- a/doc/design/balanced_preferred_content.mdwn
+++ b/doc/design/balanced_preferred_content.mdwn
@@ -64,3 +64,17 @@ This does not really avoid the limitations above, but having more repos
that want each file will reduce the chances that no repo will be able to
take a given file. In the [[iabackup]] scenario, new clients will just be
assigned until all the files reach the desired level or replication.
+
+However.. Imagine there are 9 repos, all full, and some files have not
+reached desired level of replication. Seems like adding 1 more repo will make
+only 3 in 10 files be wanted by that new repo. Even if the repo has space
+for all the files, it won't be sufficient, and more repos would need to be
+added.
+
+One way to avoid this problem would be if the preferred content was only
+used for the initial distribution of files to a repo. If the repo has
+gotten all the files it wants, it could make a second pass and
+opportunisticly get files it doesn't want but that it has space for
+and that don't have enough copies yet.
+Although this gets back to the original problem of multiple repos racing
+downloads and files getting more than the desired number of copies.